Non PowerShell, batch file question

Welcome Forums General PowerShell Q&A Non PowerShell, batch file question

This topic contains 6 replies, has 3 voices, and was last updated by

 
Participant
2 years, 3 months ago.

  • Author
    Posts
  • #53963

    Participant
    Points: 53
    Rank: Member

    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

    Participant
    Points: 241
    Helping Hand
    Rank: Participant

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

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

    Have a nice day

  • #53968

    Participant
    Points: 53
    Rank: Member

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

    • #53969

      Participant
      Points: 241
      Helping Hand
      Rank: 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

    Keymaster
    Points: 1,673
    Helping HandTeam Member
    Rank: Community Hero

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

  • #53972

    Participant
    Points: 53
    Rank: Member

    Thank you,

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

    I appreciate it.

  • #53973

    Participant
    Points: 53
    Rank: Member

    Sorry Don, and thanks Olaf, it's working

The topic ‘Non PowerShell, batch file question’ is closed to new replies.