mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Register the calibre:// protocol during installation on Windows
This commit is contained in:
parent
b87cd867b1
commit
3e7296ff2b
@ -72,6 +72,18 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component Id="RememberInstallDir" Guid="*">
|
<Component Id="RememberInstallDir" Guid="*">
|
||||||
<RegistryValue Root="HKLM" Key="Software\{app}{x64}\Installer" Name="InstallPath" Type="string" Value="[APPLICATIONFOLDER]" KeyPath="yes"/>
|
<RegistryValue Root="HKLM" Key="Software\{app}{x64}\Installer" Name="InstallPath" Type="string" Value="[APPLICATIONFOLDER]" KeyPath="yes"/>
|
||||||
|
</Component>
|
||||||
|
<Component Id="calibreProtocol" Guid="*">
|
||||||
|
<RegistryKey Root="HKCR" Key="calibre" ForceDeleteOnUninstall="yes">
|
||||||
|
<RegistryValue Type="string" Value="URL:calibre Protocol" KeyPath="yes"/>
|
||||||
|
<RegistryValue Type="string" Name="URL Protocol" Value=""/>
|
||||||
|
<RegistryKey Key="DefaultIcon">
|
||||||
|
<RegistryValue Type="string" Value="[APPLICATIONFOLDER]calibre.exe" />
|
||||||
|
</RegistryKey>
|
||||||
|
<RegistryKey Key="shell\open\command">
|
||||||
|
<RegistryValue Type="string" Value=""[APPLICATIONFOLDER]calibre.exe" "%1"" />
|
||||||
|
</RegistryKey>
|
||||||
|
</RegistryKey>
|
||||||
</Component>
|
</Component>
|
||||||
</DirectoryRef>
|
</DirectoryRef>
|
||||||
|
|
||||||
@ -138,6 +150,11 @@
|
|||||||
Description="Add installation directory to PATH. Makes using command line tools easier">
|
Description="Add installation directory to PATH. Makes using command line tools easier">
|
||||||
<ComponentRef Id="AddToPath"/>
|
<ComponentRef Id="AddToPath"/>
|
||||||
</Feature>
|
</Feature>
|
||||||
|
|
||||||
|
<Feature Id="FcalibreProtocol" Title="Register calibre:// URLs" Level="1"
|
||||||
|
Description="Register to handle URLs starting with calibre://">
|
||||||
|
<ComponentRef Id="calibreProtocol"/>
|
||||||
|
</Feature>
|
||||||
</Feature>
|
</Feature>
|
||||||
|
|
||||||
<!-- Add icon to entry in Add/Remove programs -->
|
<!-- Add icon to entry in Add/Remove programs -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user