diff options
author | daid <daid303@gmail.com> | 2013-06-14 13:44:53 +0400 |
---|---|---|
committer | daid <daid303@gmail.com> | 2013-06-14 13:44:53 +0400 |
commit | 8320778c2f8a3f8dd74b70ee8d81f92c9adcea17 (patch) | |
tree | 353175ca94ed3843a08f283cd7dbb341b86244da /scripts | |
parent | 1ad8ad905f63d07626b222460b5e1a5d2976e961 (diff) |
Write start menu shortcuts for all users.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/win32/installer.nsi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/win32/installer.nsi b/scripts/win32/installer.nsi index 418db0ef52..c76c7449c4 100644 --- a/scripts/win32/installer.nsi +++ b/scripts/win32/installer.nsi @@ -89,6 +89,9 @@ Section "Cura ${VERSION}" WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cura_${VERSION}" "NoModify" 1 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cura_${VERSION}" "NoRepair" 1 WriteUninstaller "uninstall.exe" + + ; Write start menu entries for all users + SetShellVarContext all CreateDirectory "$SMPROGRAMS\Cura ${VERSION}" CreateShortCut "$SMPROGRAMS\Cura ${VERSION}\Uninstall Cura ${VERSION}.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 @@ -100,6 +103,8 @@ Section "Cura ${VERSION}" SectionEnd Function LaunchLink + ; Write start menu entries for all users + SetShellVarContext all ExecShell "" "$SMPROGRAMS\Cura ${VERSION}\Cura ${VERSION}.lnk" FunctionEnd @@ -149,6 +154,8 @@ Section "Uninstall" DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cura_${VERSION}" DeleteRegKey HKLM "SOFTWARE\Cura_${VERSION}" + ; Write start menu entries for all users + SetShellVarContext all ; Remove directories used RMDir /r "$SMPROGRAMS\Cura ${VERSION}" RMDir /r "$INSTDIR" |