[wix-users] URL shortcut using a specific browser
Marshall, Matthew M (DSHS/DCS)
marshmm at dshs.wa.gov
Mon Feb 13 08:40:31 PST 2017
Hello,
I'm having a hard time figuring out how to make a desktop URL shortcut that opens in a specific browser. I am fairly new to WiX, so I'm not sure if this is possible. We have a shortcut folder for various resources used by our staff in their work. Our computers use IE as the default browser but I need one of the resources to open using Chrome. Is this something that can be done?
This is my current code:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="DesktopFolder" Name="Application Shortcut">
<Component Id="ApplicationShortcut" Guid="{My_GUID}">
<RegistryValue Root="HKCU" Key="Key Location" KeyPath="yes" Type="string" Value=""/>
<util:InternetShortcut Id="AppShortcut"
Name="Application"
Target="https://website.gov/login"
Type="link"/>
<RemoveFolder Id="ApplicationShortcut" On="uninstall"/>
</Component>
</Directory>
</Directory>
<Property Id="CHROMEFOUND">
<DirectorySearch Id="PrgFiles" Path="[ProgramFilesFolder]">
<DirectorySearch Id="ChromeDir" Depth="3" AssignToProperty="yes">
<FileSearch Id="chrome_exe" Name="chrome.exe"/>
</DirectorySearch>
</DirectorySearch>
</Property>
I have tried adding [CHROMEFOUND] in front of the URL address with no luck. Can someone point me in the right direction?
Thanks,
Matt M.
More information about the wix-users
mailing list