[wpkg-users] Batch file not working

chiddie claudio.ghirardi at geniaware.com
Mon Dec 12 18:26:55 CET 2011


In order to deploy an upgrade from Thunderbird  3.1.2 + Lightning 1.0b2 to
Thunderbird 8 + Lightning 1.0, since i cannot use the instructions provided
in the wiki page to update lightning silently (old Lightning versions are
installed in
%userprofile%\appdata\roaming\thunderbird\Profiles\xxxx.default\extensions,
and not in the %programfiles%\mozilla thunderbird\extensions as the wiki
says), i thought to make a small .bat that, after the Thunderbird upgrade
and before the installation of the new version of Lightning, deletes the
extensions folder of the %userprofile%.

The .bat contains the following lines:

cd /D %userprofile%\appdata\roaming\thunderbird\Profiles
for /D %%f in (*.default) do cd
"%userprofile%\appdata\roaming\thunderbird\Profiles\%%f\"
rd extensions /s /q

I then added the corrispondent line to the package

<install cmd='"\\servername\wpkg\software\Mozilla
Thunderbird\deletelightning.bat"' />

If i run the .bat file from the target PC, the folder is correctly deleted.
If the .bat is run via wpkg package, it returns an error

"Could not process (install) package 'Mozilla Thunderbird' (Mozilla
Thunderbird):|Exit code returned non-successful value (2) on command
'"\\servername\wpkg\software\Mozilla Thunderbird\deletelightning.bat"' and
the folder is not deleted.

Where am i wrong?
-- 
View this message in context: http://old.nabble.com/Batch-file-not-working-tp32960075p32960075.html
Sent from the WPKG - Users mailing list archive at Nabble.com.




More information about the wpkg-users mailing list