ryandao Posted February 8, 2005 Share Posted February 8, 2005 Hi everyone and thanks for viewing. I'm trying to install Symantec Antivirus using their msi file. I want to use it with the switched below but it doesn't work. The run command comes back with an error. I probaly need to use more quotes but I don't know where. Thanks for you help RD Run('D:\SAV902\Symantec Antivirus.msi /l*v C:\IT\SAV902_Install.log RUNLIVEUPDATE=0 REBOOT=Force ADDLOCAL=SAVMain,SAVUI,SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient /qb!') Link to comment Share on other sites More sharing options...
CyberSlug Posted February 8, 2005 Share Posted February 8, 2005 See: http://www.autoitscript.com/autoit3/docs/faq.htm#6 Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
ennis Posted February 8, 2005 Share Posted February 8, 2005 this maybe helpful aswellhttp://www.microsoft.com/resources/documen...us/msiexec.mspx Link to comment Share on other sites More sharing options...
ryandao Posted February 8, 2005 Author Share Posted February 8, 2005 Neither will work. It keep saying the file doesn't exist. Thx Link to comment Share on other sites More sharing options...
MikroMan Posted February 8, 2005 Share Posted February 8, 2005 See if this helps. RunWait(@COMSPEC & " /c Start d:\myfile.msi") Link to comment Share on other sites More sharing options...
ryandao Posted February 8, 2005 Author Share Posted February 8, 2005 Tried that...no luck. Below are the code I have tried and the error I received. RunWait(@COMSPEC & " /c Start d:\myfile.msi") - file doesn't exist RunWait("msiexec myfile.msi") - the msiexec help menu appears I verified the file exist. I can run it from the run command. Any idea? Thx. Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 8, 2005 Share Posted February 8, 2005 (edited) Hi everyone and thanks for viewing.I'm trying to install Symantec Antivirus using their msi file. I want to use it with the switched below but it doesn't work. The run command comes back with an error. I probaly need to use more quotes but I don't know where.Thanks for you helpRDRun('D:\SAV902\Symantec Antivirus.msi /l*v C:\IT\SAV902_Install.log RUNLIVEUPDATE=0 REBOOT=Force ADDLOCAL=SAVMain,SAVUI,SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient /qb!')<{POST_SNAPBACK}>Try putting in the following code in place of "D:\myfile.msi"RunWait(@COMSPEC & ' /c Start "D:\SAV902\Symantec Antivirus.msi /l*v C:\IT\SAV902_Install.log RUNLIVEUPDATE=0 REBOOT=Force ADDLOCAL=SAVMain,SAVUI,SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient /qb!"'):psycho2:The trick is getting the single (') and double (") quotes in the right places.The "Start" command doesn't like spaces and the RunWait @comspec is a little tricky to pass double quotes to....but with a little practice, you'll figure it out. Edited February 8, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
kenedy Posted February 9, 2005 Share Posted February 9, 2005 RunWait("msiexec /i myfile.msi switches") Link to comment Share on other sites More sharing options...
ryandao Posted February 9, 2005 Author Share Posted February 9, 2005 Neither worked. The first code gets me to a command prompt. The second opened the help menu for msiexec. I know it can be done with the correct location of " and ' but I can't figure it out. Any idea would be greatly appreciated. Thx Link to comment Share on other sites More sharing options...
SlimShady Posted February 9, 2005 Share Posted February 9, 2005 I hope this works for you. Run('msiexec /i "D:\SAV902\Symantec Antivirus.msi" /l*v C:\IT\SAV902_Install.log RUNLIVEUPDATE=0 REBOOT=Force ADDLOCAL=SAVMain,SAVUI,SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient /qb!', @SystemDir) Link to comment Share on other sites More sharing options...
ryandao Posted February 11, 2005 Author Share Posted February 11, 2005 That worked but the switches didn't work. The install started but none of the switch worked. What does the @SystemDir do? Link to comment Share on other sites More sharing options...
SlimShady Posted February 11, 2005 Share Posted February 11, 2005 For Windows to find MSIEXEC.EXE. I don't know what the proper switches are, I don't use MSIEXEC with too many switches. 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