I have existing installation of my program on several computers. They were not installed by windows installer before - Manually copied files to the computers and installed service with installutil.
I am trying to create an installer for this application. That means, in the feature, my computers may have two different installations: some are installed manaully, others are installed by the installer. I hope the installer can detect current installation. If it is not installed by windows installer, delete the files immediately but save some configuration files. If it is installed by windows installer, I guess the installer itself knows when and how to delete the files, so I need only to save the configuration files.
My questions are,
How to write a .exe custom action to delete if the existing program is installed manually or installed by windows installer? I think I can use MSI functions to detect if it is installed by windows installer. But I hope Advanced installer can do it easily so I don't have to write the code.
How to set run condition for this custom action?
Thanks.
cajin2
FOLLOW US
Get the latest news in Application Packaging