Bugs item #1894167, was opened at 2008-02-15 01:14
Message generated for change (Comment added) made by martywaz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1894167&group_id=105970
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: v2.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Marty Wasznicky (martywaz)
Assigned to: Nobody/Anonymous (nobody)
Summary: ConfigureUsers custom action fails on uninstall
Initial Comment:
I created an install program with WiX 2.0. within it, it adds the Log on as a
service right to an existing domain user like so (from WIX file -
Neuron.waproj.bak):
<Component Id="C_FL_ESBService.exe"
Guid="{ECAA8A97-050C-4712-8919-A58EF814070D}">
<User Id="ServiceUser" UpdateIfExists="yes" Name="[SERVICEUSER]"
Domain="[SERVICEDOMAIN]" CreateUser="no" FailIfExists="no" LogonAsService="yes"
RemoveOnUninstall="no" />
<File Id="FL_ESBService.exe" Name="ESBSer_1"
LongName="ESBService.exe"
Source="C:\dev\ESB\Main\ESBCore\bin\release\ESBService.exe" DiskId="1"
KeyPath="yes">
</File>
<ServiceInstall Id="ESBService" ErrorControl="normal" Name="ESB
Service" Start="auto" Type="ownProcess" DisplayName="ESB Service" Vital="yes"
Password="[SERVICEPASSWORD]" Account="[SERVICEDOMAIN]\[SERVICEUSER]"
Interactive="no">
</ServiceInstall>
<ServiceControl Id="ESBServiceUninstall" Name="ESB Service"
Remove="uninstall"/>
</Component>
The install goes fine, and the log on as a service right is granted to the
existing user account that exists within the domain.
However, when I try to uninstall, with by command line, or through add/remove
programs I get an error (I have the msi log file - loguninstall.txt). I placed
a fragment of the log file below. This has blocked out use of WIX..:
MSI (s) (D8!18) [16:31:23:037]: Creating MSIHANDLE (86) of type 790531 for
thread 1560
Action start 16:31:10: ConfigureUsers.
MSI (s) (D8!18) [16:31:23:037]: Closing MSIHANDLE (86) of type 790531 for
thread 1560
MSI (s) (D8!18) [16:31:23:037]: Creating MSIHANDLE (87) of type 790531 for
thread 1560
ConfigureUsers: Error 0x80070035: Failed to check existence of domain: 5,
user: 0
MSI (s) (D8!18) [16:31:23:053]: Closing MSIHANDLE (87) of type 790531 for
thread 1560
MSI (s) (D8!18) [16:31:23:053]: Closing MSIHANDLE (80) of type 790541 for
thread 1560
MSI (s) (D8:AC) [16:31:23:053]: Closing MSIHANDLE (79) of type 790542 for
thread 1284
ConfigureUsers: Error 0x80070035: failed to add/remove User actions
MSI (s) (D8:04) [16:31:23:053]: Machine policy value 'DisableRollback' is 0
----------------------------------------------------------------------
>Comment By: Marty Wasznicky (martywaz)
Date: 2008-02-16 01:10
Message:
Logged In: YES
user_id=2009736
Originator: YES
Hi Bob,
I think I tried you suggested below. During the install, I also persisted
the SERVICEDOMAIN and SERVICEUSER properties to a registry key like so
(SERVICEDOMAIN\SERVICEUSER). However, the uninstall still failed though.
I'm more than a bit new to WIX...we've been heads down trying to learn it
for our product launch for the last 2 weeks. If there is any sample that
you could send me that works (i.e. adds the logonas service right to
existing service, but then also uninstalls), I'd really really appreciate
it.
Thanks again!
----------------------------------------------------------------------
Comment By: Bob Arnson (barnson)
Date: 2008-02-15 21:56
Message:
Logged In: YES
user_id=26581
Originator: NO
Please don't assign bugs; individuals who volunteer to fix a bug will
assign it to themselves. The CA is failing presumably because the
SERVICEDOMAIN and SERVICEUSER properties aren't valid during uninstall. You
need to persist them (e.g., from the registry using RegistrySearch) so
they're available. The CAs correctly do nothing in the case of a missing
user but fail when the domain/user name pair is invalid.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1894167&group_id=105970
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs