Re: [WiX-users] On uninstall, group is not removed from user

2014-10-08 Thread Jeremiahf
toolset. > Subject: Re: [WiX-users] On uninstall, group is not removed from user > > Try this: > > Directory="TARGETDIR" > ExeCommand="cmd.exe /c net localgroup administrators youruser > /delete" //this just deletes the users group

Re: [WiX-users] On uninstall, group is not removed from user

2014-10-08 Thread Rob Mensching
[mailto:jeremi...@gmail.com] Sent: Wednesday, October 8, 2014 5:36 AM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] On uninstall, group is not removed from user Try this: add the CustomAction to your installexecutesequence (NOT UPGRADINGPRODUCTCODE) AND (REMOVE=&quo

Re: [WiX-users] On uninstall, group is not removed from user

2014-10-08 Thread Jeremiahf
Try this: add the CustomAction to your installexecutesequence (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL") Hope that helps. J On Tue, Oct 7, 2014 at 9:57 PM, Nick Ramirez wrote: > Jeremiahf wrote > > Sorry, Thought you were trying to remove the user from the group on > > uninstall. > > Y

Re: [WiX-users] On uninstall, group is not removed from user

2014-10-07 Thread Nick Ramirez
Jeremiahf wrote > Sorry, Thought you were trying to remove the user from the group on > uninstall. Yep. That's what I'm trying to do. The LocalGroupMember element from the Community MSI Extensions does what I need. Not sure whether I should say it's a bug in the Util extension that it lacks this f

Re: [WiX-users] On uninstall, group is not removed from user

2014-10-07 Thread Jeremiahf
Sorry, Thought you were trying to remove the user from the group on uninstall. On Mon, Oct 6, 2014 at 10:42 AM, Nick Ramirez wrote: > No need to make my own custom action. I've found that the WiX extension > from > the Community MSI Extensions project has an element for adding an existing > user

Re: [WiX-users] On uninstall, group is not removed from user

2014-10-06 Thread Nick Ramirez
No need to make my own custom action. I've found that the WiX extension from the Community MSI Extensions project has an element for adding an existing user to a group that works for me. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/On-uninstall-

Re: [WiX-users] On uninstall, group is not removed from user

2014-10-06 Thread Jeremiahf
Why not add another custom action that removes the user from the group and only execute on the condition of Uninstall? On Sun, Oct 5, 2014 at 2:19 PM, Bob Arnson wrote: > On 05-Oct-14 01:58, Nick Ramirez wrote: > > I was afraid that setting RemoveOnUninstall to "yes" or not putting it > there >

Re: [WiX-users] On uninstall, group is not removed from user

2014-10-05 Thread Bob Arnson
On 05-Oct-14 01:58, Nick Ramirez wrote: > I was afraid that setting RemoveOnUninstall to "yes" or not putting it there > at all would have the effect of removing the existing user from the system. That doesn't happen with @CreateUser="no". > Thankfully, that does not happen. However, it also doesn

Re: [WiX-users] On uninstall, group is not removed from user

2014-10-04 Thread Nick Ramirez
I was afraid that setting RemoveOnUninstall to "yes" or not putting it there at all would have the effect of removing the existing user from the system. Thankfully, that does not happen. However, it also doesn't affect the user's group membership. The user is left unchanged after uninstall, still b

Re: [WiX-users] On uninstall, group is not removed from user

2014-10-02 Thread Bob Arnson
On 27-Sep-14 16:33, Nick Ramirez wrote: > RemoveOnUninstall="no"> > ... > When I run this installer, the existing user is updated so that it is now a > member of the Administrators group. However, on uninstall, the membership is > not removed from that user. Is there something else I need to add to

[WiX-users] On uninstall, group is not removed from user

2014-09-27 Thread Nick Ramirez
I have the following markup to add an existing user to a group: When I run this installer, the existing user is updated so that it is now a member of the Administrators group. However, on uninstall, the m