Sign in to follow this  
Followers 0
h54y4rtgsdfg

Easy question

3 posts in this topic

#1 ·  Posted (edited)

.

Edited by abryanb

Share this post


Link to post
Share on other sites



If your refering to windows updates then you can get the switches by using /? on them to get the needed ones to use for unattended installation. Autoit can easily handle the installations for you. Since updates normally use common switches then you can use a script similar to the below.

$path = FileSelectFolder('Nominate Hotfix folder', @ScriptDir)
If $path = '' Then Exit
FileChangeDir($path)

$handle = FileFindFirstFile($path & '\*.*')
If $handle = -1 Then Exit

While 1
    $hotfix = FileFindNextFile($handle)
    If @error Then ExitLoop
    If $hotfix = @ScriptName Then ContinueLoop
    RunWait($hotfix & ' /nobackup /norestart /passive')
WEnd

FileClose($handle)

:)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

.

Edited by abryanb

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0