cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reureu
Level 10

Which MSI Conditions tells me that a minor upgrade is being performed?

Hi,

I am working on a Basic MSI project with Installshield 2008.

My UI sequence depends on MSI conditions like:

  • Installed
  • Not Installed
  • _IsMaintenance="Reinstall"
  • _IsMaintenance="Change"
  • _IsMaintenance="Remove"

But is there any condition which would tell me that the Setup is actually performing a minor upgrade?

I managed to find the following document http://www.acresso.com/webdocuments/PDF/msiconditions.pdf, but it does not mention the upgrade.

Regards
Labels (1)
0 Kudos
(10) Replies
hoferat87
Level 3

Well for a major upgrade the property is IS_MAJOR_UPGRADE so im assuming that for a minor upgrade the property is IS_MINOR_UPGRADE i've never used this property before though, so no garanties. 😉
0 Kudos
RobertDickau
Flexera Alumni

Please see the condition on the SetupResume dialog box for one possibility.
0 Kudos
puresoul
Level 4

Any one got solution for this problem, even i am facing same problem.
In my case IS_MINOR_UPGRADE is not working. 😞
0 Kudos
Reureu
Level 10

puresoul,

the IS_MINOR_UPGRADE is indeed set when you perform a minor upgrade.
It does work.

You should be more specific about the issue you are facing and give a bit more information.

  • Are you working on a Basic MSI project?
  • Does the problem occur during the UI sequence or the Execute sequence?
  • Did you try to produce a detailed MSI log to have a look at the properties that are set during the upgrade?
  • Did you start the upgrade by double-clicking on setup.exe or did you just double-click the MSI package?

Regards
0 Kudos
RobertDickau
Flexera Alumni

Please see the condition on the SetupResume dialog box for one possibility.
0 Kudos
puresoul
Level 4

Hi Reureu,

I am workin on Basic MSI Project,
I want to check during setup, whether it Minor or Major upgrade.
It is in UI Sequence, IS_MAJOR_UPGRADE is working fine but IS_MINOR_UPGRADE is not working, even I am not aware how to set it or how to use it.
I am executing setup by clicking on Setup.exe

Also can you please tell me how to set Minor Upgrade.

Thanks
0 Kudos
Reureu
Level 10

Hi puresoul,

Can you create an MSI logfile in verbose mode, when performing your minor upgrade?
Just launch setup.exe from the command line as follows:
setup.exe /v"/L*vx C:\LogfileMinorUpgrade.log"


Then open C:\LogfileMinorUpgrade.log with an MSI file analyser or even with a text editor and look for the string "IS_MINOR_UPGRADE".
If it is set during the minor upgrade, then the log file should show it.

In my setup project, this MSI property is automatically set by setup.exe from the very beginning of the minor upgrade. So it is already set before displaying any UI dialog.
Even better, as it is a public property (ie its name is written in upper case), it exists during the UI sequence as well as during the Execute sequence

A few more questions:

  • What happens when you launch setup.exe to perform your minor upgrade? Which dialog do you see first? The InstallWelcome dialog, or the SetupResume dialog?
  • Which version of Installshield are you using to build your setup?

Regards
0 Kudos
puresoul
Level 4

Hi,

It is working now, I hav made silly mistake.
Actually I have not updated the upgrade code, now I have updated it and it is working fine.

Thanks a lot for help 🙂 🙂 🙂

Regards
0 Kudos
Reureu
Level 10

Hi puresoul,

You don't normally change the upgrade code.
The upgrade code allows to tell Windows Installer that 2 products (with different product codes) are related, and that it should perform a major upgrade, if you have configured your upgrade table accordingly.
Windows Installer assumes that 2 products with the same upgrade code are related.

If you want to perform a minor upgrade, you should:

  • Change the package code
  • Change the product version

Have a look at the last table in
http://documentation.installshield.com/robo/projects/installshield12helplib/MajorMinorSmall.htm

It shows which code needs to be changed to perform upgrades.

Regards
0 Kudos
puresoul
Level 4

Hi,

Yes you are right, it is my mistake again.
It was testing mistake and i thought it worked fine.

Again I stucked at same point i mentioned in previous post.

I will try your suggestion and get back to you.

Thanks,
0 Kudos