My installer creates a new user and gives it a random password during the install. The installer also installs a service which using this username and its password.

During a product upgrade the installer generates a new password for this user and reinstalls the service with a new password.

During a rollback of a product upgrade the service is rolled back but the user doesn't so the result is an old service using old password and a user with the new password. The result is that the service cannot start because it cannot login as that user due to an incorrect password.

What do I need to do in order to rollback the user creation ?

This is the code for user creation:

<Directory Id="INSTALLDIR">
           </Directory>
<Component Id="CreateNewUser" Guid="{4EB74AD3-C3EC-43be-B9FC-1D574151DE07}"> <util:User Id="OtarServer" CreateUser="yes" Name="OtarServer" Password="[USERPASSWORD]" LogonAsService="yes" PasswordNeverExpires="yes" UpdateIfExists="yes" FailIfExists="no" RemoveOnUninstall="no" /> <util:User Id="KmfWebUI" CreateUser="yes" Name="KMFWebUI" Password="[USERPASSWORD]" PasswordNeverExpires="yes" UpdateIfExists="yes" FailIfExists="no" RemoveOnUninstall="no"/>
           </Component>

=======================================================================
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to