Jump to content
Sign in to follow this  
Shana

AutoIT silent command line parameters

Recommended Posts

Shana

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

Share this post


Link to post
Share on other sites
somdcomputerguy

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.

Share this post


Link to post
Share on other sites
Valuater

Here are examples of using run, comspec and required quotes

http://www.autoitscript.com/forum/index.php?showtopic=19370&view=findpost&p=223951

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Shana

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!

Share this post


Link to post
Share on other sites
Chris86

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)

Share this post


Link to post
Share on other sites
Danny35d

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

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  

×