mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
49bca5e19b
commit
583b5820c8
@ -119,17 +119,17 @@ class WixMixIn:
|
|||||||
(fid, f, x, checksum),
|
(fid, f, x, checksum),
|
||||||
'</Component>'
|
'</Component>'
|
||||||
]
|
]
|
||||||
if x.endswith('.exe'):
|
if x.endswith('.exe') and not x.startswith('pdf'):
|
||||||
# Add the executable to app paths so that users can
|
# Add the executable to app paths so that users can
|
||||||
# launch it from the run dialog even if it is not on
|
# launch it from the run dialog even if it is not on
|
||||||
# the path. See http://msdn.microsoft.com/en-us/library/windows/desktop/ee872121(v=vs.85).aspx
|
# the path. See http://msdn.microsoft.com/en-us/library/windows/desktop/ee872121(v=vs.85).aspx
|
||||||
c[-1:-1] = [
|
c[-1:-1] = [
|
||||||
('<RegistryValue Root="HKLM" '
|
('<RegistryValue Root="HKLM" '
|
||||||
'Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App '
|
r'Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App '
|
||||||
'Paths\%s" Value="[#file_%d]" Type="string" />'%(x, fid)),
|
r'Paths\%s" Value="[#file_%d]" Type="string" />'%(x, fid)),
|
||||||
('<RegistryValue Root="HKLM" '
|
('<RegistryValue Root="HKLM" '
|
||||||
'Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App '
|
r'Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App '
|
||||||
'Paths\{0}" Name="Path" Value="[APPLICATIONFOLDER]" '
|
r'Paths\{0}" Name="Path" Value="[APPLICATIONFOLDER]" '
|
||||||
'Type="string" />'.format(x)),
|
'Type="string" />'.format(x)),
|
||||||
]
|
]
|
||||||
components.append('\n'.join(c))
|
components.append('\n'.join(c))
|
||||||
@ -143,4 +143,3 @@ class WixMixIn:
|
|||||||
return '\t\t\t\t'+'\n\t\t\t\t'.join(components)
|
return '\t\t\t\t'+'\n\t\t\t\t'.join(components)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user