2012-08-02 06:39:30 +04:00
|
|
|
!include "mingw-file-association.nsh"
|
2011-06-05 21:55:16 +04:00
|
|
|
Name "OpenSCAD"
|
|
|
|
OutFile "openscad_setup.exe"
|
|
|
|
InstallDir $PROGRAMFILES\OpenSCAD
|
|
|
|
DirText "This will install OpenSCAD on your computer. Choose a directory"
|
|
|
|
Section "install"
|
|
|
|
SetOutPath $INSTDIR
|
2012-08-05 05:18:17 +04:00
|
|
|
File openscad.exe
|
2013-01-21 17:25:14 +04:00
|
|
|
File openscad.com
|
2012-08-03 06:52:47 +04:00
|
|
|
File /r /x mingw-cross-env examples
|
|
|
|
File /r /x mingw-cross-env libraries
|
2011-06-05 21:55:16 +04:00
|
|
|
${registerExtension} "$INSTDIR\openscad.exe" ".scad" "OpenSCAD_File"
|
|
|
|
CreateShortCut $SMPROGRAMS\OpenSCAD.lnk $INSTDIR\openscad.exe
|
|
|
|
WriteUninstaller $INSTDIR\Uninstall.exe
|
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSCAD" "DisplayName" "OpenSCAD (remove only)"
|
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenSCAD" "UninstallString" "$INSTDIR\Uninstall.exe"
|
|
|
|
SectionEnd
|
|
|
|
Section "Uninstall"
|
|
|
|
${unregisterExtension} ".scad" "OpenSCAD_File"
|
|
|
|
Delete $INSTDIR\Uninstall.exe
|
|
|
|
Delete $INSTDIR\MyProg.exe
|
|
|
|
Delete $SMPROGRAMS\OpenSCAD.lnk
|
|
|
|
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenSCAD"
|
|
|
|
RMDir /r $INSTDIR\examples
|
|
|
|
RMDir /r $INSTDIR\libraries\mcad
|
|
|
|
Delete $INSTDIR\libraries\boxes.scad
|
|
|
|
Delete $INSTDIR\libraries\shapes.scad
|
|
|
|
RMDir $INSTDIR\libraries
|
|
|
|
Delete $INSTDIR\openscad.exe
|
|
|
|
RMDir $INSTDIR
|
|
|
|
SectionEnd
|