Hello, I am now looking for a solutions since 3 days to deleting an ConfigFile based on a Checkbox. I am installing this Config File via the WiX generated msi and i want to give the user the decision to uninstall the Config or not when he decide to uninstall my program.
In the Dialog.wxs I added an Checkbox like this: <Control Type="Text" Id="UnInstallConfig" Width="300" Height="26" X="41" Y="205" Text="!(loc.UnintallConfigWarning)" Property="UNINSTALLCONFIG" CheckBoxValue="1" /> In the Product.wxs i added these lines: <Property Id="UNINSTALLCONFIG" Value="1" /> <Component Id="Config" Guid="GUID-HERE"> <File Id="Configuration.xml" Name="Configuration.xml" Source="$(var.PathToFile)\Default_Configuration.xml" Vital="yes" KeyPath="no" DiskId="1" /> </Component> <Component Id="RemoveConfig" Guid="GUID-HERE"> <Condition>UNINSTALLCONFIG</Condition> <RemoveFile Id="Config" Name="Configuration.xml" On="uninstall"/> </Component> But every time i test this the Config is removed even when i uncheck the checkbox to signal that i want to keep my Config file. I don“t know how to get this working so i need help from you. If someone know a Solution please tell me. Kind regards Lukas -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Deleting-Config-File-based-on-CheckBox-tp7588783.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users