diff options
author | daid303 <daid303@gmail.com> | 2012-12-26 14:39:24 +0400 |
---|---|---|
committer | daid303 <daid303@gmail.com> | 2012-12-26 14:39:24 +0400 |
commit | eb6e2bc32a95bc3111ffb1315565af297f0f92d9 (patch) | |
tree | 4884cd890b8f734b96e9a9dd62b4fe360cfafd4b /scripts | |
parent | 943cd97ab916e6755e272d662da65873f7e7f4c1 (diff) |
Fix the double click on STL/OBJ files.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/win32/installer.nsi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/win32/installer.nsi b/scripts/win32/installer.nsi index a9d639de10..e86c13769d 100644 --- a/scripts/win32/installer.nsi +++ b/scripts/win32/installer.nsi @@ -120,7 +120,7 @@ Section "Open STL files with Cura" DeleteRegValue HKCR .stl "Content Type" WriteRegStr HKCR "Cura STL model file\DefaultIcon" "" "$INSTDIR\Cura\resources\stl.ico,0" WriteRegStr HKCR "Cura STL model file\shell" "" "open" - WriteRegStr HKCR "Cura STL model file\shell\open\command" "" '"$INSTDIR\python\pythonw.exe" "$INSTDIR\Cura\cura.py" "%1"' + WriteRegStr HKCR "Cura STL model file\shell\open\command" "" '"$INSTDIR\python\pythonw.exe" -c "import os; os.chdir(\"$INSTDIR\"); import Cura.cura; Cura.cura.main()" "%1"' SectionEnd Section /o "Open OBJ files with Cura" @@ -128,7 +128,7 @@ Section /o "Open OBJ files with Cura" DeleteRegValue HKCR .obj "Content Type" WriteRegStr HKCR "Cura OBJ model file\DefaultIcon" "" "$INSTDIR\Cura\resources\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"' + WriteRegStr HKCR "Cura OBJ model file\shell\open\command" "" '"$INSTDIR\python\pythonw.exe" -c "import os; os.chdir(\"$INSTDIR\"); import Cura.cura; Cura.cura.main()" "%1"' SectionEnd ;-------------------------------- |