|
50 | 50 | <?include "product_fragment.wxi"?> |
51 | 51 |
|
52 | 52 | <!-- Dash protocol handlers. --> |
53 | | - <Feature Id="Protocol" Title="Plugin Support" Level="1" |
54 | | - Description="Provides dash:// and dash-plugin:// protocol handlers."> |
55 | | - <Component Id="ProtocolHandlers" Directory="TARGETDIR"> |
56 | | - <?foreach UrlScheme in dash;dash-plugin ?> |
57 | | - <RegistryKey Root="HKMU" Key="Software\Classes\$(var.UrlScheme)"> |
58 | | - <RegistryValue Type="string" Value="URL: Dash Plugin Protocol (Zeal)" /> |
59 | | - <RegistryValue Name="URL Protocol" Type="string" Value="" /> |
60 | | - |
61 | | - <RegistryKey Key="DefaultIcon"> |
62 | | - <RegistryValue Type="string" Value=""[CM_FP_zeal.exe],1"" /> |
63 | | - </RegistryKey> |
64 | | - |
65 | | - <RegistryKey Key="shell\open\command"> |
66 | | - <RegistryValue Type="string" Value=""[CM_FP_zeal.exe]" "%1"" /> |
67 | | - </RegistryKey> |
| 53 | + <Component Id="ProtocolHandlers" Directory="INSTALL_ROOT"> |
| 54 | + <?foreach UrlScheme in dash;dash-plugin ?> |
| 55 | + <!-- Remove broken HKCU keys. --> |
| 56 | + <RemoveRegistryKey Action="removeOnInstall" Root="HKCU" Key="Software\Classes\$(var.UrlScheme)" /> |
| 57 | + |
| 58 | + <RegistryKey Root="HKLM" Key="Software\Classes\$(var.UrlScheme)"> |
| 59 | + <RegistryValue Type="string" Value="URL:Dash Plugin Protocol (Zeal)" /> |
| 60 | + <RegistryValue Name="URL Protocol" Type="string" Value="" /> |
| 61 | + |
| 62 | + <RegistryKey Key="DefaultIcon"> |
| 63 | + <RegistryValue Type="string" Value=""[#CM_FP_zeal.exe],1"" /> |
| 64 | + </RegistryKey> |
| 65 | + |
| 66 | + <RegistryKey Key="shell\open\command"> |
| 67 | + <RegistryValue Type="string" Value=""[#CM_FP_zeal.exe]" "%1"" /> |
68 | 68 | </RegistryKey> |
69 | | - <?endforeach ?> |
70 | | - </Component> |
71 | | - </Feature> |
| 69 | + </RegistryKey> |
| 70 | + <?endforeach ?> |
| 71 | + </Component> |
72 | 72 |
|
73 | 73 | <!-- Custom properties to control installation options --> |
74 | 74 | <Property Id="LAUNCHAPPONEXIT" Value="1" Secure="yes"/> |
75 | 75 |
|
76 | 76 | <!-- Set properties based on existing conditions, prevents changing state on upgrade. --> |
77 | 77 | <SetProperty Id="LicenseAccepted" After="AppSearch" Value="1">WIX_UPGRADE_DETECTED</SetProperty> |
78 | 78 |
|
79 | | - <FeatureRef Id="ProductFeature"/> |
| 79 | + <FeatureRef Id="ProductFeature"> |
| 80 | + <ComponentRef Id="ProtocolHandlers" /> |
| 81 | + </FeatureRef> |
80 | 82 |
|
81 | 83 | <!-- Action to launch application after installer exits. --> |
82 | 84 | <Property Id="WixShellExecTarget" Value="[#CM_FP_zeal.exe]"/> |
|
0 commit comments