-
Notifications
You must be signed in to change notification settings - Fork 25
/
installer.nsi
53 lines (53 loc) · 1.81 KB
/
installer.nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Name "RapCAD"
Icon "rapcad.ico"
UninstallIcon "rapcad.ico"
OutFile "rapcad_setup.exe"
InstallDir $PROGRAMFILES64\RapCAD
DirText "This will install RapCAD on your computer. Choose a directory"
Section "install"
SetOutPath $INSTDIR
File release\rapcad.exe
File release\Qt6Core.dll
File release\Qt6Gui.dll
File release\Qt6OpenGL.dll
File release\Qt6Widgets.dll
File release\Qt6Concurrent.dll
File release\Qt6OpenGLWidgets.dll
File release\libgcc_s_seh-1.dll
File release\libgmp-10.dll
File release\libmpfr-4.dll
File release\libstdc++-6.dll
File release\libwinpthread-1.dll
File release\opengl32sw.dll
File release\user_guide.html
File /r release\platforms
File /r release\styles
CreateShortCut $SMPROGRAMS\RapCAD.lnk $INSTDIR\rapcad.exe
WriteUninstaller $INSTDIR\Uninstall.exe
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RapCAD" "DisplayName" "RapCAD (remove only)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RapCAD" "UninstallString" "$INSTDIR\Uninstall.exe"
SectionEnd
Section "Uninstall"
Delete $INSTDIR\Uninstall.exe
Delete $INSTDIR\rapcad.exe
Delete $INSTDIR\Qt6Core.dll
Delete $INSTDIR\Qt6Gui.dll
Delete $INSTDIR\Qt6OpenGL.dll
Delete $INSTDIR\Qt6Widgets.dll
Delete $INSTDIR\Qt6Concurrent.dll
Delete $INSTDIR\Qt6OpenGLWidgets.dll
Delete $INSTDIR\libgcc_s_seh-1.dll
Delete $INSTDIR\libgmp-10.dll
Delete $INSTDIR\libmpfr-4.dll
Delete $INSTDIR\libstdc++-6.dll
Delete $INSTDIR\libwinpthread-1.dll
Delete $INSTDIR\opengl32sw.dll
Delete $INSTDIR\user_guide.html
Delete $INSTDIR\platforms\qwindows.dll
RMDir $INSTDIR\platforms
Delete $INSTDIR\styles\qwindowsvistastyle.dll
RMDir $INSTDIR\styles
Delete $SMPROGRAMS\RapCAD.lnk
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RapCAD"
RMDir $INSTDIR
SectionEnd