[wix-users] Launch website in default browser

Hagen Kant hagen.kant at gmail.com
Wed Mar 31 07:58:25 PDT 2021


Hi, this has been discussed; as well there is some (outdated Non-Windows 10?) example code, however I am not able to make this work.

There seem to be a syntactical issue using the BROWSERID property as part of the Key trying to retrieve the default browser:

		<Property Id="BROWSERID">
			<RegistrySearch Id="DefaultBrowserID" Type="raw" Root="HKCU" Key="SOFTWARE\Microsoft\Windows\Shell\Associations\URLAssociations\https\UserChoice" Name="ProgId" />
		</Property>
		<Property Id="BROWSER">
			<RegistrySearch Id="DefaultBrowser" Type="raw" Root="HKCR" Key="[BROWSERID]\shell\open" />
		</Property>

I can't figure out how this is suppose to be.

On the other end:

		<InstallExecuteSequence>
			[..]
			<Custom Action="LaunchBrowser" After="InstallFinalize">NOT Installed</Custom>
		</InstallExecuteSequence>
		<CustomAction Id="LaunchBrowser" Property="BROWSER" ExeCommand="$(var.url)" Return="asyncNoWait" />

Any hint how to correct this is highly appreciated.
Thanks & cheers,
Hagen.


More information about the wix-users mailing list