|
From: Nicholas R. <nic...@ho...> - 2010-01-25 07:58:51
|
Hi everyone. I was trying out the ServiceConfigFailureActions element to be tried out on Windows 7. However, I keep getting an error that says I either don't have the right permissions or that there's something wrong with the package. There's another thread with the same problem (http://www.mail-archive.com/wix...@li.../msg30451.html), but it doesn't look like it was ever resolved. I've tried a lot of combinations of attributes, but nothing seems to make a difference. (As a side note, I had to suppress ICE27 to compile it, but I think that's a different story.) Here is my code: <Component Id="cmp_testService1" Guid="F1EE44AC-56FD-46f0-A79A-78B9E603779B"> <File Id="TestService1" Source="WindowsService1.exe" KeyPath="yes" /> <ServiceInstall Id="InstallWindowsService1" Type="ownProcess" Description="Does test service" ErrorControl="normal" Name="testsvc" DisplayName="Test Service" Start="auto"> <ServiceConfigFailureActions Id="configTestSvc" OnInstall="yes" ResetPeriod="60"> <Failure Action="restartService" Delay="2000" /> </ServiceConfigFailureActions> <ServiceConfig Id="configTS" OnInstall="yes" FailureActionsWhen="1" /> </ServiceInstall> </Component> I included a ServiceConfig element too because I didn't know if that was needed too. It doesn't seem to fix the problem though. Here is a log from the install (just the failure part): InstallServices: Service: MSI (s) (DC:20) [02:45:06:517]: Executing op: ActionStart(Name=MsiConfigureServices,,) Action 2:45:06: MsiConfigureServices. MSI (s) (DC:20) [02:45:06:517]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000) MSI (s) (DC:20) [02:45:06:517]: Executing op: ServiceConfigure(,Name=testsvc,Event=1,ConfigType=4,Argument=1) MSI (s) (DC:20) [02:45:06:517]: Changing configuration of service testsvc. MSI (s) (DC:20) [02:45:06:517]: Changed configuration of service testsvc with ConfigType SERVICE_CONFIG_FAILURE_ACTIONS_FLAG MSI (s) (DC:20) [02:45:06:517]: Done changing configuration of service testsvc MSI (s) (DC:20) [02:45:06:517]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=1300000) MSI (s) (DC:20) [02:45:06:527]: Executing op: ServiceConfigureFailureAction(,Name=testsvc,Event=1,ResetPeriod=60,RebootMessage=[~],Command=[~],Actions=1,DelayActions=2000) MSI (s) (DC:20) [02:45:06:527]: Changing configuration of failure action for service testsvc. MSI (s) (DC:20) [02:45:06:527]: Error: 5. Failed to change current configuration of failure action for service testsvc MSI (s) (DC:20) [02:45:06:527]: Failed to change configuration of failure action for service testsvc MSI (s) (DC:20) [02:45:06:527]: Note: 1: 2205 2: 3: Error MSI (s) (DC:20) [02:45:06:527]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1939 Error 1939. Service 'Test Service' (testsvc) 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. MSI (s) (DC:20) [02:45:08:651]: Note: 1: 2205 2: 3: Error MSI (s) (DC:20) [02:45:08:651]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 MSI (s) (DC:20) [02:45:08:651]: Product: Amazing Software -- Error 1939. Service 'Test Service' (testsvc) 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. Action ended 2:45:08: InstallFinalize. Return value 3. Thanks! Nick Ramirez _________________________________________________________________ Hotmail: Trusted email with Microsoft’s powerful SPAM protection. http://clk.atdmt.com/GBL/go/196390706/direct/01/ |