-
Notifications
You must be signed in to change notification settings - Fork 2
/
installer.nsi
38 lines (26 loc) · 1.02 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
outFile "identicurse-0.8-dev_setup.exe"
InstallDir $PROGRAMFILES\IdentiCurse
Name "IdentiCurse 0.8-dev"
section
setOutPath $INSTDIR
file dist\identicurse.exe
file dist\README
file dist\config.json
createShortCut "$SMPROGRAMS\IdentiCurse.lnk" "$INSTDIR\identicurse.exe"
writeUninstaller $INSTDIR\uninstall.exe
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\IdentiCurse" \
"DisplayName" "IdentiCurse"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\IdentiCurse" \
"UninstallString" "$\"$INSTDIR\uninstall.exe$\""
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\IdentiCurse" \
"DisplayIcon" "$\"$INSTDIR\identicurse.exe$\",0"
sectionEnd
section "Uninstall"
delete $INSTDIR\identicurse.exe
delete $INSTDIR\README
delete $INSTDIR\config.json
delete $INSTDIR\uninstall.exe
RMDir $INSTDIR
delete $SMPROGRAMS\IdentiCurse.lnk
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\IdentiCurse"
sectionEnd