I have created two custom actions that does the following jobs: 1. Create a file based on the property passed to the installer. eg msiexec /i installer.msi /l*v out.txt IPADDRESS="192.168.2.2.08" The custom action will create a file that will contain the data as: { "ip":"192.168.2.208" } 2. Another Custom action will remove the residual files that the executable created during uninstall.
Now, I have called these two Custom Action in my Wix file as: <CustomAction Id="WRITEFILETODISK" Execute="immediate" BinaryKey="SetupCA" DllEntry="WriteFileToDisk" /> <CustomAction Id="ResidueRemove" Execute="immediate" BinaryKey="SetupCA" DllEntry="DeleteResidue" /> <InstallExecuteSequence> <Custom Action="WRITEFILETODISK" Before="InstallFinalize">NOT Installed</Custom> <Custom Action="ResidueRemove" After="InstallFinalize">Installed</Custom> </InstallExecuteSequence> The problem I am facing is that, when the user again tries to execute the command given at number 1, it will call ResidueRemove. I want to prevent this scenario. One solution could be calling the ResidueRemove during only true uninstallation. If this method is ok, how can I implement it. Another Solution could be prompting user that the product is already installed. If so, How can I show prompt to user that it is already installed? Thanks. -- *sarvagya* ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users