Hi,
Even a new function like SimpleSC::GetError would be helpful.I think this function is helpful. I will add this in the next release.
Did you installed your service successfully now?
Best Regards
Rainer
142 posts
Even a new function like SimpleSC::GetError would be helpful.I think this function is helpful. I will add this in the next release.
Everything is fine, until it comes to the stopping/deleting point. It passes without error but the process stays active for another ~20s (on my system), causing the installer to show a message that the file, that is about to be installed, is currently in use.If the service doesn´t exists (Stopped & Uninstalled) the plugin has done his work. A question to figure out where the problem is:
The service actually does not exist anymore. So checking for existance does not work.
Sleeping for a static 30sec is not satisfying at all.This is really nonsatisfying!
Using the nsProcess plug-in to see wether my service is still running or not might be a solution (will try it next). But I hope that there is a better out there.
Originally posted by Speed78I actually did that, but somehow I did something that obviously has fixed the problem, because I never had that delay issue since then. 😕
Hello Till,
If the service doesn´t exists (Stopped & Uninstalled) the plugin has done his work. A question to figure out where the problem is:
Please try to stop your service with the plugin (not to uninstall!). After that please open your process list and check for your service process. Please repeat the same steps with the service manager. Does the service process exists in the process list?
This fragment is, with some more pieces, enclosed in a macro. Before starting the service it is installed without any sign of error. When it comes to starting it runs into the 30sec timeout (i guess) and gives me "1053" as result. Which in words means: "The service did not respond to the start or control request in a timely fashion" or something similar.
${If} $S_StartNowInput == ${BST_CHECKED}
DetailPrint `Starting service`
LogEx::Write /NOUNLOAD `... starting`
LogEx::Write /NOUNLOAD `... >>> arguments: `
SimpleSC::StartService "${s_name}" ""
Pop $0
${If} $0 <> 0
#SimpleSC::GetErrorMessage
#Pop $0
LogEx::Write /NOUNLOAD `... [InstallService] ERROR: $0`
DetailPrint `Could not start service! - Reason: $0`
Goto cancel
${EndIf}
DetailPrint `... done`
${EndIf}
Originally posted by elllitHi Till,
Installing for the standard user works flawlessly. But giving an account name and password it fails with error code 1057 that is: "Account invalid or does not exist" or something... I triple checked the strings and even hardcoded them into the script w/o success. :-(
Im trying to install on a 2003 Server if that might help.
Thanks,
-- Till