@@ -41,7 +41,10 @@ SetCompressor /SOLID lzma
41
41
42
42
!include " MUI.nsh"
43
43
44
- !define VERSION " 0.0.1"
44
+ !define VERSIONMAJOR " 1"
45
+ !define VERSIONMINOR " 0"
46
+ !define VERSIONSERVICEPACK " 0"
47
+ !define VERSION " ${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONSERVICEPACK}"
45
48
46
49
Name " Mopper ${VERSION}"
47
50
@@ -178,12 +181,14 @@ Section
178
181
File Release\mopper.exe
179
182
File LICENSE .TXT
180
183
181
- ; Write the installation path into the registry so other tools can find the mopper
182
- WriteRegStr HKLM SOFTWARE\NifToolsMopper " Install_Dir" " $INSTDIR"
183
-
184
184
; Write the uninstall keys & uninstaller for Windows
185
- WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\NifToolsMopper" " DisplayName" " NifTools Mopper (remove only)"
185
+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\NifToolsMopper" " DisplayName" " Mopper (remove only)"
186
186
WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\NifToolsMopper" " UninstallString" " $INSTDIR\uninstall.exe"
187
+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\NifToolsMopper" " InstallLocation" " $INSTDIR" ; for other apps to find mopper
188
+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\NifToolsMopper" " VersionMajor" ${VERSIONMAJOR}
189
+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\NifToolsMopper" " VersionMinor" ${VERSIONMINOR}
190
+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\NifToolsMopper" " VersionServicePack" ${VERSIONSERVICEPACK}
191
+ WriteRegStr HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\NifToolsMopper" " Publisher" " NifTools"
187
192
SetOutPath $INSTDIR
188
193
WriteUninstaller " uninstall.exe"
189
194
@@ -202,7 +207,6 @@ Section "Uninstall"
202
207
203
208
; remove registry keys
204
209
DeleteRegKey HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\NifToolsMopper"
205
- DeleteRegKey HKLM " SOFTWARE\NifToolsMopper"
206
210
207
211
; remove program files and program directory
208
212
Delete " $INSTDIR\*.*"
0 commit comments