I have a custom action set to run after InstallFiles which executes a program installed with the product. When running the compiled msi I get an error that the program cannot be found, presumably as it hasn't yet been copied.
If I set this custom action to run after FinalizeInstall the program runs correctly, but then also attempts to run on uninstall, by which time it has been removed so causes an error.
Is there a way I can get this custom action to only be performed when installing, not uninstalling?
Thanks

Reply With Quote


