Try this: <CustomAction Id="RemoveUserFromGroup" Directory="TARGETDIR" ExeCommand="cmd.exe /c net localgroup administrators youruser /delete" //this just deletes the users group membership and not the user. Return="check" Execute="deferred" Impersonate="no" />
add the CustomAction to your installexecutesequence <InstallExecuteSequence> <Custom Action="RemoveUserFromGroup" Before="RemoveFiles">(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom> Hope that helps. J On Tue, Oct 7, 2014 at 9:57 PM, Nick Ramirez <nickra...@hotmail.com> wrote: > 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 feature? > > I want to: > * Add an existing user to an existing group during install > * Remove that user from the group during uninstall > > I do not want to: > * Remove the group during uninstall > * Remove the user during uninstall > > The Util extension does not remove the user from the group during > uninstall. > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/On-uninstall-group-is-not-removed-from-user-tp7597039p7597177.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- "They may forget what you said but they will never forget how you made them feel." -- Anonymous ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users