Thank you all for your replies. @Sean: If I remove the UpgradeVersion elements, it keeps all the installation, ie when I go to Control Panel\Programs\Programs and Features, my installation shows up multiple times, as many as the number of times I install.
@John: When Schedule="afterInstallExecute" or "afterInstallExecuteAgain", the installer CORRECTLY does NOT override the config file. Yay ! But, when the installation fails, it gave me the prompt "The following applications should be closed before continuing the install: WixWindowsService2012". And, it asks me to select -Automatically close applications and attempt to restart them after setup is complete. -Do not close applications. (A Reboot may be required). When I select "Automatically close applications and attempt to restart them after setup is complete.", it stop the running Windows Service, but it never prompt me to cancel the installation. So it never rolled back to the previous version of installation. The only way to rollback the installation is when I click Cancel on the above prompt. Is that by design ? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-not-copy-a-file-in-subsequent-installations-tp7592929p7592960.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users