Bullitt00692 Posted April 18, 2008 Share Posted April 18, 2008 (edited) I can install a EXE manually on a machine using the following commant line from the START - RUN prompt with no issues:"c:\program files\SD_Lib\smartview.exe /s /v/qn"When I try to automate the installation using the following two comments, the script appears to run correctly, however the application does not install.Am I formatting the commands correctly or is there a better way to do this so it will instlal the application?RunWait("c:\Program FIles\SD_Lib\SmartView.exe /s /v/qn","", @SW_HIDE)and I also tried the below commans:RunWait(@ComSpec & " /c " & "c:\Program FIles\SD_Lib\SmartView.exe /s /v/qn", "", @SW_HIDE)Thanks for your help,Lou Edited April 18, 2008 by Bullitt00692 Link to comment Share on other sites More sharing options...
Monamo Posted April 18, 2008 Share Posted April 18, 2008 (edited) I can install a EXE manually on a machine using the following commant line from the START - RUN prompt with no issues:"c:\program files\SD_Lib\smartview.exe /s /v/q"When I try to automate the installation using the following two comments, the script appears to run correctly, however the application does not install.Am I formatting the commands correctly or is there a better way to do this so it will instlal the application?RunWait(c:\Program FIles\SD_Lib\SmartView.exe /s /v/qn',"", @SW_HIDE)and I also tried the below commans:RunWait(@ComSpec & " /c " & "c:\Program FIles\SD_Lib\SmartView.exe /s /v/qn", "", @SW_HIDE)Thanks for your help,LouJust a note on your first command - You're missing the opening quotation mark.RunWait('c:\Program FIles\SD_Lib\SmartView.exe /s /v/qn',"", @SW_HIDE)Edit: You may also want to try a test run without @SW_HIDE so you can see if any errors pop (like, for example, usage of /q on the manual run, but /qn on the scripted run. Edited April 18, 2008 by Monamo - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
Bullitt00692 Posted April 18, 2008 Author Share Posted April 18, 2008 Just a note on your first command - You're missing the opening quotation mark.RunWait('c:\Program FIles\SD_Lib\SmartView.exe /s /v/qn',"", @SW_HIDE)Edit: You may also want to try a test run without @SW_HIDE so you can see if any errors pop (like, for example, usage of /q on the manual run, but /qn on the scripted run.The missing /qu and the quots were mis-typed - I edited the post to correct the errors.Would I be better of with the @Comspec in the RUNWAIT commend or should I skip the COMSPEC command? Link to comment Share on other sites More sharing options...
Bullitt00692 Posted April 18, 2008 Author Share Posted April 18, 2008 The missing /qu and the quots were mis-typed - I edited the post to correct the errors.Would I be better of with the @Comspec in the RUNWAIT commend or should I skip the COMSPEC command?.. Link to comment Share on other sites More sharing options...
Monamo Posted April 18, 2008 Share Posted April 18, 2008 The missing /qu and the quots were mis-typed - I edited the post to correct the errors.Would I be better of with the @Comspec in the RUNWAIT commend or should I skip the COMSPEC command?Skip it - I tend not to use @Comspec unless I'm distinctly running DOS commands. - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
Bullitt00692 Posted April 18, 2008 Author Share Posted April 18, 2008 Basically I can install the software manually on any system using the below command: c:\program Files\SD_lib\Smartview.exe /s /v/q How should I program Auto-It to run this exact commend? 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