none
Is the path for calling the script correct? RRS feed

  • Question

  • Hello.

    Please see my attachment. I have simply copied the command line from Postinstall->Copy Scripts and replaced with the correct filename. Is the path in the command line correct for executing the script? I am trying to deploy a new wallpaper. However, I am getting errors : 2147467259 0x80004005.

    Here is the error in deployment :

    Regards, Rune

    Monday, August 11, 2014 6:15 AM

Answers

  • Hi,

    I solved it. Ran this script from ZeusABJ and called it in TS right after 'Install Applicaions' with "%SCRIPTROOT%\scriptname.bat" :

    @ECHO OFF

    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

    TITLE Set Custom Wallpaper for Windows 7

    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

    ECHO Set Custom Wallpaper for Windows 7:

    ECHO.

     

    :: Set script execution directory:

    SET _thisdir=%~dp0

     

    :: Take ownership of original default Wallpaper file:

    TAKEOWN /F %SystemRoot%\Web\Wallpaper\Windows\img0.jpg

     

    :: Replace ACLS for original default Wallpaper file with default inherited ACLS:

    ICACLS %SystemRoot%\Web\Wallpaper\Windows\img0.jpg /reset

     

    :: Rename original Wallpaper file so it will still be present and usable:

    RENAME %SystemRoot%\Web\Wallpaper\Windows\img0.jpg imgX.jpg

     

    :: Copy custom Wallpaper to default Wallpaper location:

    XCOPY "%_thisdir%CopyDir\*.*" "%SystemRoot%\Web\Wallpaper\Windows" /D /E /C /R /I /K /Y

    • Marked as answer by Rune11 Wednesday, August 13, 2014 11:15 AM
    Wednesday, August 13, 2014 11:15 AM