This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Installed NT Service disappear after reboot. Please help!
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2007
10:35 PM
Installed NT Service disappear after reboot. Please help!
Hi, I am new user of installshield2008.
My package installed a service by changing the properties of a exe file in "install NT service", "control NT service" as well as writing the values into the registry "HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Service>...".
It work fine during the installation, and the service appeared in the client PC.
It is also can be started and run successfully.
BUT ....
When I reboot the client PC... The service and the newly added entries in registry is gone ! But all other installed application is still working fine.
Anybody have idea ? Please help! I need the solution urgently!
Many thanks!
My package installed a service by changing the properties of a exe file in "install NT service", "control NT service" as well as writing the values into the registry "HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Service>...".
It work fine during the installation, and the service appeared in the client PC.
It is also can be started and run successfully.
BUT ....
When I reboot the client PC... The service and the newly added entries in registry is gone ! But all other installed application is still working fine.
Anybody have idea ? Please help! I need the solution urgently!
Many thanks!
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2007
10:49 PM
I assume you have a good reason for writing directly to the CurrentControlSet and that your doing it correctly. But if not, you could be experiencing LastKnownGood:
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/34106.mspx?mfr=true
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/34106.mspx?mfr=true
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2007
11:30 PM
Thanks for your prompt reply.
Actually, I am not sure it is a good idea to write directly to the CurrentControlSet.
We followed the steps to create the components as COM Server component type and specified that it contains an NT service, and so on.
The service not installed even the whole installation is finished successfully.
But if we write directly into CurrentControlSet, the service appear. At least the service installed and run very well before I restart the pc.
Do you mind to give me some suggestion?
Actually, I am not sure it is a good idea to write directly to the CurrentControlSet.
We followed the steps to create the components as COM Server component type and specified that it contains an NT service, and so on.
The service not installed even the whole installation is finished successfully.
But if we write directly into CurrentControlSet, the service appear. At least the service installed and run very well before I restart the pc.
Do you mind to give me some suggestion?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2007
11:33 PM
I have on occasion needed to set service attributes that MSI wan't able to express. I'd would take out your registry change and focus on getting ServiceInstall / ServiceControl working first.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 19, 2007
12:06 AM
Thanks for your suggestion.
I am trying to create the components as COM Server component type and specified that it contains an NT service again.
And I met problem when I try to extract COM Data for key file.
It pop up "Windows Service Start Failure"
[Cannot start service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tools or the NET START command.]
Do you have any idea?
Thanks a lot.
I am trying to create the components as COM Server component type and specified that it contains an NT service again.
And I met problem when I try to extract COM Data for key file.
It pop up "Windows Service Start Failure"
[Cannot start service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tools or the NET START command.]
Do you have any idea?
Thanks a lot.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 19, 2007
12:10 AM
Easy, that's a .NET assembly not a COM server.
Read these two recent threads:
http://community.macrovision.com/search.php?searchid=312766
http://community.macrovision.com/showthread.php?t=171365&highlight=installer
Read these two recent threads:
http://community.macrovision.com/search.php?searchid=312766
http://community.macrovision.com/showthread.php?t=171365&highlight=installer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 19, 2007
03:00 AM
Thanks for your help!
Your tips are very helpful. Seems we are going to have the solution soon.
Your tips are very helpful. Seems we are going to have the solution soon.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 19, 2007
05:02 AM
Hi. Seems we can make the service be installed successfully.
But there is another problem during start the service which is:
Error 1920. Service ...(..) failed to start. Verify that you have sufficent privileges to start system service. Then the installation be terminated.
The user account we are using is the local administrator already.
If I make it start automatically, and start it manually, it is ok.
But we would like it start immedilately. What should I do?
But there is another problem during start the service which is:
Error 1920. Service ...(..) failed to start. Verify that you have sufficent privileges to start system service. Then the installation be terminated.
The user account we are using is the local administrator already.
If I make it start automatically, and start it manually, it is ok.
But we would like it start immedilately. What should I do?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 19, 2007
07:07 AM
What operating system was this on? Are you using the ServiceControl events ( component | advanced ) to start the service or are you using a custom action?