[wpkg-users] Copying a shortcut from a network share to desktop?
Falko Trojahn
nospam_ft at smi-softmark.de
Thu Feb 5 12:08:17 CET 2009
Helo Chris,
> <package id="CH4EnvChangeShortcut" name="CH4 Environmental Change
> Shortcut" revision="1" reboot="false" priority="0"> <install cmd='net use
> x: \\10.251.193.3\MMedia\Shortcuts' /> <install cmd='copy "x:\CH4
> Environmental Change.lnk" "C:\Documents and Settings\All Users\Desktop"'
> /> <install cmd='net use x: /delete /yes' /></package>
>
> The shortcut definetly exists and is named as above.
>
> Help much appreciated, I have a number of apps which only need a shortcut
> placed for the user to access and getting this to work would be excellent!
>
This works here flawlessly:
<install cmd='cmd /c copy /y "w:\packages\spybotsd15\Spybot - Search &
Destroy.lnk" "%ALLUSERSPROFILE%\Desktop\"' />
But, IMHO you shouldn't use "net use" within a package, but e.g.
in the pre-action command from wpkg-client or in your wpkg-start.bat.
Of course it would be a better solution, too, if you use "%SOFTWARE%"
- defined within WPKG-Client or in wpkg-start.bat.
Then your settings and package would be like this:
wpkg-start.bat or within Wpkg Client:
set SOFTWARE=\\10.251.193.3\MMedia\
<package id="CH4EnvChangeShortcut"
name="CH4 Environmental Change Shortcut"
revision="1"
reboot="false"
priority="0">
<install cmd='cmd /c copy /y "%SOFTWARE%\Shortcuts\CH4 Environmental
Change.lnk" "%ALLUSERSPROFILE%\Desktop\"' />
</package>
Any variable name apart from "%SOFTWARE%" is possible, too.
Best regards,
Falko
--
Falko Trojahn fon +49-341-3581294
Dipl-Ingenieur Netzwerke/Support fax +49-341-3581295
SMI Softmark Informationstechnologien GmbH
Sitz: D-04416 Markkleeberg, Friedrich-Ebert-Str. 51
Registergericht: Amtsgericht Leipzig HRB 164
Geschäftsführer: Andreas Griesmann
More information about the wpkg-users
mailing list