Problem solved. ServiceControl's name is wrong. Thanks Lian
-----Original Message----- From: Lian Jiang [mailto:lji...@microsoft.com] Sent: Saturday, June 27, 2009 9:40 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] service failed to start. Verify that you have sufficient priviledge to start system services. Hi, I run this msi locally in an admin command line window, but the msi cannot start the service it just installed. The error is "service failed to start. Verify that you have sufficient priviledge to start system services.". Below is my code and you can see I am using LocalSystem account. I can see that the service is installed under LocalSystem account but msi failed to start it. I can manually install and start this service without any problem. Did I miss anything in my code? Appreciate your hint. Thanks Lian <Component Id='MyFileComponent' Guid='53129948-5257-42c5-96e2-b0cc492100bc' Location='local' DiskId='1' Win64='$(var.Win64AttributeValue)'> <File Id='MyExeFile' Vital='yes' KeyPath='yes' Name='my.exe' Source='MyService.exe' /> <File Id='MyConfigFile' Vital='yes' Name='my.exe.config' Source='MyService.exe.config' /> <ServiceInstall Id="MyServiceInstaller" Name="MyService" DisplayName="My Service" Type="ownProcess" Start="auto" ErrorControl="normal" Description="MyServiceInstall" Account="LocalSystem" Vital="yes"> </ServiceInstall> <ServiceControl Id="StartMyService" Start="install" Stop="both" Remove="uninstall" Name="InstallMyService" Wait="yes" /> </Component> -----Original Message----- From: Karl Denning [mailto:karldenn...@yahoo.co.uk] Sent: Friday, June 26, 2009 6:20 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Product is unregistered even though uninstall failed? I rigged one of my MSIs to fail immediately after IntallInitialize (a deferred CA that with impersonate="Yes" is rigged to return an error). I've discovered that the product is unregistered even though no files/folders/reg are removed. Does anyone know why? The last few lines of my log file are below: MSI (s) (C8:DC) [18:05:19:135]: User policy value 'DisableRollback' is 0 MSI (s) (C8:DC) [18:05:19:135]: Machine policy value 'DisableRollback' is 0 MSI (s) (C8:DC) [18:05:19:135]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 Action ended 18:05:19: InstallFinalize. Return value 3. MSI (s) (C8:DC) [18:05:19:135]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 MSI (s) (C8:DC) [18:05:19:135]: Calling SRSetRestorePoint API. dwRestorePtType: 13, dwEventType: 103, llSequenceNumber: 37, szDescription: "". MSI (s) (C8:DC) [18:05:19:166]: The call to SRSetRestorePoint API succeeded. Returned status: 0. MSI (s) (C8:DC) [18:05:19:166]: Unlocking Server MSI (s) (C8:DC) [18:05:19:166]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'. Action ended 18:05:19: INSTALL. Return value 3. ... ... all the properties are here ... Property(S): RollbackDisabled = 1 MSI (s) (C8:DC) [18:05:19:244]: Note: 1: 1725 MSI (s) (C8:DC) [18:05:19:244]: Product: Sample -- Removal failed. MSI (s) (C8:DC) [18:05:19:260]: Cleaning up uninstalled install packages, if any exist MSI (s) (C8:DC) [18:05:19:260]: Post-install cleanup: removing installer file 'C:\WINDOWS\Installer\15a307.msi' MSI (s) (C8:DC) [18:05:19:260]: Post-install cleanup: removing installer file 'C:\WINDOWS\Installer\{938BAF3B-6B94-4C4E-AB74-0B199110AEE2}\Icon_Logo' MSI (s) (C8:DC) [18:05:19:260]: Post-install cleanup: removing installer folder 'C:\WINDOWS\Installer\{938BAF3B-6B94-4C4E-AB74-0B199110AEE2}\' (if empty) MSI (s) (C8:DC) [18:05:19:260]: Post-install cleanup: removing installer file 'C:\WINDOWS\Installer\{938BAF3B-6B94-4C4E-AB74-0B199110AEE2}\Icon_Another' MSI (s) (C8:DC) [18:05:19:260]: Post-install cleanup: removing installer folder 'C:\WINDOWS\Installer\{938BAF3B-6B94-4C4E-AB74-0B199110AEE2}\' (if empty) MSI (s) (C8:DC) [18:05:19:260]: MainEngineThread is returning 1603 MSI (s) (C8:48) [18:05:19:275]: Destroying RemoteAPI object. MSI (s) (C8:C8) [18:05:19:275]: Custom Action Manager thread ending. === Logging stopped: 26/06/2009 18:05:19 === MSI (c) (74:D0) [18:05:19:307]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 MSI (c) (74:D0) [18:05:19:307]: MainEngineThread is returning 1603 === Verbose logging stopped: 26/06/2009 18:05:19 === -- View this message in context: http://n2.nabble.com/Product-is-unregistered-even-though-uninstall-failed--tp3164837p3164837.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users