chiark / gitweb /
Fix STL icon registration. 12.08
authordaid <daid303@gmail.com>
Wed, 1 Aug 2012 10:01:15 +0000 (12:01 +0200)
committerdaid <daid303@gmail.com>
Wed, 1 Aug 2012 10:01:15 +0000 (12:01 +0200)
scripts/win32/installer.nsi

index 7a41ac74b822c6f3166abca82dacce77c53fca76..cfcc26aeb70271f3418335db5670563d5a6bf336 100644 (file)
@@ -108,7 +108,8 @@ SectionEnd
 
 Section "Open STL files with Cura"
        WriteRegStr HKCR .stl "" "Cura STL model file"
-       WriteRegStr HKCR "Cura STL model file\DefaultIcon" "" "$INSTDIR\stl.ico,0"
+       DeleteRegValue HKCR .stl "Content Type"
+       WriteRegStr HKCR "Cura STL model file\DefaultIcon" "" "$INSTDIR\Cura\stl.ico,0"
        WriteRegStr HKCR "Cura STL model file\shell" "" "open"
        WriteRegStr HKCR "Cura STL model file\shell\open\command" "" '"$INSTDIR\python\python.exe" "$INSTDIR\Cura\cura.py" "%1"'
 SectionEnd