Allow you to give an STL file on the command line so it opens the file in Cura. #184 Also add file association on stl files for Windows.

This commit is contained in:
daid committed 2012-07-26 11:30:39 +02:00
1 parent 0f31ca9b4b
commit e698fb067d
6 files changed
+21 -7

No files matched your search

+1 -1
View File
@@ -20,5 +20,5 @@ if [ $? != 0 ]; then
fi
SCRIPT_DIR=`dirname $0`
python ${SCRIPT_DIR}/Cura/cura.py
python ${SCRIPT_DIR}/Cura/cura.py $@
+1 -1
View File
@@ -29,5 +29,5 @@ if [ $? != 0 ]; then
fi
SCRIPT_DIR=`dirname $0`
python ${SCRIPT_DIR}/Cura/cura.py
python ${SCRIPT_DIR}/Cura/cura.py $@
+2 -1
View File
@@ -1 +1,2 @@
@python\python.exe Cura\cura.py
@python\python.exe Cura\cura.py %*
+11 -1
View File
@@ -37,6 +37,8 @@ SetCompressor /SOLID lzma
!define MUI_HEADERIMAGE_RIGHT
!define MUI_HEADERIMAGE_BITMAP "header.bmp"
!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
; Don't show the component description box
!define MUI_COMPONENTSPAGE_NODESC
;Do not leave (Un)Installer page automaticly
!define MUI_FINISHPAGE_NOAUTOCLOSE
@@ -45,6 +47,7 @@ SetCompressor /SOLID lzma
; Pages
;!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
@@ -63,7 +66,7 @@ ReserveFile "header.bmp"
;--------------------------------
; The stuff to install
Section "Cura Installer"
Section "Cura ${VERSION}"
SectionIn RO
@@ -103,6 +106,13 @@ Section "Cura Installer"
SectionEnd
Section "Open STL files with Cura"
WriteRegStr HKCR .stl "" "STL file"
;WriteRegStr HKCR "STL file\DefaultIcon" "" "$INSTDIR\stl.ico,0"
WriteRegStr HKCR "STL file\shell" "" "open"
WriteRegStr HKCR "STL file\shell\open\command" "" '"$INSTDIR\cura.bat" "%1"'
SectionEnd
;--------------------------------
; Uninstaller