Rob 

I have to Uninstall each time otherwise I get something along the lines of
"Application already installed". Also if I change the account info I get a
different SID not found for XXX where XXX is the new account I entered. 

Without the PermissionEx I get "Permission denied" every time. 

If it is working for you it must be something to do with the build and
config of my machine.  This is a work machine, built with all sorts of
policy crap in it.  Although I am in local Admins group. 

My only thought is that all the "standard" tags seem to work but the <util:>
ones are not getting the correct context or something. 

I will build the MSI and run it on another machine and see what happens. 

Cliff 



Rob Mensching-2 wrote:
> 
> That's my problem, ServiceConfig is working fine.  Are you uninstalling
> the MSI before installing a new version?  If not, then you may be running
> the cached MSI over and over and that would explain why every log file
> hits the same error.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of CHarker
> Sent: Saturday, September 13, 2008 03:00
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] <ServiceConfig> Has anybody got this to work??
> 
> 
> I can do that at work on Monday but to be honest you will see very little.
> 
> Those ExecSecureObjects lines are identical apart from they say either
> "SID
> not found" if I put a bad name in or "Access denied" if I put one in it
> can
> find (Administrators).
> 
> I think if you create a simple EXE do a ServiceInstall and a ServiceConfig
> you will get the same thing. I run as admin on my machine.
> 
> Cliff
> 
> 
> Rob Mensching-2 wrote:
>>
>> I understand the frustration.  I do think you've found a bug in here
>> *somewhere*.  If you can provide log files of all these failure cases
>> (even just snippets with 20 lines above and below the line that has
>> "value
>> 3") then I think we can get this fixed pretty quickly.  I'm actually
>> solely focused on fixing extension bugs right now so you could get a bug
>> fix within a week... if we can track it down.
>>
>> Also, I'm quite certain that once we find the bug you'll be far more
>> stable than SelfReg + .BAT file.  <grin/>
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of CHarker
>> Sent: Friday, September 12, 2008 09:19
>> To: wix-users@lists.sourceforge.net
>> Subject: Re: [WiX-users] <ServiceConfig> Has anybody got this to work??
>>
>>
>>
>> Rob
>>
>> I tried everything.  If I put "Administrators" it fails at the end but
>> only
>> after it has installed the service with so much security that I can't
>> uninstall it from Control Panel. I have to delete from the registry,
>> reboot
>> and  then run the installer.
>>
>> If I remove the <PermissionEx> and <ServiceConfig> it works. I can
>> install
>> and uninstall no problem.
>>
>> If  I add the <ServiceConfig> I get "permission denied" which I find a
>> bit
>> odd.  Why if my account has just installed the service (and can uninstall
>> it) can I not tweak a few values?
>>
>> So I thought <PermissionEx> but that seems to affect the <ServiceInstall>
>> not the <ServiceConfig>.  I read on another thead that it understands
>> "Everyone, Administrator, LocalSystem, LocalService, NetworkService,
>> AuthenticatedUser, Guests, CREATOR OWNER, INTERACTIVE and Users".
>>
>> I tried the NT Authority route too.
>>
>> I get either "SID not found" or "Access denied".
>>
>> I don't understand why I need <PermissionsEX> at all.  It does seem to
>> affect something but not <ServiceConfig>
>>
>> At it's simplest this WIX file takes one EXE, installs as Service and
>> sets
>> the Config. That's it. Why should there be permission issues atthe 2nd
>> stage.
>>
>> I am about to give up on it and use Self reg and a BAT file!! Time is
>> short.
>>
>> thanks for reading this and sorry for posting in many places, I didn't
>> know
>> where best to get an answer :)
>>
>> Cliff
>>
>>
>>
>>
>> Rob Mensching-2 wrote:
>>>
>>> I updated this information in the bug:
>>>
>>>>From the log file you provided, it looks like ServiceConfig completed
but
>> the PermissionEx cannot find the user you are asking for:
>> ".\Administrator".
>> If you want the local admin, you need to ask for it by its proper name:
>> "NT
>> AUTHORITY\Administrator".
>>>
>>> -----Original Message-----
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of CHarker
>>> Sent: Thursday, September 11, 2008 15:28
>>> To: wix-users@lists.sourceforge.net
>>> Subject: [WiX-users] <ServiceConfig> Has anybody got this to work??
>>>
>>>
>>> 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
>>>
>>>
>>> -------------------------------------------------------------------------
>>> 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
>>>
>>>
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/%3CServiceConfig%3E-Has-anybody-got-this-to-work---tp1083828p1085442.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
>>
>>
>> -------------------------------------------------------------------------
>> 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
>>
>>
> 
> --
> View this message in context:
> http://n2.nabble.com/%3CServiceConfig%3E-Has-anybody-got-this-to-work---tp1083828p1087172.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
> 
> 
> -------------------------------------------------------------------------
> 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
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/%3CServiceConfig%3E-Has-anybody-got-this-to-work---tp1083828p1110797.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