Wrong version of program launching 2nd time - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

pringsmuth
Posts: 6
Joined: Mon Aug 22, 2011 2:33 pm

Wrong version of program launching 2nd time

My advanced installer is configured to launch my software program, RepToolsSSD, as the last step in the install process. It correctly launches RepToolsSSD with its appropriate data file.

However once RepToolsSSD is quit, the next time it is run from a shortcut on the desktop, a previous version of the program runs rather than the new one that the installer has just installed. A previous data file is also being selected.

The installer can be used to uninstall the program. The Windows Control panel, Add Remove, also can be used to uninstall the program. Both of these ways of uninstalling actually do remove the program. Checking the folders where the installation is supposed to occur verify that the program is removed (except for a data file which is never removed).

The shortcut points to the correct file in the place where it is installed. Using the search function of Windows 7 to find the pieces of the program shows that when it is uninstalled, it really is uninstalled. Conversely when the program is installed, everything seems to be where it is supposed to be.

Here is the kicker. The exact same installer which is run on other computers does not exhibit this problem.

The only difference that I can see is that on the problem computer the installer has to be run using "run as administrator". The other computers seem to have the right permissions.

Can anyone help me to figure out why the wrong version of my program is launching after a seemingly successful installation that launched from the installer correctly?

I'm running AI version 8.4.
The problem computer is running Windows 7 Home Edition.
Paul Ringsmuth
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Wrong version of program launching 2nd time

Hello,

A upgrade must have the same installation type as the previous version( per machine, per user, etc ). Also, on Vista or above every package is prompted for elevation( this can be avoided only with a certain type of patch ).

I am not sure why this happens in your case. Since the new version runs correctly the first time, it must installed correctly on that machine. Can you access this new version after it has been installed from another location other than using the desktop shortcut( its installation location )?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pringsmuth
Posts: 6
Joined: Mon Aug 22, 2011 2:33 pm

Re: Wrong version of program launching 2nd time

I am not sure why this happens in your case. Since the new version runs correctly the first time, it must installed correctly on that machine. Can you access this new version after it has been installed from another location other than using the desktop shortcut( its installation location )?
No, we can't run it from the executable. We went to the target of the shortcut, the executable file, and tried to run it from there. The old program runs rather than the new one. I'm beginning to think that the program is running on another user and we can't see that user. I'm suggesting to my client that he try to run the installed program as administrator rather than as himself. It may take a day before he tries this. I'll post again if we find the solution.

There are most certainly two copies of my program on his computer and we can't see or find the newest copy after the installer has run as administrator.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Wrong version of program launching 2nd time

Hi,

Can you please send us the .AIP (project) file you are using and a verbose installation log to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pringsmuth
Posts: 6
Joined: Mon Aug 22, 2011 2:33 pm

Re: Wrong version of program launching 2nd time

I have requested that my client attach the log file to an email and send it to me. I had enough forethought to have AI produce a log file. When I get that I will send it along with the .AIP file for your review. Thanks much for your help.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Wrong version of program launching 2nd time

Hello,

We have looked into project and can't seem to find something obvious that may cause the problem. This may happen because of setting "Install new version first and then uninstall old version" in the Upgrades page:
http://www.advancedinstaller.com/user-g ... rades.html

The two versions cannot be installed at the same time because you don't have that option checked in the Upgrades page. Also, if the removal of the old application fails, then the installer rolls back both the removal of the old application and the installation of the new application.

You can try to switch to "Uninstall old version first and then install new version" and see if the behavior persists.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pringsmuth
Posts: 6
Joined: Mon Aug 22, 2011 2:33 pm

Re: Wrong version of program launching 2nd time

Mihai,

Problem solved. My client reports the following:

"And yes, the only thing that I did differently from before was to go into the RepTools shortcut on Dave’s tablet, then open up the properties and check the “run as administrator” box inside the shortcut. After that, whenever I clicked on the shortcut it brought up the newer version of the program."

My theory was that since AI could not install as a regular user and we had to run AI as administrator, that maybe RepToolsSSD would run correctly if it was also run as administrator. I showed my client how to do that and it worked.

However I am also taking your advice regarding the "Upgrades" tab. I'm checking "Uninstall old version first and then install new version". I used to have it the other way around.

Thanks for your fantastic support. It is really good to know that there is someone out there that I can talk to.

Paul Ringsmuth

Return to “Common Problems”