Jump to content

Windows installer service wont start when running setup via script


am632
 Share

Recommended Posts

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

  • Moderators

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

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

  • Moderators

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...