diff options
Diffstat (limited to 'Tools/msi/exe')
-rw-r--r-- | Tools/msi/exe/exe.wxs | 8 | ||||
-rw-r--r-- | Tools/msi/exe/exe_files.wxs | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/Tools/msi/exe/exe.wxs b/Tools/msi/exe/exe.wxs index 9696c89..d8b05e0 100644 --- a/Tools/msi/exe/exe.wxs +++ b/Tools/msi/exe/exe.wxs @@ -8,10 +8,13 @@ <PropertyRef Id="REGISTRYKEY" /> <Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> - <ComponentGroupRef Id="exe_python" /> + <ComponentGroupRef Id="exe_python" Primary="yes" /> <ComponentGroupRef Id="exe_txt" /> <ComponentGroupRef Id="exe_icons" /> + </Feature> + <Feature Id="Shortcuts" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> + <ComponentGroupRef Id="exe_python" /> <Component Id="exe_shortcut" Directory="MenuDir" Guid="*"> <Shortcut Id="python.exe" Target="[#python.exe]" @@ -19,8 +22,7 @@ Description="!(loc.ShortcutDescription)" /> <RemoveFolder Id="Remove_MenuDir" Directory="MenuDir" On="uninstall" /> <RegistryKey Root="HKMU" Key="[REGISTRYKEY]"> - <RegistryValue Key="InstallPath" Type="string" Value="[InstallDirectory]" KeyPath="yes" /> - <RegistryValue Key="InstallPath\InstallGroup" Type="string" Value="Python $(var.ShortVersion)" /> + <RegistryValue Key="InstallPath\InstallGroup" Type="string" Value="!(loc.ProductName)" KeyPath="yes" /> </RegistryKey> </Component> </Feature> diff --git a/Tools/msi/exe/exe_files.wxs b/Tools/msi/exe/exe_files.wxs index 4091398..6422372 100644 --- a/Tools/msi/exe/exe_files.wxs +++ b/Tools/msi/exe/exe_files.wxs @@ -20,6 +20,10 @@ <ComponentGroup Id="exe_python"> <Component Id="python.exe" Directory="InstallDirectory" Guid="$(var.PythonExeComponentGuid)"> <File Name="python.exe" KeyPath="yes" /> + + <RegistryKey Root="HKMU" Key="[REGISTRYKEY]"> + <RegistryValue Key="InstallPath" Type="string" Value="[InstallDirectory]" KeyPath="no" /> + </RegistryKey> </Component> <Component Id="pythonw.exe" Directory="InstallDirectory" Guid="$(var.PythonwExeComponentGuid)"> <File Name="pythonw.exe" KeyPath="yes" /> |