I have been having problems trying to install a service. I am the admin user
in this machine but I keep getting permission problems. I am using WIX
3.0.4429.0 

Without the <ServiceConfig> tag and the <PermissionEx> tags it works
perfectly. 

I added serviceConfig and then PermissionEx to try and solve permission
issues with <ServiceConfig> 

My question is. When you use a <PermissionsEx> inside a <ServiceInstall>
what permissions are you setting exactly?  Is this the user that is running
the msi job itself?  Does the Service changes take place using this user or
the user that run sthe MSI? 

Inside the <PermissionEx> tag I have used "User", "Administrator",
"LocalSystem" and various others but I either ge "SID not found" or
"Permission Denied" when it runs the <ServiceConfig> section. 

I am running the MSI and I am an admin user. I can set the config through
the GUI so I should have permissions.  I used "Administrator" and I get SID
not found. 

<Component Id='ClientComponent' DiskId ='1' Guid='??????'> 
        <File Id='Whatever1' 
                Name="$(var.Whatever1.TargetFileName)" 
                KeyPath='no' 
                Assembly='no' 
                Vital='yes' 
                Checksum='yes' 
                Source="$(var.Whatever1.TargetPath)" /> 
        <File Id='WhateverService' 
                Name="$(var.WhateverService.TargetFileName)" 
                KeyPath='yes'   
                Assembly='no' 
                Vital='yes' 
                Checksum='yes' 
                Source="$(var.WhateverService.TargetPath)" /> 
        <File Id='Whatever3' 
                Name="$(var.Whatever3.TargetFileName)" 
                KeyPath='no' 
                Assembly='no' 
                Vital='yes' 
                Checksum='yes' 
                Source="$(var.Whatever3.TargetPath)" /> 

        <ServiceInstall Id="WhateverServiceInstall" 
                Name="WhateverService" 
                DisplayName="WhateverService" 
                Type="ownProcess" 
                Start="auto" 
                ErrorControl="normal" 
                Description="WhateverService Service" 
                Vital="yes"> 

        <PermissionEx xmlns="http://schemas.microsoft.com/wix/UtilExtension"; 
                User="Administrator" 
                ServiceChangeConfig="yes" 
                ServiceEnumerateDependents="yes" 
                ChangePermission="yes" 
                ServiceInterrogate="yes" 
                ServicePauseContinue="yes" 
                ServiceQueryConfig="yes" 
                ServiceQueryStatus="yes" 
                ServiceStart="yes" 
                ServiceStop="yes" /> 

        <ServiceConfig
xmlns="http://schemas.microsoft.com/wix/UtilExtension"; 
         RebootMessage ="Problem with Service requires a reboot" 
         ResetPeriodInDays="3" 
         RestartServiceDelayInSeconds="5" 
         FirstFailureActionType="restart" 
         SecondFailureActionType="restart" 
         ThirdFailureActionType="reboot"/> 

        <ServiceDependency Id="MSSQLServer"/> 
        </ServiceInstall> 

        <ServiceControl Id="WhateverServiceServiceInstaller" 
                Name="WhateverService" 
                Start="install" 
                Stop="both" 
                Remove="uninstall" 
                Wait="no" /> 
</Component> 

My MSIEXEC output is 

=== Logging started: 11/09/2008  10:19:26 === 
Action 10:19:26: INSTALL. 
Action start 10:19:26: INSTALL. 
Action 10:19:26: ValidateProductID. 
Action start 10:19:26: ValidateProductID. 
Action ended 10:19:26: ValidateProductID. Return value 1. 
Action 10:19:26: CostInitialize. Computing space requirements 
Action start 10:19:26: CostInitialize. 
Action ended 10:19:26: CostInitialize. Return value 1. 
Action 10:19:26: FileCost. Computing space requirements 
Action start 10:19:26: FileCost. 
Action ended 10:19:26: FileCost. Return value 1. 
Action 10:19:26: CostFinalize. Computing space requirements 
Action start 10:19:26: CostFinalize. 
Action ended 10:19:26: CostFinalize. Return value 1. 
Action 10:19:26: ExecuteAction. 
Action start 10:19:26: ExecuteAction. 
Action start 10:19:26: INSTALL. 
Action start 10:19:26: ValidateProductID. 
Action ended 10:19:26: ValidateProductID. Return value 1. 
Action start 10:19:26: CostInitialize. 
Action ended 10:19:26: CostInitialize. Return value 1. 
Action start 10:19:26: FileCost. 
Action ended 10:19:26: FileCost. Return value 1. 
Action start 10:19:26: CostFinalize. 
Action ended 10:19:26: CostFinalize. Return value 1. 
Action start 10:19:26: InstallValidate. 
Action ended 10:19:26: InstallValidate. Return value 1. 
Action start 10:19:26: InstallInitialize. 
Action ended 10:19:26: InstallInitialize. Return value 1. 
Action start 10:19:26: ProcessComponents. 
Action ended 10:19:26: ProcessComponents. Return value 1. 
Action start 10:19:26: UnpublishFeatures. 
Action ended 10:19:26: UnpublishFeatures. Return value 1. 
Action start 10:19:26: StopServices. 
Action ended 10:19:26: StopServices. Return value 1. 
Action start 10:19:26: DeleteServices. 
Action ended 10:19:26: DeleteServices. Return value 1. 
Action start 10:19:26: RemoveFiles. 
Action ended 10:19:26: RemoveFiles. Return value 0. 
Action start 10:19:26: InstallFiles. 
Action ended 10:19:26: InstallFiles. Return value 1. 
Action start 10:19:26: InstallServices. 
Action ended 10:19:26: InstallServices. Return value 1. 
Action start 10:19:26: SchedSecureObjects. 
Action start 10:19:27: ExecSecureObjects. 
Action ended 10:19:27: ExecSecureObjects. Return value 1. 
Action ended 10:19:27: SchedSecureObjects. Return value 1. 
Action start 10:19:27: SchedServiceConfig. 
Action start 10:19:27: RollbackServiceConfig. 
Action ended 10:19:27: RollbackServiceConfig. Return value 1. 
Action start 10:19:27: ExecServiceConfig. 
Action ended 10:19:27: ExecServiceConfig. Return value 1. 
Action ended 10:19:27: SchedServiceConfig. Return value 1. 
Action start 10:19:27: StartServices. 
Action ended 10:19:27: StartServices. Return value 1. 
Action start 10:19:27: RegisterUser. 
Action ended 10:19:27: RegisterUser. Return value 1. 
Action start 10:19:27: RegisterProduct. 
Action ended 10:19:27: RegisterProduct. Return value 1. 
Action start 10:19:27: PublishFeatures. 
Action ended 10:19:27: PublishFeatures. Return value 1. 
Action start 10:19:27: PublishProduct. 
Action ended 10:19:27: PublishProduct. Return value 1. 
Action start 10:19:27: InstallFinalize. 
ExecSecureObjects:  Error 0x80070534: failed to get sid for account:
Administrator 
Action ended 10:19:27: InstallFinalize. Return value 3. 
Action ended 10:19:27: INSTALL. Return value 3. 
Action ended 10:19:27: ExecuteAction. Return value 3. 
Action ended 10:19:27: INSTALL. Return value 3. 
=== Logging stopped: 11/09/2008  10:19:27 === 
MSI (c) (E0:24) [10:19:27:509]: Product: YWSqlReplicator -- Installation
failed. 
-- 
View this message in context: 
http://n2.nabble.com/%3CServiceConfig%3E-Has-anybody-got-this-to-work---tp1083828p1083828.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to