NEEDSUPGRADE always false?

Got a problem you cannot solve? Try here.
tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

NEEDSUPGRADE always false?

Postby tofutim » Tue Sep 22, 2015 2:33 pm

Hi, my NEEDSUPGRADE seems to be always false. How does this get set? Is it because NATIVE ENGINE is TRUE?

Hmm, I just checked this on a completely new project and it works right and NEEDSUPGRADE gets set even with NATIVE_ENGINE TRUE. What causes this, what can I check for in my existing project?

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

Re: NEEDSUPGRADE always false?

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

I think I just broke my test project. It works for a while but then it starts to not work and NEEDSUPGRADE is always FALSE.

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

Re: NEEDSUPGRADE always false?

Postby tofutim » Tue Sep 22, 2015 4:02 pm

It does seem that a NATIVE_ENGINE installation does not get registered so that NEEDSUPDATE can detect it. Here is my repeatable process:

InstallAware Studio X2

1. New Project -> QuickStart
2. For Application Files, pick a dummy folder with a test file
3. Check Build my setup now
4. Create a Web build by clicking Web Deploy
5. Run the Web build, skip Running the program
6. Hit Web Deploy again to make a new build
7. Previous Version Uninstallation will be triggered
8. Go through it
9. Hit Web Deploy again to make a new build
10. Again Previous Version Uninstallation will be triggered
11. Now add "Set Variable NATIVE_ENGINE to TRUE"
12. Hit Web Deploy again to make a new build
13. Again Previous Version Uninstallation is triggered
14. Hit Web Deploy again to make a new build
15. THIS TIME PREVIOUS VERSION UNINSTALLATION IS NOT TRIGGERED!

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

Re: NEEDSUPGRADE always false?

Postby tofutim » Tue Sep 22, 2015 4:07 pm

16. Set NATIVE_ENGINE to false, hit Web Deploy and run
17. Previous Version Uninstallation is NOT triggered
18. Hit Web Deploy again to make a new build
19. Now Previous Version Uninstallation is triggered again

So the installed program has to be non-NATIVE_ENGINE built in order for the current installer to detect it as having been installed. Maybe that makes sense if NATIVE_ENGINE means not MSI-based or registered... HELP!

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

Re: NEEDSUPGRADE always false?

Postby tofutim » Tue Sep 22, 2015 4:20 pm

Quick Start - use the Native Setup template

1. Quck Start - select the Native Setup template
2. Hit Web Deploy and run installer
3. Hit Web Deploy and run installer
4. Previous version removal is triggered

This technique above works, maybe because NATIVE_ENGINE is not TRUE everywhere.

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

Re: NEEDSUPGRADE always false?

Postby tofutim » Tue Sep 22, 2015 4:35 pm

Aha, I see now there is "RECOMMENDEDUPGRADE" for Native engine.

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

Re: NEEDSUPGRADE always false?

Postby tofutim » Tue Sep 22, 2015 5:18 pm

This is great, except for one OFFLINE file that seems to be hanging on, the old installation is getting removed. But how can I get rid of all previous installations that did not get removed from ProgramData?

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

Re: NEEDSUPGRADE always false?

Postby FrancescoT » Wed Sep 23, 2015 11:30 am

Dear Tofutim,

in fact! with Native Engine RECOMMENDEDUPGRADE has to be used.

For what concerns your question about ProgramData files, I have already replied to the other topic you started.
http://www.installaware.com/forum/viewtopic.php?f=2&t=10443&start=0

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 134 guests