[wix-users] Launch website in default browser

Nir Bar nir.bar at panel-sw.com
Wed Mar 31 21:44:33 PDT 2021


Custom action LaunchBrowser doesn't launch the browser, it merely sets property BROWSER.

Try using https://wixtoolset.org/documentation/manual/v3/customactions/qtexec.html



--

Nir Bar

WiX Expert







---- On Wed, 31 Mar 2021 17:58:25 +0300 Hagen Kant via wix-users <wix-users at lists.wixtoolset.org> wrote ----


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. 
 
____________________________________________________________________ 
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list