diff --git a/setup/installer/windows/wix.py b/setup/installer/windows/wix.py index e915bdfb23..c7f4ab3933 100644 --- a/setup/installer/windows/wix.py +++ b/setup/installer/windows/wix.py @@ -119,17 +119,17 @@ class WixMixIn: (fid, f, x, checksum), '' ] - if x.endswith('.exe'): + if x.endswith('.exe') and not x.startswith('pdf'): # Add the executable to app paths so that users can # 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 c[-1:-1] = [ (''%(x, fid)), + r'Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App ' + r'Paths\%s" Value="[#file_%d]" Type="string" />'%(x, fid)), (''.format(x)), ] components.append('\n'.join(c)) @@ -143,4 +143,3 @@ class WixMixIn: return '\t\t\t\t'+'\n\t\t\t\t'.join(components) -