Skip to content

Commit c805a1d

Browse files
committed
Shortcuts for everyone!
1 parent dd6ca52 commit c805a1d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

package/win32/nsis/BZFlag.nsi

+12-2
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ Section "!BZFlag (Required)" BZFlag
246246

247247

248248
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
249+
;Create for all users
250+
SetShellVarContext all
249251

250252
;Main start menu shortcuts
251253
SetOutPath $INSTDIR
@@ -283,6 +285,9 @@ Section "BZAdmin" BZAdmin
283285
File ..\..\..\bin_Release_${PLATFORM}\docs\bzadmin.html
284286

285287
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
288+
289+
;Create for all users
290+
SetShellVarContext all
286291

287292
;Main start menu shortcuts
288293
SetOutPath $INSTDIR
@@ -317,6 +322,9 @@ SectionGroup "BZFlag Server" BZFlagServer
317322

318323
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
319324

325+
;Create for all users
326+
SetShellVarContext all
327+
320328
;Main start menu shortcuts
321329
SetOutPath $INSTDIR
322330
CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER\Server"
@@ -391,6 +399,9 @@ SectionEnd
391399
;Uninstaller Section
392400

393401
Section "Uninstall"
402+
;Remove for all users
403+
SetShellVarContext all
404+
394405
; remove files
395406
Delete $INSTDIR\*.*
396407
Delete $INSTDIR\doc\*.*
@@ -438,8 +449,7 @@ Section "Uninstall"
438449
StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
439450
startMenuDeleteLoopDone:
440451

441-
; Remove desktop shortcut for all users
442-
SetShellVarContext all
452+
; Remove desktop shortcut
443453
!ifdef BUILD_64
444454
Delete "$DESKTOP\BZFlag ${VERSION} ${BITNESS}.lnk"
445455
!else

0 commit comments

Comments
 (0)