Jump to content
Sign in to follow this  
redfive19

"An instance of the service is already running" ERROR

Recommended Posts

Opt("TrayIconHide", 1)
FileCopy(@ScriptDir & '\PointSecAdd.exe', @ProgramFilesDir & '\PointSecAdd.exe', 1)
FileCopy(@ScriptDir & '\PointSecGroup.ini', @ProgramFilesDir & '\PointSecGroup.ini', 1)
RunAsSet('account', 'domain', 'pwd')
FileChangeDir(@ProgramFilesDir)
RunWait(@ProgramFilesDir & '\PointSecAdd.exe')
Exit

So I'm having problems running this. I'm getting an AutoIt error that says "An instance of the service is already running". I have no idea what could be causing this. Anyone have any ideas? I'm lost!! THANKS!

-redfive

Share this post


Link to post
Share on other sites

Opt("TrayIconHide", 1)
FileCopy(@ScriptDir & '\PointSecAdd.exe', @ProgramFilesDir & '\PointSecAdd.exe', 1)
FileCopy(@ScriptDir & '\PointSecGroup.ini', @ProgramFilesDir & '\PointSecGroup.ini', 1)
RunAsSet('account', 'domain', 'pwd')
FileChangeDir(@ProgramFilesDir)
RunWait(@ProgramFilesDir & '\PointSecAdd.exe')
Exit

So I'm having problems running this. I'm getting an AutoIt error that says "An instance of the service is already running". I have no idea what could be causing this. Anyone have any ideas? I'm lost!! THANKS!

-redfive

oddly enough i had this same problem, the issue seemed to be resolved when i added a working dir param.

so try this.

Opt("TrayIconHide", 1)
FileCopy(@ScriptDir & '\PointSecAdd.exe', @ProgramFilesDir & '\PointSecAdd.exe', 1)
FileCopy(@ScriptDir & '\PointSecGroup.ini', @ProgramFilesDir & '\PointSecGroup.ini', 1)
RunAsSet('account', 'domain', 'pwd')
FileChangeDir(@ProgramFilesDir)
RunWait(@ProgramFilesDir & '\PointSecAdd.exe',@scriptdir)
Exit

---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

Share this post


Link to post
Share on other sites

At this point in the build process, it's not even installed. I'm starting to think that it's a RunAs error. It's so odd, I've never seen this before! Thanks for your help blademonkey!

-redfive

Share this post


Link to post
Share on other sites

At this point in the build process, it's not even installed. I'm starting to think that it's a RunAs error. It's so odd, I've never seen this before! Thanks for your help blademonkey!

-redfive

Can you give us a screen shot of the error?

also, if you run this manually do you still get the same error?


---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

Share this post


Link to post
Share on other sites

See that's the weird thing, if I run it manually, I get no error. This executable is called from another executable. I'll try to get a SS but it's on someone else's machine who I may not have access to. Thanks again for all of your help!

-redfive

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  

×
×
  • Create New...