Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Windows installer script to create system-wide shortcut #15405

Merged
merged 3 commits into from
Nov 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions installers/windows/minikube.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ Function .onInit
FunctionEnd

Section "Install"
# Required to create a system-wide Start Menu shortcut
SetShellVarContext all

# Files for the install directory - to build the installer, these should be in the same directory as the install script (this file)
SetOutPath $INSTDIR
# Files added here should be removed by the uninstaller (see section "uninstall")
Expand Down Expand Up @@ -166,6 +169,8 @@ Section "Install"
SectionEnd

Section "Uninstall"
# Required to remove the system-wide Start Menu shortcut
SetShellVarContext all

# Remove Start Menu launcher
Delete /REBOOTOK "$SMPROGRAMS\${COMPANYNAME}\${APPNAME}.lnk"
Expand Down