Browse Source

Revert "Update nsi installer"

This reverts commit 4b4b8b351462f7b788816c2ddbf2d75d38ee7de6.
c.lamboo 1 year ago
parent
commit
a7a4e4bd29
1 changed files with 4 additions and 2 deletions
  1. 4 2
      packaging/NSIS/Ultimaker-Cura.nsi.jinja

+ 4 - 2
packaging/NSIS/Ultimaker-Cura.nsi.jinja

@@ -197,11 +197,13 @@ Section UrlProtocol
   WriteRegStr HKCR "cura" "" "URL:cura"
   WriteRegStr HKCR "cura" "URL Protocol" ""
   WriteRegStr HKCR "cura\DefaultIcon" "" "$INSTDIR\${MAIN_APP_EXE},1"
-  WriteRegStr HKCR "cura\shell\open\command" "" '"$INSTDIR\${MAIN_APP_EXE}"'
+  WriteRegStr HKCR "cura\shell" "" "open"
+  WriteRegStr HKCR "cura\shell\open\command" "" '"$INSTDIR\${MAIN_APP_EXE}" "%1"'
 
   WriteRegStr HKCR "slicer" "" "URL:slicer"
   WriteRegStr HKCR "slicer" "URL Protocol" ""
   WriteRegStr HKCR "slicer\DefaultIcon" "" "$INSTDIR\${MAIN_APP_EXE},1"
-  WriteRegStr HKCR "slicer\shell\open\command" "" '"$INSTDIR\${MAIN_APP_EXE}"'
+  WriteRegStr HKCR "slicer\shell" "" "open"
+  WriteRegStr HKCR "slicer\shell\open\command" "" '"$INSTDIR\${MAIN_APP_EXE}" "%1"'
 
 SectionEnd