View Full Version : differential media and feature events

11-11-2003, 05:39 PM
I have made an update setup in which only one feature is changed, and the rest is exactly the same.
When I make a differential release, only the changed feature is included.
But when the script is run, the Installing event of ALL the features are fired.

Somehow this is logical, because a FeatureReinstall is called (I think) and only because the files are the same they don't get copied. This is the same for normal updates as for differential updates.

My question is, how can I test if a feature is _really_ updated?

I want to automatically configure some stuff if and only if new data files are copied (which are in the "data" feature)

11-11-2003, 08:03 PM

Update mode is basically repair mode, in repair mode all currently installed features get reinstalled, thus the events will be fired, this is good as for some updates there could be updated code in the events that needs to execute.

If you want to detect what features are actually installing file you could use a combination of the feature events and OnFileInstalling to identify features that actually install files.

You could also use ComponentFileEnum to check whether the features/components actually have files in them in the differential media.

Devin Ellingson
InstallShield Software Corporation