Anyone know how to make an MSI so that the Recovery options are set?

cjard

Well-known member
Joined
Apr 25, 2006
Messages
7,081
Programming Experience
10+
Hi all..

My service is an MSI and it has the needed custom actions to install the service.. but I'm wondering if anyone knows where or how to set the service up so that when I install it by defult, it sets the Recovery options:

1st fial: restart the service
2nd fail: restart the service
3rd fail: run a program "sendemail (to address) 'the service has failed 3 times' "


I already have the sendemail program etc.. I jsut notice that every time I upgrade the code, rebuiild the MSI, install the service I must go and edit the service settings again..I want to avoid doing that

Thanks in advance!

M
 
Back
Top