Browse Source

Path correction for cura application for msi

CURA-11288
saumya.jain 1 year ago
parent
commit
cb01026aad
1 changed files with 4 additions and 4 deletions
  1. 4 4
      packaging/msi/UltiMaker-Cura.wxs.jinja

+ 4 - 4
packaging/msi/UltiMaker-Cura.wxs.jinja

@@ -164,8 +164,8 @@
             <RegistryKey Root="HKCR" Key="cura">
                 <RegistryValue Type="string" Value="URL:Cura Protocol"/>
                 <RegistryValue Type="string" Name="URL Protocol" Value=""/>
-                <RegistryValue Type="string" Key="DefaultIcon" Value="$(var.CuraDir)\CuraEngine.exe,1"/>
-                <RegistryValue Type="string" Key="shell\open\command" Value="&quot;$(var.CuraDir)\CuraEngine.exe&quot; &quot;%1&quot;"/>
+                <RegistryValue Type="string" Key="DefaultIcon" Value="$[APPLICATIONFOLDER]\{{ main_app }},1"/>
+                <RegistryValue Type="string" Key="shell\open\command" Value="&quot;$[APPLICATIONFOLDER]\{{ main_app }}&quot; &quot;%1&quot;"/>
             </RegistryKey>
         </Component>
 
@@ -173,8 +173,8 @@
             <RegistryKey Root="HKCR" Key="slicer">
                 <RegistryValue Type="string" Value="URL:Slicer Protocol"/>
                 <RegistryValue Type="string" Name="URL Protocol" Value=""/>
-                <RegistryValue Type="string" Key="DefaultIcon" Value="$(var.CuraDir)\CuraEngine.exe,1"/>
-                <RegistryValue Type="string" Key="shell\open\command" Value="&quot;$(var.CuraDir)\CuraEngine.exe&quot; &quot;%1&quot;"/>
+                <RegistryValue Type="string" Key="DefaultIcon" Value="$[APPLICATIONFOLDER]\{{ main_app }},1"/>
+                <RegistryValue Type="string" Key="shell\open\command" Value="&quot;$[APPLICATIONFOLDER]\{{ main_app }}&quot; &quot;%1&quot;"/>
             </RegistryKey>
         </Component>