[wpkg-users] RMDIR command not working via WPKG

chiddie claudio.ghirardi at geniaware.com
Tue Jan 3 17:59:56 CET 2012


Hello,

i created a new package in order to install Squiggle (a domain network only
chat system). Unfortunately the program does not come with an installer, so
i had to adjust the package in order to:

1. Check if the process squiggle.exe is running and kill it
2. Remove the actual squiggle folder on the clients
3. Copy the new squiggle folder on the clients

This is the package:

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

<packages>

	<package 
		id="Squiggle" 
		name="Squiggle" 
		revision="3.0.11.0" 
		reboot="false" 
		priority="77">
	
		<check type="file" condition="exists"
path="%PROGRAMFILES(x86)%\Squiggle\Squiggle-3.0b Client\Squiggle.exe" />
		<check type="file" condition="versionequalto"
path="%PROGRAMFILES(x86)%\Squiggle\Squiggle-3.0b Client\Squiggle.exe"
value="3.0.11.0" />

		<install cmd='taskkill /f /im squiggle.exe'>
			<exit code='0' />
			<exit code='1' />
			<exit code='128' />
		</install>
		
		<install cmd='rmdir /s /q "%programfiles(x86)%\Squiggle"' />
		
                <install cmd='xcopy \\servername\wpkg\software\Squiggle
"%programfiles(x86)%\Squiggle" /E /I ' />
		
         </package>
</packages>
====================================
While the xcopy command line works (i tried the package removing the rmdir
line), the 
<install cmd='rmdir /s /q "%programfiles(x86)%\Squiggle" ' /> line gives an
error in the log:

"Command 'rmdir /s /q "%programfiles(x86)%\Squiggle"' ('rmdir /s /q
"C:\Program Files (x86)\Squiggle" ') was unsuccessful.|The system cannot
find the file specified.|"

Notice that if i execute the same command directly on a target machine via
command prompt, the rmdir command works just fine (giving i open the prompt
with administrative rights, of course).

Where am i mistaking?

Thank you!
-- 
View this message in context: http://old.nabble.com/RMDIR-command-not-working-via-WPKG-tp33073247p33073247.html
Sent from the WPKG - Users mailing list archive at Nabble.com.




More information about the wpkg-users mailing list