[wpkg-users] How to handle unknown uninstaller name?

Tomasz Chmielewski mangoo at wpkg.org
Sun Sep 6 13:02:07 CEST 2009


Kevin Keane schrieb:
> I'm trying to create a package.xml file for Aspell and a couple of 
> dictionaries.
> 
> The problem I am having is how to create the <remove> entry. Aspell uses 
> an uninstaller of the style
> 
> "%PROGRAMFILES%\Aspell\uninsXXX.exe"
> 
> where XXX is a number.
> 
> Each individual dictionary gets its own uninsXXX.exe and uninsXXX.dat in 
> the same directory. So after installing the English and German 
> dictionaries, I end up with files unins000.exe, unins001.exe and 
> unins002.exe - or in some cases after reinstalling even unins003.exe or 
> higher numbers. Which of these uninstallers goes with which package 
> depends on the order of installation. The correct number is listed in 
> the registry Uninstall key.
> 
> Is there a way to tell WPKG to use the uninstall key from the registry, 
> instead of hardcoding the -potentially wrong - name of the uninstaller? 
> The registry entry probably needs some "munging" because it is usually 
> the non-silent uninstaller.

For anything more complicated (like in your case), writing a small 
script should do the trick - and then, run it as an uninstall command 
(i.e. find the name in the registry, or in some directory etc.).


-- 
Tomasz Chmielewski
http://wpkg.org



More information about the wpkg-users mailing list