Disabling Updater during installation - Advanced Installer Community
gopinathrbe
Posts: 60
Joined: Fri Sep 22, 2023 8:14 am

Disabling Updater during installation

How can I disable Updater during the application installation?
Catalin
Posts: 7850
Joined: Wed Jun 13, 2018 7:49 am

Re: Disabling Updater during installation

Hello,

I am not quite sure I fully understand your question here.

If you want to remove the updater from your package, you can go to "Updater" page and uncheck the "Check for updates using Advanced Installer" option. This should remove the updater.exe from your installation package.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 60
Joined: Fri Sep 22, 2023 8:14 am

Re: Disabling Updater during installation

The application should have an updater, but the updater check can be disabled by the user during installation using the command prompt on their machine.
Catalin
Posts: 7850
Joined: Wed Jun 13, 2018 7:49 am

Re: Disabling Updater during installation

Hello,

So, you would want an option so that your users can disable the updater during the installation - for example, through a command line?

Otherwise, I do not see a problem, as the updater does not do anything if not specifically called (e.g. double clicked by the customer from the installation folder).

The only problem I would see here is if the updater is automated (e.g. through a scheduled task, or perhaps running as a service). Would this be the case for you?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 60
Joined: Fri Sep 22, 2023 8:14 am

Re: Disabling Updater during installation

The application will start updater.exe using a Process. I have the option to show the updater only once in every two days using Update check frequency, but if it is disabled by the user during the installation, it should not open any pop-up.
Catalin
Posts: 7850
Joined: Wed Jun 13, 2018 7:49 am

Re: Disabling Updater during installation

Hello,

Thanks for the explanation, it's clearer for me now what you want to achieve.

I'm afraid the updater does not have an option to be disabled after its' installation.

What you can do, is simply do not call the udpater from your code if a condition is met.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 60
Joined: Fri Sep 22, 2023 8:14 am

Re: Disabling Updater during installation

what about this option?
updater.exe /set autoupdatepolicy Disable
Catalin
Posts: 7850
Joined: Wed Jun 13, 2018 7:49 am

Re: Disabling Updater during installation

Hello,

Thank you for your followup on this!

It looks like I somehow overlooked that option when checking the article, sorry for that.

I'm thinking of the following:

- if the user selects to disable updates during the installation, create a registry entry for that, e.g.: UpdaterState="False"

- when the user opens your app, the app should go and check for the registry entry and then launch the updater using the command line you mentioned

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 60
Joined: Fri Sep 22, 2023 8:14 am

Re: Disabling Updater during installation

Could you please provide me with the specific registry location where this entry should be created? Additionally, if there are any particular keys or values that need to be set to properly configure this setting, please let me know.
Catalin
Posts: 7850
Joined: Wed Jun 13, 2018 7:49 am

Re: Disabling Updater during installation

Hello,

Please note the registry location, as well as the registry key and its value are not predefined.

This is simply an improvisation we are doing to achieve what you need to do.

That being said, we are free to place the key wherever we want it to be.

Considering we are creating it during the installation, I would advise creating it under SOFTWARE\Manufacturer\ProductName so that it is easily associable with your product.
Screenshot_177.png
Screenshot_177.png (9.86 KiB) Viewed 19312 times

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 60
Joined: Fri Sep 22, 2023 8:14 am

Re: Disabling Updater during installation

"It isn't working. Can you share a sample project?
Catalin
Posts: 7850
Joined: Wed Jun 13, 2018 7:49 am

Re: Disabling Updater during installation

Hello,

Could you please give me some more details about what exactly is not working?

Is your app not able to find the registry entry? Is the entry not created?

Regarding the sample, I'm afraid I can not provide one, as I do not have an executable like yours on my end.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 60
Joined: Fri Sep 22, 2023 8:14 am

Re: Disabling Updater during installation

The solution (adding registry entry) you shared to disable the update is not working, as the update triggers when I run the updater.exe
Catalin
Posts: 7850
Joined: Wed Jun 13, 2018 7:49 am

Re: Disabling Updater during installation

Hello,
The solution (adding registry entry) you shared to disable the update is not working, as the update triggers when I run the updater.exe
Perhaps you misunderstood me.

That registry entry will be used by your application to decide whether it should launch the updater or not.

As previously mentioned, if you launch the updater, you can not condition whether it will find updates or not (if the conditions are met, it will always download and install updates). However, to work this around, we will condition the launching of the updater from your application if the user chooses so.

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

Return to “Common Problems”