am632 Posted September 9, 2013 Share Posted September 9, 2013 Hi, I have a script which is the following... Func _Begin_Install() GUICtrlSetState($Button_Install, $GUI_DISABLE) RunWait(@ScriptDir & "\setup.exe") GUICtrlSetState($Button_Install, $GUI_ENABLE) EndFunc Basically the setup will start to run but then I get the error message "The windows installer service could not be accessed" The setup works if I run it manually (not through my script) Also I have tried adding #RequireAdmin to the top of my script with no difference. Any Ideas? Thanks Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 9, 2013 Moderators Share Posted September 9, 2013 Hi, am632. You mention that it works manually, but not what "manually" entails. Can you tell us what happens when you run it from: Double-clicking Setup.exe Typing <path>Setup.exe into the Run line Typing <path?Setup.exe into a command line window "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Morthawt Posted September 9, 2013 Share Posted September 9, 2013 Have you tried ShellExecuteWait ? Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. Link to comment Share on other sites More sharing options...
am632 Posted September 11, 2013 Author Share Posted September 11, 2013 Hi, Thanks for the replies, I have no internet at home at the moment which is why I didnt reply right away. Firstly, by manually I mean if I double click the setup.exe in windows explorer the setup installs the program witholut any problems. I also tried your suggestion (Morthawt) and used 'ShellExecuteWait' instead but still got the same problem. Thanks for the replies Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 11, 2013 Moderators Share Posted September 11, 2013 How about the other suggestions, such as running it from the Run line or Command Line window? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
am632 Posted September 11, 2013 Author Share Posted September 11, 2013 Hi, I tried running from cmd and from the run box, and both installed the setup without error. Thanks Link to comment Share on other sites More sharing options...
Danny35d Posted September 11, 2013 Share Posted September 11, 2013 Try to add the working directory to RunWait function. RunWait(@ScriptDir & "setup.exe", @ScriptDir) or RunWait(@ScriptDir & "setup.exe, @WorkingDir) AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
am632 Posted September 17, 2013 Author Share Posted September 17, 2013 Thanks for the suggestion, I'll try that this afternoon and post back result Thanks Link to comment Share on other sites More sharing options...
am632 Posted September 20, 2013 Author Share Posted September 20, 2013 Hi, I tried all what you have said but still getting the problem. I dont know what to try next as this has never happend before. Any more ideas? Thanks for the help Link to comment Share on other sites More sharing options...
am632 Posted September 24, 2013 Author Share Posted September 24, 2013 Hi, I realised it works ok on windows XP but not 7, I fixed it though. I simply uninstalled autoit and reinstalled from the website and now it works, maby there is a bug in the version I was using (was the same version on both my machines) 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