Page 1 of 1

NEEDSUPGRADE always set to false

Posted: Mon Nov 05, 2012 6:05 am
by cybermantec
Hi,

i am using IA 2010 in the following situation

created a project called Setup A 5.0, product code of AAA and the revision code of 123

created a project called Setup A 6.0, product code of AAA and the revision code of 456

The use case is, my customer installs the software with Setup A 5.0 a few month ago. Now i want to upgrade this version to 6.0, uninstalling the version 5.0 and installing the version 6.0 into a different target folder.

I have no success. I have put a messagebox in the first line of my script to display the value of NEEDSUGPRADE. And this variable is always FALSE.

How can i replace a old version with my new version ?

Thanks

Ulrich

Re: NEEDSUPGRADE always set to false

Posted: Mon Nov 05, 2012 10:09 am
by FrancescoT
Dear Ulrich,

I really suppose that exist something wrong somewhere with your project settings.

By default InstallAware handles the update process automatically.

Just having a new revision code with a project build ( ... which it is by default) causes the upgrade process to be triggered ( ... with same PRODUCTCODE and UPGRADECODE) .

For example try the following;
- Create a new project from scratch, leave all project settings as these are by default.
- Build the project and install the package over a target machine.
- Rebuild the project ( ... by default the revision code will be regenerated with ne new build).
- Run the new package build over the same target machine.
I'm sure the previous version will be uninstalled first.

Let me know.

Regards

Re: NEEDSUPGRADE always set to false

Posted: Tue Nov 06, 2012 12:51 am
by cybermantec
Hi Francesco,

i did a new project and it works as expected.

But what could be wrong with my former created project ? We are using IA since about 2 years. We want to roll out a new version of our software and therefor we need first to uninstall the old version and then install the new version.

Thanks

Ulrich

Re: NEEDSUPGRADE always set to false

Posted: Tue Nov 06, 2012 9:58 am
by FrancescoT
Dear Ulrich,

Verify that both your projects shares the same PRODUCTCODE and UPGRADECODE, but a different REVISIONCODE.
These are the minum required settings to have upgrade functionality working.

Let me know.

Regards

Re: NEEDSUPGRADE always set to false

Posted: Tue Sep 22, 2015 3:12 pm
by tofutim
Ulrich, did you ever figure out what was wrong with the old project?