PDA

View Full Version : Determent if it is an upgrade



danjal
03-04-2008, 05:29 AM
I have a InstallScript MSI Project.
I want too be able, in a script, to determent weather an installation is a first time installation or an upgrade from a previous installation.

I have tried IS_SMALL_UPGRADE and IS_MINOR_UPGRADE, but the compiler does not recognize this properties.

Can anyone help me?

danjal
03-06-2008, 03:57 AM
I have figured out that if the message “This setup will perform an upgrade of…” appears I can put that special script in the event OnResumeUIBefore().

But is this the right way to do it?