NEEDSUPGRADE always set to false

Got a problem you cannot solve? Try here.
cybermantec
Posts: 4
Joined: Mon Nov 05, 2012 5:58 am

NEEDSUPGRADE always set to false

Postby cybermantec » Mon Nov 05, 2012 6:05 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: NEEDSUPGRADE always set to false

Postby FrancescoT » Mon Nov 05, 2012 10:09 am

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

cybermantec
Posts: 4
Joined: Mon Nov 05, 2012 5:58 am

Re: NEEDSUPGRADE always set to false

Postby cybermantec » Tue Nov 06, 2012 12:51 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: NEEDSUPGRADE always set to false

Postby FrancescoT » Tue Nov 06, 2012 9:58 am

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

Re: NEEDSUPGRADE always set to false

Postby tofutim » Tue Sep 22, 2015 3:12 pm

Ulrich, did you ever figure out what was wrong with the old project?


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 166 guests