[wpkg-users] Package Problems

Charles Gargent charlesgargent at gmail.com
Mon Oct 26 11:45:17 CET 2009


Hi,

I have noticed a problem when uninstalling NSIS installer products.
When you run the command

csscript wpkjg,js /remove:Inkscape

whilst a user is logged in the final command

'cmd /c rmdir /s /q "%programfiles%\Inkscape"'

does remove the the folder. However if the command is run in a system
startup script the final command doesnt delete the folder even though
the eventlog says otherwise

Command 'cmd /c rmdir /s /q "%programfiles%\Inkscape"' returned  exit
code [0]. This exit code is not an error.

The package is as shown below. The uninstaller reads the uninstall log
from the program files folder, so this may still be accessed whilst
uninstalling. This doesnt explain why it doesnt work when not logged
in. I have thought about moving the uninstall log out of the folder
before uninstalling and specifying the new path on the command line
however I dont think NSIS can handle such complex commands! Any other
suggestions greatly appreciated.

<?xml version="1.0" encoding="utf-8" ?>

<packages>

<!-- NSIS installer -->

	<package id="Inkscape"
		name="Inkscape 0.46"
		revision="1"
		priority="150"
		reboot="false">
	<check type="uninstall" condition="versiongreaterorequal"
path="Inkscape 0.46" value="0.46"	/>
	<install cmd='%wpkg%\tools\wpkgmsg\wpkgMessage.exe /package "Inkscape
0.46" install'><exit code='any' /></install>
	<install cmd='"%AIP%\Inkscape\Inkscape 0.46\Inkscape-0.46.win32.exe" /S' />
	<install cmd='cmd /c mkdir "%ALLUSERSPROFILE%\Start
Menu\Programs\General\Inkscape"'><exit code='any' /></install>
	<install cmd='cmd /c move /y "%ALLUSERSPROFILE%\Start
Menu\Programs\Inkscape.lnk" "%ALLUSERSPROFILE%\Start
Menu\Programs\General\Inkscape\Inkscape.lnk"'><exit code='any'
/></install>
	<remove cmd='%wpkg%\tools\wpkgmsg\wpkgMessage.exe /package "Inkscape
0.46" remove'><exit code='any' /></remove>
	<remove cmd='"%programfiles%\Inkscape\uninstall.exe" /S' />
	<remove cmd='cmd /c rmdir /s /q "%ALLUSERSPROFILE%\Start
Menu\Programs\General\Inkscape"'><exit code='any' /></remove>
	<remove cmd='cmd /c rmdir /s /q "%programfiles%\Inkscape"'><exit
code='any' /></remove>
	</package>

</packages>



More information about the wpkg-users mailing list