Shana Posted October 12, 2009 Posted October 12, 2009 I have a batch file with command line parameters do do a silent install and would like to use AutoIT to do the same thing.Mentioned below are the content of my batch file. %windir%\system32\msiexec.exe /i "\\server\Dragon NaturallySpeaking 10.msi" SERIALNUMBER=xxxxxxxxxx ADDLOCAL=ALL ALLUSERS=1 WEBREGISTRATION=1 /norestart DEFAULTSINI="\\server\nsdefaults.ini" ROAMINGUSERINI="\\server\roamingdef.ini" ROAMINGUSEROPTIONS="\\server\testroamoptions.ini" /qn
somdcomputerguy Posted October 12, 2009 Posted October 12, 2009 Use Run or ShellExecute. If you have difficulties, post again with your code and you'll get some assistance from some better coders here.. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Valuater Posted October 12, 2009 Posted October 12, 2009 Here are examples of using run, comspec and required quotes http://www.autoitscript.com/forum/index.php?showtopic=19370&view=findpost&p=223951 8)
Shana Posted October 14, 2009 Author Posted October 14, 2009 Use Run or ShellExecute. If you have difficulties, post again with your code and you'll get some assistance from some better coders here..Thanks for a quick response. I'm really new to scripting, so please bare me if I don't make any sense.I used ShellExecute and was successful in getting the applicaiton installed silently, but was not able to pass the parameters that I wanted to. This is what I have in my script:ShellExecute("\\Server\Dragon\DNS10\setup.exe", "/S /v/qn, SERIALNUMBER=xxxxx-xxx-xxxx-xxxx-xx ADDLOCAL=ALL ALLUSERS=1 WEBREGISTRATION=1 DEFAULTSINI=nsdefaults.ini ROAMINGUSERINI=roamingdef.ini ROAMINGUSEROPTIONS=testroamoptions.ini")Any help will be highly appreciated. Thanks! behdadsoft 1
Chris86 Posted October 14, 2009 Posted October 14, 2009 Thanks for a quick response. I'm really new to scripting, so please bare me if I don't make any sense. I used ShellExecute and was successful in getting the applicaiton installed silently, but was not able to pass the parameters that I wanted to. This is what I have in my script: ShellExecute("\\Server\Dragon\DNS10\setup.exe", "/S /v/qn, SERIALNUMBER=xxxxx-xxx-xxxx-xxxx-xx ADDLOCAL=ALL ALLUSERS=1 WEBREGISTRATION=1 DEFAULTSINI=nsdefaults.ini ROAMINGUSERINI=roamingdef.ini ROAMINGUSEROPTIONS=testroamoptions.ini") Any help will be highly appreciated. Thanks! I'm not sure if I understand you but, you want to hide the CMD window? Run("\\Server\Dragon\DNS10\setup.exe", "/S /v/qn, SERIALNUMBER=xxxxx-xxx-xxxx-xxxx-xx ADDLOCAL=ALL ALLUSERS=1 WEBREGISTRATION=1 DEFAULTSINI=nsdefaults.ini ROAMINGUSERINI=roamingdef.ini ROAMINGUSEROPTIONS=testroamoptions.ini", "", @SW_HIDE)
Danny35d Posted October 14, 2009 Posted October 14, 2009 ShellExecute("\\Server\Dragon\DNS10\setup.exe", "/S /v/qn, SERIALNUMBER=xxxxx-xxx-xxxx-xxxx-xx ADDLOCAL=ALL ALLUSERS=1 WEBREGISTRATION=1 DEFAULTSINI=nsdefaults.ini ROAMINGUSERINI=roamingdef.ini ROAMINGUSEROPTIONS=testroamoptions.ini")If I don't mistaking you need a space between /v and /qn. AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
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