lucius100 Posted February 15, 2015 Share Posted February 15, 2015 I plan to do Unattended software Installation with autoit I want to know what's the best way to create this ? run it with silent parameters ? and use 1 sec sleep function after each installation? Link to comment Share on other sites More sharing options...
jguinch Posted February 15, 2015 Share Posted February 15, 2015 Using silent parameters is the best way. A sleep after an installation is not necessary, but depends of what you have to do at this moment... Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
Chimaera Posted February 15, 2015 Share Posted February 15, 2015 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 If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
lucius100 Posted February 15, 2015 Author Share Posted February 15, 2015 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 More sharing options...
Chimaera Posted February 15, 2015 Share Posted February 15, 2015 $switch is where it reads the ini file $switch = IniRead($iniFile, $fileName, "Switch", "") like i say its just an example Original code here If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
lucius100 Posted February 16, 2015 Author Share Posted February 16, 2015 Do we really need to specify the regedit location? For example the parameter code is "setup.exe" /s I want to know if that code works in autoit too ? I think it's more simple like that. Link to comment Share on other sites More sharing options...
Solution jguinch Posted February 16, 2015 Solution Share Posted February 16, 2015 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') lucius100 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
lucius100 Posted February 16, 2015 Author Share Posted February 16, 2015 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') k, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now