MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Catalin,

OK... thank you for the update !
-
let me know if you want me to revert the "ALLUSERS=1" change or not with the next build.
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

I was finally able to manually replicate this behavior on my end.

Long story short, this issue is happening because the MSI file is deleted before the installation.

Basically, your MSI file is downloaded in the "Updates" folder, which is deleted when the older product is uninstalled.

Normally, this should not be possible, but since the MSI is launched under the System account (which has all the privileges), it actually is.

Please configure your service to download the MSI file in a different location (e.g. %appdata% folder) and:

This is important!

Make sure none of your packages is configured to delete that folder (e.g. the folder where you download the updated MSI does not have a big and red X mark on it in the Advanced Installer project).

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Catalin,

wow... I never even considered that...

How is it possible the installer deletes the MSI when the MSI is running?
Shouldn't the system prevent the file from being deleted because it's in use?

AND

Why did this start all of a sudden ? the code that put the file in this location has not changed for a long time
Last edited by MLiss@Cetrus.com on Fri Apr 03, 2020 1:55 pm, edited 1 time in total.
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

That was my reaction as well.

Normally, if the files is in use, the system should prevent that.

However, since you are running the process under the System account, which haves full privileges (even higher than an Administrator), this seems to be possible.

I was speechless when I found out as well.

All the time I've tested this manually (trying to reproduce the behavior), I have launched the setup from my desktop. I was literally running out of ideas.

Then the idea came to my mind: "what if I try to run the MSI manually from the folder where it is downloaded" (this was literally the only thing I did not do in my countless tests - I always launched the MSI from my desktop)

I reverted the machine, tried that and, bingo, it reproduced.

Hope this is helpful.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Catalin,

OK ... I moved the setup file to the system temp directory

The new installers with your proposed changes are in your account:

4.3.48.0.Install.51 -- Install
4.3.49.0.Install.52 -- auto update

We will test today as well.
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

Hello Mike,

I have tested this and everything worked as expected for me.
success2.png
success2.png (388.67 KiB) Viewed 11412 times
success.png
success.png (44.55 KiB) Viewed 11412 times

Please let me know how this goes on your end (when you have the time to test it).

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Catalin,

Thank you for your help... we will test today !

If that was it... I don't understand why it broke all of a sudden... but what a nightmare to find !

Again - thanks for your help !
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

You are always welcome, Mike!

I am really sorry this took so long, but as you have noticed yourself, it was really hard to find and isolate the behavior.

Anyway, I am really glad we managed to find the culprit and get this working.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: upgrading service now shows two versions in programs and features

Thank you - we verified on our end it works as well.
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: upgrading service now shows two versions in programs and features

You are always welcome, Mike!

I am really glad it worked as expected for you guys, too.

I'll start investigating your other ticket soon.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”