90 lines
1.6 KiB
Plaintext
90 lines
1.6 KiB
Plaintext
|
Var newStartMenuLink
|
||
|
Var oldStartMenuLink
|
||
|
Var newDesktopLink
|
||
|
Var oldDesktopLink
|
||
|
Var oldShortcutName
|
||
|
Var oldMenuDirectory
|
||
|
|
||
|
!include "common.nsh"
|
||
|
!include "MUI2.nsh"
|
||
|
!include "multiUser.nsh"
|
||
|
!include "allowOnlyOneInstallerInstance.nsh"
|
||
|
|
||
|
!ifdef INSTALL_MODE_PER_ALL_USERS
|
||
|
!ifdef BUILD_UNINSTALLER
|
||
|
RequestExecutionLevel user
|
||
|
!else
|
||
|
RequestExecutionLevel admin
|
||
|
!endif
|
||
|
!else
|
||
|
RequestExecutionLevel user
|
||
|
!endif
|
||
|
|
||
|
!ifdef BUILD_UNINSTALLER
|
||
|
SilentInstall silent
|
||
|
!else
|
||
|
Var appExe
|
||
|
Var launchLink
|
||
|
!endif
|
||
|
|
||
|
!ifdef ONE_CLICK
|
||
|
!include "oneClick.nsh"
|
||
|
!else
|
||
|
!include "assistedInstaller.nsh"
|
||
|
!endif
|
||
|
|
||
|
!insertmacro addLangs
|
||
|
|
||
|
!ifmacrodef customHeader
|
||
|
!insertmacro customHeader
|
||
|
!endif
|
||
|
|
||
|
Function .onInit
|
||
|
!ifmacrodef preInit
|
||
|
!insertmacro preInit
|
||
|
!endif
|
||
|
|
||
|
!ifdef DISPLAY_LANG_SELECTOR
|
||
|
!insertmacro MUI_LANGDLL_DISPLAY
|
||
|
!endif
|
||
|
|
||
|
!ifdef BUILD_UNINSTALLER
|
||
|
WriteUninstaller "${UNINSTALLER_OUT_FILE}"
|
||
|
!insertmacro quitSuccess
|
||
|
!else
|
||
|
!insertmacro check64BitAndSetRegView
|
||
|
|
||
|
!ifdef ONE_CLICK
|
||
|
!insertmacro ALLOW_ONLY_ONE_INSTALLER_INSTANCE
|
||
|
!else
|
||
|
${IfNot} ${UAC_IsInnerInstance}
|
||
|
!insertmacro ALLOW_ONLY_ONE_INSTALLER_INSTANCE
|
||
|
${EndIf}
|
||
|
!endif
|
||
|
|
||
|
!insertmacro initMultiUser
|
||
|
|
||
|
!ifmacrodef customInit
|
||
|
!insertmacro customInit
|
||
|
!endif
|
||
|
|
||
|
!ifmacrodef addLicenseFiles
|
||
|
InitPluginsDir
|
||
|
!insertmacro addLicenseFiles
|
||
|
!endif
|
||
|
!endif
|
||
|
FunctionEnd
|
||
|
|
||
|
!ifndef BUILD_UNINSTALLER
|
||
|
!include "installUtil.nsh"
|
||
|
!endif
|
||
|
|
||
|
Section "install"
|
||
|
!ifndef BUILD_UNINSTALLER
|
||
|
!include "installSection.nsh"
|
||
|
!endif
|
||
|
SectionEnd
|
||
|
|
||
|
!ifdef BUILD_UNINSTALLER
|
||
|
!include "uninstaller.nsh"
|
||
|
!endif
|