none
Silent installation ohne Benutzereingabe durchführen RRS feed

  • Frage

  • Hallo zusammen

    ich versuche ein Script zu schreiben, dass mir Programme ohne jegliche Benutzereingabe herunterlädt und installiert. Jedoch funktioniert es bei meinem Script nur teilweise. In diesem Script versuche ich das ganze mit Mozilla Firefox. Allerdings erscheint bei mir immer noch der Installer von Firefox bei dem ich eins zwei Dinge manuell bestätigen muss. Das script läuft nur automatisch bis zum Installations Assistenten. Ich möchte aber gerne, dass mein Script dies auch automatisch macht.

    Hier mein momentanes Script:

    #download and save .exe file
    $download = "https://download.mozilla.org/?product=firefox-43.0.4-SSL&os=win64&lang=de"
    $Location =  "C:\test\Firefox Setup 43.0.4.exe"
    Invoke-WebRequest -Uri $download -OutFile $Location

    #Run MSI Pacakge for automated installation
    $installation = "C:\test\Firefox Setup 43.0.4.msi"
    Invoke-WebRequest -Uri $installation -OutFile $Location
    Start-Process "C:\test\Firefox Setup 43.0.4.msi" -ArgumentList “/qn” -Wait

    Ich wäre dankbar wenn mir jemand helfen könnte

    Sonntag, 24. Januar 2016 14:15

Antworten

  • Hallo,

    schau mal hier und hier 

    Mit dem Flag -ms ist es möglich - hier als Batch inklusive Settings:

    "\\yournetworkshare\Custom Made\Firefox Setup 6.0.2.exe" -ms
    copy "\\yournetworkshare\Custom Made\override.ini" "C:\Program Files\Mozilla Firefox"
    copy "\\yournetworkshare\Custom Made\mozilla.cfg" "C:\Program Files\Mozilla Firefox"
    copy "\\yournetworkshare\Custom Made\local-settings.js" "C:\Program Files\Mozilla Firefox\Defaults\Pref"
    


    Best regards,

    David das Neves



    Please vote as helpful and mark as answer if a post helped you.
    This posting is provided "AS IS" with no warranties and confers no rights.

    Sonntag, 24. Januar 2016 14:54