From 0c6c40c098ee9ae497d4b6fff14e93509caa48f8 Mon Sep 17 00:00:00 2001 From: daid303 Date: Thu, 4 Oct 2012 14:31:29 +0200 Subject: [PATCH] Add obj doubleclick support for windows. --- scripts/win32/installer.nsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/win32/installer.nsi b/scripts/win32/installer.nsi index e75a69a1..899b103f 100644 --- a/scripts/win32/installer.nsi +++ b/scripts/win32/installer.nsi @@ -115,6 +115,14 @@ Section "Open STL files with Cura" WriteRegStr HKCR "Cura STL model file\shell\open\command" "" '"$INSTDIR\python\pythonw.exe" "$INSTDIR\Cura\cura.py" "%1"' SectionEnd +Section /o "Open OBJ files with Cura" + WriteRegStr HKCR .obj "" "Cura OBJ model file" + DeleteRegValue HKCR .obj "Content Type" + WriteRegStr HKCR "Cura OBJ model file\DefaultIcon" "" "$INSTDIR\Cura\stl.ico,0" + WriteRegStr HKCR "Cura OBJ model file\shell" "" "open" + WriteRegStr HKCR "Cura OBJ model file\shell\open\command" "" '"$INSTDIR\python\pythonw.exe" "$INSTDIR\Cura\cura.py" "%1"' +SectionEnd + ;-------------------------------- ; Uninstaller -- 2.30.2