PDA

View Full Version : abort during upgrade OnInstalled becomes exit?



ldorsey
11-04-2009, 09:54 AM
This problem in was described some years ago, but received no reply:
http://community.installshield.com/showthread.php?t=65022

I would like to know whether this is intended behavior. And, if so, what the rationale for it is.

During a minor upgrade (file content changes and product version, but no features or components are added), if abort is called in Feature_Installed, the installer exits but does not roll back: the data already moved to disk is not reverted. But in Add/Remove program, the old program version still shows up.

I can reproduce this in IS 2008 Premeir using a simple (pure) InstallScript project having one Feature, one Component, and one (text) file.

After installing v1.0.0, I make a change to the text file, re-build the setup.exe, and run. (The only coding that needs to be done is to add an abort, see below.)

export prototype NewFeature1_Installed();
function NewFeature1_Installed()
begin
if (UPDATEMODE)
then
MessageBox("updatemode", INFORMATION);
abort;
endif;
end;

Cheers.