Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Win2K Services and Recovery


1 reply to this topic

JoeThompson

JoeThompson
  • Members
  • 80 posts

Posted 22 January 2002 - 19:13

I am using ISDev 7.02 and targetting W2K systems.
I am installing an NT-Service and the only 3 options I see in the IDE for Error Control are:
Log the error and restart
Log the error, display a message, and continue
Log the error and continue

However, once the Service is installed, if I choose the Properties of it from the Services Snap-In, I see the following on the Recovery tab:
First Failure
Second Failure
Subsequent Failures
each has the following choices:
Take No Action
Restart the Service
Run a File
Reboot the Computer

My question is, how do I set these?  Can it be done from the IDE or do I need a custom action?

Thank you,
Joe


mickeywilliams

mickeywilliams
  • Members
  • 1 posts

Posted 28 January 2002 - 06:19

You can easily do this with a CA, but the API call is only available if you're installing on W2K or XP Pro. Look up the ChangeServiceConfig2 API call in the platform SDK.