Ghost previous version of an installed program - 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!

sbarto
Posts: 4
Joined: Mon Apr 16, 2012 7:47 pm

Ghost previous version of an installed program

Here is a strange problem that we encounter on some Windows 7 PCs. For example, we sell the "ABC" Software.

1. Build the installer for "ABC" version 1.0 with Advanced installer.
2. Install "ABC" on a Win 7 PC.
3. Build the installer for "ABC" version 1.1 with Advanced installer, same project, new version.
4. Uninstall "ABC" version 1.0 on the Win 7 PC using the official Windows Uninstall Program interface.
5. Check the content of "Program files (x86)" folder, the "ABC" subfolder is deleted. That's ok.
6. Install "ABC" version 1.1 on the Win 7 PC.
7. After installation, open the "Program files (x86)/ABC" subfolder, double click on the "ABC.exe".
8. Microsoft Windows starts "ABC" version 1.0 instead of the new version 1.1!!!
9. Moreover, if you simply modify the name of the subfolder "ABC" after installation, "ABC v1.1" for example, and double click on the "ABC.exe" file, then Microsoft Windows starts "ABC" version 1.1, as expected.

We thought there was a problem with the restore points of Microsoft Windows, so we cleared everything that we could but that did not help.

Has anyone ever encountered such a problem? Thanks in advance for any advice...
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Ghost previous version of an installed program

Hi and welcome to Advanced Installer forums,

This behavior could be produced by a known Windows Installer files versioning bug. In order to avoid this behavior you should try this workaround:
- From "Files and Folders" view select your problematic files.
- From its context menu choose "Properties..." option.
- In the new dialog from "Version" tab enable the "Ensure that this file overwrites any installed target files" option.
Another approach will consist in changing the default installation path for the new version of your application.

If you have any questions let me know.

Regards,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbarto
Posts: 4
Joined: Mon Apr 16, 2012 7:47 pm

Re: Ghost previous version of an installed program

Hi Daniel,

Thank you for your reply. Unfortunately, it did not work. Do you have another advice?!

I really wonder where Microsoft Windows is hiding the previous version of the files and why Windows uses the previous version instead of the new installed version. Moreover, why is it working well, if we simply rename the folder of the application AFTER installation? Apparently, "Advanced installer" is doing its job, it is Microsoft Windows who behaves strangely...

Sincerely,

Silvio
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Ghost previous version of an installed program

Hi Silvio,

I'm not sure why you are encountering this behavior. Can you attach a log file of your package installation?
Moreover, why is it working well, if we simply rename the folder of the application AFTER installation?

Can you please perform a restart of your machine after installation completes and before you want to run your application.

Regards,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbarto
Posts: 4
Joined: Mon Apr 16, 2012 7:47 pm

Re: Ghost previous version of an installed program

Hi Daniel,

Thank you for your help. This problem is quite strange and annoying... I did as you said, restarting the computer right after installing the software "ABC" but it did not work. Microsoft Windows starts the previous version of "ABC".

I reinstalled the software, you will find enclosed the zipped log file (131 Kb -> 2.7 Mb unzipped). I hope that you will something interesting in this huge log file.

Sincerely,

Silvio Bartolini
Attachments
OM_Finance.log.zip
(126.35 KiB) Downloaded 829 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Ghost previous version of an installed program

Hi Silvio,

Unfortunately, your log file is too large and we can not found your problematic exe file. Can you tell us the exactly name of your problematic file?
If you can not make a disclosure here, can you please send us an e-mail to support at advancedinstaller dot com?

Regards,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Ghost previous version of an installed program

Hi Silvio,

Your EXE has the same version and size in both installers. This is usually a bad thing because it may lead to unwanted behavior. So an improvement would be to increase the version in your new package.

We were able to reproduce the problem, but the installation seems to work correctly. The new EXE is installed and this can be verified using the file dates.

So either your application is retrieving the version incorrectly for the splash screen, or Windows is somehow caching the EXE. Either way, increasing the file version in your new installer should help.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbarto
Posts: 4
Joined: Mon Apr 16, 2012 7:47 pm

Re: Ghost previous version of an installed program

Hi Cosmin,

Thank you for your help. Finally, we found out that our "ghost" program is in Microsoft Virtual Store (in relation with the UAC - User Account Control). There is nothing wrong with our .EXE file, the problem is with an other file in which our program writes an info at startup. Microsoft automatically creates the folder C:\Users\MyAccount\AppData\Local\VirtualStore\Program Files (x86)\MyProgram Folder\ and stores a copy of the modified file.

When installing a newer version of our program, our Program folder located in the VirtualStore folder is neither emptied nor updated. Therefore, the previous version of our file is still there. When starting the newer version of our program, Microsoft Windows makes our program open the previous version of our file in the VirtualStore folder.

For now, we think that the simplest solution to work with this "Microsoft UAC-VirtualStore" behaviour, is to add the release version in the folder name of our program in our installer! Microsoft will create a new folder in the VirtualStore folder for each version installed, the problem will be avoided.

So, Advanced Installed is not guilty. Though, you might have a better advice, if not, case is closed. :-)

Sincerely,

Silvio

Return to “Common Problems”