chiark / gitweb /
Add obj doubleclick support for windows.
authordaid303 <daid303@gmail.com>
Thu, 4 Oct 2012 12:31:29 +0000 (14:31 +0200)
committerdaid303 <daid303@gmail.com>
Thu, 4 Oct 2012 12:31:29 +0000 (14:31 +0200)
scripts/win32/installer.nsi

index e75a69a1a12a8153836e0b41a614d13fe6791d36..899b103fdb0b7fedfae97616554d195df4804a79 100644 (file)
@@ -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