what will be the condition for custom action to run only on first installation in InstallShield?

315 Views Asked by At

I have a requirement to delete the files if the customer has installed the exe for the first time and uninstalled it.

If the user has upgraded the exe without uninstalling the present installer and trying to uninstall the upgraded installer we should leave the files as it is.

I have tried the conditions for the custom action as below, but it is not working. The files are getting deleted in both the cases.

NOT(is_major_upgrade or is_minor_upgrade)
REMOVE ~="ALL"
Not Installed

Can you please help with this?

Thanks in advance,

Panvith

0

There are 0 best solutions below