All,
I have a component in my installer to add a service account to a local
group. My installer prompts the user to enter the credentials of the the
account and I don't persist that data anywhere. Because I wasn't persisting
the information this caused the uninstall to fail so I added a condition for
NOT Installed which fixed the problem. However, I still have the problem if
the user re-installs or attempts to repair the installation. I tried adding
an additional condition but this doesn't seem to be helping.
Here is the snippet from my installer. BTW - UPGRADE is a property I set if
I find a previous version of my product.
<Component Id="SvcAcct_IISWPGroup" Guid="..." Permanent="yes"
NeverOverwrite="yes">
<Condition>NOT Installed AND NOT UPGRADE AND NOT REINSTALL ~=
"ALL"</Condition>
<CreateFolder/>
<u:User Id="ServiceAccount_IISWPGroup" CreateUser="no" Name="[SVC_ACCT]"
Password="[SVC_PWD]" Domain="[SVC_DOMAIN]" UpdateIfExists="no">
<u:GroupRef Id="IISWPGroup"/>
</u:User>
</Component>
Here is the error from the install log.
MSI (s) (00:88) [15:09:13:969]: Executing op: ActionStart(Name=CreateUser,,)
Action 15:09:13: CreateUser.
MSI (s) (00:88) [15:09:13:969]: Executing op:
CustomActionSchedule(Action=CreateUser,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (00:98) [15:09:14:047]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSI2F5F.tmp, Entrypoint: CreateUser
MSI (s) (00:18) [15:09:14:047]: Generating random cookie.
MSI (s) (00:18) [15:09:14:094]: Created Custom Action Server with PID 3012
(0xBC4).
MSI (s) (00:B8) [15:09:14:141]: Running as a service.
MSI (s) (00:B8) [15:09:14:141]: Hello, I'm your 32bit Elevated custom action
server.
CreateUser: Error 0x80070103: failed to read attributes from custom action
data
Action ended 15:09:14: InstallFinalize. Return value 3.
--
Glen Cooper
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users