I'm trying to use the MsiServiceConfigFailureActions
table (on Windows 7) but it doesn't seem to work. I have the following row in this table:
MsiServiceConfigFailureActions: ServiceId
Name: myservice.exe
Event: 1
ResetPeriod: 172800
RebootMessage:
Command: "[#myfile.exe] arg1"
Actions: 3[~]0[~]1
DelayActions: 60000[~]0[~]60000
Component_: componentid
myservice.exe is installed as service on test machine. However i have managed to isolate the problem in the "Actions" column. When ever I use the SC_ACTION_REBOOT=2 or SC_ACTION_RESTART=1 flags
the installation fails with access denied (privileges problem).
From log: Error 1939. Service 'Service Example' (myservice.exe) could not be configured. This could be a problem with the package or your permissions. Verify that you have sufficient privileges to configure system services.
Note that package runs with administrator privileges.
Any thoughts on this are greatly appreciated.
Thanks.
Edited by Johnny9111, 19 October 2009 - 12:29.