[wpkg-users] can't copy??
Peter Hartmann
ascensiontech at gmail.com
Fri Aug 24 21:12:03 CEST 2007
Sorry for the noise but here's package that I'm having trouble with:
in wpkg-start.bat:
set CMD=%WINDIR%\system32\cmd.exe /c
in packages.xml
<package id="icons" name="Fix IE Icons" revsion="1" excecute="always" >
<depends package-id="firefox" />
<install cmd='regedit /s "%SOFTWARE%\icons\NoIcon.reg" '/>
<install cmd='%CMD% copy /Y "%SOFTWARE%\icons\Internet
Explorer.lnk" "%ALLUSERSPROFILE%\Desktop" ' />
<install cmd='%CMD% copy /Y "%SOFTWARE%\icons\Internet Explorer.lnk"
"%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick
Launch\Launch Internet Explorer Browser.lnk" ' />
<remove cmd='regedit /s "%SOFTWARE\icons\Icon.reg" ' />
<remove cmd='%CMD% del /F /Q "%ALLUSERSPROFILE%\Desktop\Internet
Explorer.lnk" ' />
<remove cmd='%CMD% del /f /Q "%USERPROFILE%\Application
Data\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer
Browser.lnk" ' />
</package>
I want this to happen every time because the quick launch icons are in
EVERY users profile not just once in 'all users'. way to go MS! If i
have it run only once that will only fix one user and not subsequent
different users. When it's run all of the copy commands return a
areslut of: 0 and wpkg says"Failed checking after installation". How
do i fix that?
Thanks,
Peter
On 8/24/07, Peter Hartmann <ascensiontech at gmail.com> wrote:
> This works locally from command line but not from wpkg:
>
> copy /Y "\\server\wpkg\software\icons\icons\Internet Explorer.lnk"
> "%ALLUSERSPROFILE%\Desktop"
>
>
> in packages.xml
>
> <install cmd='copy /Y "\\server\wpkg\software\icons\Internet
> Explorer.lnk" "%ALLUSERSPROFILE%\Desktop" ' />
>
>
> At first I thought it wasn't getting the %SOFTWARE% environment var.
> so I removed it. Any ideas why I'm getting "the system cannot find
> the file specified?"
>
>
> Thanks,
> Peter
>
>
> ps
>
> In case you're wondering: my package gets rid of the IE shortcuts on
> the desktop and quick launch for users and replaces them with IE
> shortcuts that start Firefox instead. (in case they forget that
> running IE is dangerous)
>
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