From: daid Date: Wed, 1 Aug 2012 10:01:15 +0000 (+0200) Subject: Fix STL icon registration. X-Git-Tag: 12.08^0 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=db0b12881b2913709f11ed33c8361c1d71d27dde;p=cura.git Fix STL icon registration. --- diff --git a/scripts/win32/installer.nsi b/scripts/win32/installer.nsi index 7a41ac74..cfcc26ae 100644 --- a/scripts/win32/installer.nsi +++ b/scripts/win32/installer.nsi @@ -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