[wpkg-users] Getting crazy with plain old dos/cmd command...
Marco Gaiarin
gaio at sv.lnf.it
Fri Feb 2 17:35:32 CET 2007
I'm trying to deploy some software that does not have installers, but
insted are simply some collections of programs and data.
To install i setup a zip with all the stuff and a perdona link (.lnk
file), i unpack on %PROGRAMFILES% and then copy the link to the all
users's desktop.
For example:
<package
id="ivana"
name="Software Didattico Ivana.it"
revision="4"
priority="50"
reboot="false">
<check type="file" condition="exists" path='%PROGRAMFILES%\Ivana\menu.exe' />
<install cmd='%WPKGROOT%\tools\unzip -oqq %SOFTWARE%\WPKG\Ivana.zip -d %PROGRAMFILES%\' />
<install cmd='xcopy "%PROGRAMFILES%\Ivana\Ivana.lnk" "%ALLUSERSPROFILE%\Desktop\" /y' />
<upgrade cmd='%WPKGROOT%\tools\unzip -oqq %SOFTWARE%\WPKG\Ivana.zip -d %PROGRAMFILES%\' />
<remove cmd='del /q "%ALLUSERSPROFILE%\Desktop\Ivana.lnk"' />
<remove cmd='rd /s "%PROGRAMFILES%\Ivana"' />
</package>
Install work as expexted, apart that i've to use xcopy because copy
fail misteriously; Also, if i try to copy, even with xcopy, the
Ivana.lnk into some more complex "Software Didattico Ivana.it.lnk" also
xcopy fail.
Upgrade work as expected.
The trouble arises with remove. Both the command del and rd fail, with
no clue on system events.
Note that if i run the commands in a cmd shell (and also if i run
the copy/xcopy install command with long file name) both works.
How i've missed? Please, help me.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797
er.
21642
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users
More information about the wpkg-users
mailing list