9
9
; Enter the windows uninstall reg sub key to add uninstall information to Add/Remove Programs also.
10
10
11
11
!define INSTDIR_REG_ROOT " HKLM"
12
- !define INSTDIR_REG_KEY " Software\Microsoft\Windows\CurrentVersion\Uninstall\PC-BASIC"
12
+ !define INSTDIR_REG_KEY " Software\Microsoft\Windows\CurrentVersion\Uninstall\PC-BASIC-1.2 "
13
13
14
14
15
15
; multiuser, modern UI
16
16
17
17
!define MULTIUSER_EXECUTIONLEVEL Highest
18
18
!define MULTIUSER_MUI
19
19
!define MULTIUSER_INSTALLMODE_COMMANDLINE
20
- !define MULTIUSER_INSTALLMODE_INSTDIR " PC-BASIC"
20
+ !define MULTIUSER_INSTALLMODE_INSTDIR " PC-BASIC-1.2 "
21
21
!include " MultiUser.nsh"
22
22
!include " MUI2.nsh"
23
23
!include " AdvUninstLog.nsh"
27
27
28
28
29
29
; Name and file
30
- Name " PC-BASIC"
30
+ Name " PC-BASIC 1.2 "
31
31
OutFile " pcbasic-win32.exe"
32
32
33
33
!include LogicLib.nsh
@@ -36,7 +36,7 @@ OutFile "pcbasic-win32.exe"
36
36
37
37
; Start Menu Folder Page Configuration
38
38
!define MUI_STARTMENUPAGE_REGISTRY_ROOT " HKCU"
39
- !define MUI_STARTMENUPAGE_REGISTRY_KEY " Software\PC-BASIC"
39
+ !define MUI_STARTMENUPAGE_REGISTRY_KEY " Software\PC-BASIC-1.2 "
40
40
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME " Start Menu Folder"
41
41
42
42
; --------------------------------
@@ -81,7 +81,7 @@ Var UserShortcuts
81
81
; --------------------------------
82
82
; Installer Sections
83
83
84
- Section " PC-BASIC" SecDummy
84
+ Section " PC-BASIC 1.2 " SecDummy
85
85
SetOutPath " $INSTDIR"
86
86
87
87
!insertmacro UNINSTALL.LOG_OPEN_INSTALL
@@ -91,7 +91,7 @@ Section "PC-BASIC" SecDummy
91
91
!insertmacro UNINSTALL.LOG_CLOSE_INSTALL
92
92
93
93
; Store installation folder
94
- WriteRegStr HKCU " Software\PC-BASIC" " " $INSTDIR
94
+ WriteRegStr HKCU " Software\PC-BASIC-1.2 " " " $INSTDIR
95
95
96
96
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
97
97
@@ -103,15 +103,15 @@ Section "PC-BASIC" SecDummy
103
103
CreateShortCut " $SMPROGRAMS\$StartMenuFolder\PC-BASIC.lnk" " $INSTDIR\pcbasic.exe"
104
104
105
105
; workaround as multiuser doesn't seem to get the right location for shortcuts if an admin user installs 'just for me'
106
- WriteRegStr HKCU " Software\PC-BASIC" " Shortcuts" " $SMPROGRAMS\$StartMenuFolder"
106
+ WriteRegStr HKCU " Software\PC-BASIC-1.2 " " Shortcuts" " $SMPROGRAMS\$StartMenuFolder"
107
107
108
108
; create link to ini file in current user's start menu
109
109
SetShellVarContext " current"
110
110
CreateDirectory " $SMPROGRAMS\$StartMenuFolder"
111
- CreateShortCut " $SMPROGRAMS\$StartMenuFolder\Settings.lnk" " $APPDATA\PCBASIC\PCBASIC.INI"
111
+ CreateShortCut " $SMPROGRAMS\$StartMenuFolder\Settings.lnk" " $APPDATA\PCBASIC-1.2 \PCBASIC.INI"
112
112
113
113
; workaround as multiuser doesn't seem to get the right location for shortcuts if an admin user installs 'just for me'
114
- WriteRegStr HKCU " Software\PC-BASIC" " UserShortcuts" " $SMPROGRAMS\$StartMenuFolder"
114
+ WriteRegStr HKCU " Software\PC-BASIC-1.2 " " UserShortcuts" " $SMPROGRAMS\$StartMenuFolder"
115
115
116
116
!insertmacro MUI_STARTMENU_WRITE_END
117
117
SectionEnd
@@ -143,21 +143,21 @@ Section UnInstall
143
143
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
144
144
145
145
; workaround as multiuser doesn't seem to get the right location for shortcuts if an admin user installs 'just for me'
146
- ReadRegStr $Shortcuts HKCU " Software\PC-BASIC" " Shortcuts"
146
+ ReadRegStr $Shortcuts HKCU " Software\PC-BASIC-1.2 " " Shortcuts"
147
147
148
148
Delete " $Shortcuts\PC-BASIC.lnk"
149
149
Delete " $Shortcuts\Documentation.lnk"
150
150
Delete " $Shortcuts\Uninstall.lnk"
151
151
RMDir " $Shortcuts"
152
152
153
153
;
154
- ReadRegStr $UserShortcuts HKCU " Software\PC-BASIC" " UserShortcuts"
154
+ ReadRegStr $UserShortcuts HKCU " Software\PC-BASIC-1.2 " " UserShortcuts"
155
155
156
156
Delete " $UserShortcuts\Settings.lnk"
157
157
RMDir " $UserShortcuts"
158
158
159
- DeleteRegKey HKCU " Software\PC-BASIC"
160
- ; DeleteRegKey /ifempty HKCU "Software\PC-BASIC"
159
+ DeleteRegKey HKCU " Software\PC-BASIC-1.2 "
160
+ ; DeleteRegKey /ifempty HKCU "Software\PC-BASIC-1.2 "
161
161
SectionEnd
162
162
163
163
0 commit comments