Thanks but it didn't help. I've analysed the verbose log and found that 
ConfigureUsers action is called twice: the first time is at the 
beginning, after Removefolders - in this case this action is executed 
even after using the condition NOT UPGRADINGPRODUCTCODE. and this is the 
cause for the removal of the usernames. The second time that this action 
is called it's not executed due to the condition. I've edited the MSI 
file using Orca and removed all the records containing ConfigureUsers 
and RemoveUsers actions but to no avail.

At the end I found that the only way to prevent the removal of the users 
during the upgrade is to set the User’s attribute 
RemoveOnUninstall="no". This will force me; off course to run a short 
script on uninstall to remove these users.



Bob Arnson wrote:
> Joe Osman wrote:
>   
>> Nothing much in the verbose log - ConfigureUsers action starts and it 
>> removes the users but it doesn't  explain why the users are removed.
>> Is there a way to skip the ConfigureUsers action during a product upgrade?
>>   
>>     
>
> You said you were doing a "minor update" but it sounds more like a major 
> upgrade. If that's the case, you can manually schedule ConfigureUsers 
> and replace its condition to use the UPGRADINGPRODUCTCODE property:
>
> <InstallExecuteSequence>
>     <Custom Action="ConfigureUsers" Before="InstallFiles" 
> Overridable="yes">VersionNT &gt; 400 AND NOT UPGRADINGPRODUCTCODE</Custom>
> </InstallExecuteSequence>
>
>   

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


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to