Topic
2 replies Latest Post - ‏2014-04-26T13:45:14Z by jgstew
KeeperRico
KeeperRico
1 Post
ACCEPTED ANSWER

Pinned topic Help regarding a "wait" command

‏2014-04-22T16:51:50Z |

Good Afternoon Everyone,

I am having a bit of a problem  getting my fixlet off the ground.  I am trying to restore some permissions on xp sp2 machines and then install sp3.  my code is below but i seem to always fail at the first wait command, even though i have personally seen both files on the remote machine.

//downloads subinacl.msi, runs script to give permissions, (manually installs MS fixit 50389) to allow installation of XP SP3
download http://download.microsoft.com/download/1/7/d/17d82b72-bc6a-4dc8-bfaa-98b37b22b367/subinacl.msi
continue if {(size of it = 379392 and sha1 of it = "3199b43ca6ee8cb44b4e07e2b67e9f93b31a846b") of file "subinacl.msi" of folder "__Download"}
wait "__Download\subinacl.msi"   //<--------------This is where I fail
dos cd /d "%ProgramFiles%\Windows Resource Kits\Tools"    
dos subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
dos subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
dos subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
dos subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
dos subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f
dos secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose
download http://download.microsoft.com/download/d/3/0/d30e32d8-418a-469d-b600-f32ce3edf42d/WindowsXP-KB936929-SP3-x86-ENU.exe
continue if {(size of it = 331805736 and sha1 of it = "c81472f7eeea2eca421e116cd4c03e2300ebfde4") of file "WindowsXP-KB936929-SP3-x86-ENU.exe" of folder "__Download"}
wait "__Download\WindowsXP-KB936929-SP3-x86-ENU.exe"
action may require restart

 

 

  • Tim.Rice
    Tim.Rice
    79 Posts
    ACCEPTED ANSWER

    Re: Help regarding a "wait" command

    ‏2014-04-22T23:42:54Z  in response to KeeperRico

    You need to call the MSIEXEC command as part of your Wait command.

    something like ...

    wait MSIEXEC -I __download\subinacl.msi /qn

     

    Updated on 2014-04-23T03:59:27Z at 2014-04-23T03:59:27Z by Tim.Rice
    • jgstew
      jgstew
      410 Posts
      ACCEPTED ANSWER

      Re: Help regarding a "wait" command

      ‏2014-04-26T13:45:14Z  in response to Tim.Rice

      You need the full path to the MSI though.