Jump to content

Unattended software installation


 Share

Go to solution Solved by jguinch,

Recommended Posts

I put my switches etc in an .ini file and then just install like this

If $extension = "msi" Then
Run("msiexec /i " & '"' & $scriptDir & "\Software\" & $fileName & '" ' & $switch) ; For MSI type installers
Else
RunWait('"' & $scriptDir & "\Software\" & $fileName & '"' & " " & $switch) ; For EXE installers
EndIf
Link to comment
Share on other sites

 

I put my switches etc in an .ini file and then just install like this

If $extension = "msi" Then
Run("msiexec /i " & '"' & $scriptDir & "\Software\" & $fileName & '" ' & $switch) ; For MSI type installers
Else
RunWait('"' & $scriptDir & "\Software\" & $fileName & '"' & " " & $switch) ; For EXE installers
EndIf

 

what is switch etc ?

Link to comment
Share on other sites

$switch is where it reads the ini file

$switch = IniRead($iniFile, $fileName, "Switch", "")

like i say its just an example

Original code here

Link to comment
Share on other sites

  • Solution

If you know what is the silent parameter, you just have to put it in your Run/RunWait/ShellExecute/ShellExecuteWait command.Be careful with the simples quotes

For example, with "setup.exe" /s : RunWait( '"setup" /s')

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...