Reset Default Browser during uninstall - Advanced Installer Community
ashish.shatam
Posts: 1
Joined: Tue Jan 06, 2015 1:52 pm

Reset Default Browser during uninstall

I am Using advance installer for my product .

My Product takes over default browser & makes itself as a default browser.

The problem is when user uninstalls my product it leaves system in bad state by leaving default browser pointing to my product. Resulting into http & https links pointing to wrong browser.

So , can advance installer uninstall provides some solution for this ?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Reset Default Browser during uninstall

Hello and welcome to Advanced Installer forums,

Indeed, this is the default behavior; during an uninstall, Windows Installer removes only the data registered into the MSI file. All other data created by custom actions, by the installed application or by the user is not registered in the MSI, therefore it will not be removed.

However, here is what you can try:
Change the content of the key that point to the default browser.
The related key can be found here:

Code: Select all

1) HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice
2) HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice
The content of the Progid is set depending the default browser used. E.g.:
  • Opera.Protocol for Opera
  • IE.HTTP and IE.HTTPS for Internet Explorer
  • ChromeHTML for Chrome
In order to check the installed browsers on a machine, you can check this key:

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet
where each browser makes its own entry.
You can take a look on the How to find all the browsers installed on a machine forum thread that debates a similar subject.

So, during uninstall you can create a custom action that will search the installed browsers and change the ProgID key to a valid installed browser. For this, you can take a look on the Options to integrate and debug custom actions article to see an example of how you can integrate your custom action.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”