Non PowerShell, batch file question

This topic contains 6 replies, has 3 voices, and was last updated by Profile photo of Tony Antony Tony Antony 3 months ago.

  • Author
    Posts
  • #53963
    Profile photo of Tony Antony
    Tony Antony
    Participant

    I have Win7AndW2K8R2-KB3134760-x64.msu, which is a Windows update. I'm trying to do a silent install, but it won't install it. When I run the batch file (see below), it opens and closes immediately. The msu file is located in the same folder as the batch file.

    @echo off
    start /wait ".\Win7AndW2K8R2-KB3134760-x64.msu" /quiet /norestart
    

    Thanks,

    Tony

  • #53965
    Profile photo of Olaf Soyk
    Olaf Soyk
    Participant

    even if it does not belong here ....
    try this

    @echo off
    start /wait %~dp0Win7AndW2K8R2-KB3134760-x64.msu /quiet /norestart
    

    Have a nice day

    • This reply was modified 3 months ago by Profile photo of Olaf Soyk Olaf Soyk.
  • #53968
    Profile photo of Tony Antony
    Tony Antony
    Participant

    Doing the same thing, opening and closing, does that mean it's working?

    • #53969
      Profile photo of Olaf Soyk
      Olaf Soyk
      Participant

      didn't pay attantion in the first reply ... sorry about that

      @echo off
      start /wait wusa.exe %~dp0Win7AndW2K8R2-KB3134760-x64.msu /quiet /norestart
      

      now it should actually

  • #53971
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Do keep in mind that we try to stay focused on PowerShell Q&A here ;).

  • #53972
    Profile photo of Tony Antony
    Tony Antony
    Participant

    Thank you,

    I think it's working now, I'm testing it on a computer now.

    I appreciate it.

  • #53973
    Profile photo of Tony Antony
    Tony Antony
    Participant

    Sorry Don, and thanks Olaf, it's working

You must be logged in to reply to this topic.