[WiX-users] util:User doesn't role back

2009-02-25 Thread Joe Osman
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


Re: [WiX-users] util:User doesn't role back

2009-02-25 Thread Bob Arnson
Joe Osman wrote:
 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. 

There's no way to get the user's old password, so there's no way to roll 
back the update of an existing user.

-- 
sig://boB
http://joyofsetup.com/



--
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


Re: [WiX-users] util:User doesn't role back

2009-02-25 Thread Wilson, Phil
And it's mentioned in the Password description of the ServiceInstall table:
http://msdn.microsoft.com/en-us/library/aa371637(VS.85).aspx 

Phil Wilson 


-Original Message-
From: Bob Arnson [mailto:b...@joyofsetup.com] 
Sent: Wednesday, February 25, 2009 2:07 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] util:User doesn't role back

Joe Osman wrote:
 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. 

There's no way to get the user's old password, so there's no way to roll 
back the update of an existing user.

-- 
sig://boB
http://joyofsetup.com/



--
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



--
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