|
@@ -12,6 +12,7 @@
|
|
|
|
|
|
SetCompressor lzma
|
|
SetCompressor lzma
|
|
|
|
|
|
|
|
+[% if ib.py_format == 'bundled' %]
|
|
!define MULTIUSER_EXECUTIONLEVEL Highest
|
|
!define MULTIUSER_EXECUTIONLEVEL Highest
|
|
!define MULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER
|
|
!define MULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER
|
|
!define MULTIUSER_MUI
|
|
!define MULTIUSER_MUI
|
|
@@ -21,6 +22,7 @@ SetCompressor lzma
|
|
!define MULTIUSER_INSTALLMODE_FUNCTION correct_prog_files
|
|
!define MULTIUSER_INSTALLMODE_FUNCTION correct_prog_files
|
|
[% endif %]
|
|
[% endif %]
|
|
!include MultiUser.nsh
|
|
!include MultiUser.nsh
|
|
|
|
+[% endif %]
|
|
|
|
|
|
[% block modernui %]
|
|
[% block modernui %]
|
|
; Modern UI installer stuff
|
|
; Modern UI installer stuff
|
|
@@ -31,7 +33,9 @@ SetCompressor lzma
|
|
; UI pages
|
|
; UI pages
|
|
[% block ui_pages %]
|
|
[% block ui_pages %]
|
|
!insertmacro MUI_PAGE_WELCOME
|
|
!insertmacro MUI_PAGE_WELCOME
|
|
|
|
+[% if ib.py_format == 'bundled' %]
|
|
!insertmacro MULTIUSER_PAGE_INSTALLMODE
|
|
!insertmacro MULTIUSER_PAGE_INSTALLMODE
|
|
|
|
+[% endif %]
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
!insertmacro MUI_PAGE_FINISH
|
|
!insertmacro MUI_PAGE_FINISH
|
|
@@ -41,6 +45,9 @@ SetCompressor lzma
|
|
|
|
|
|
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
|
|
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
|
|
OutFile "${INSTALLER_NAME}"
|
|
OutFile "${INSTALLER_NAME}"
|
|
|
|
+[% if ib.py_format != 'bundled' %]
|
|
|
|
+InstallDir "$PROGRAMFILES${BITNESS}\${PRODUCT_NAME}"
|
|
|
|
+[% endif %]
|
|
ShowInstDetails show
|
|
ShowInstDetails show
|
|
|
|
|
|
Section -SETTINGS
|
|
Section -SETTINGS
|
|
@@ -57,11 +64,13 @@ Section "!${PRODUCT_NAME}" sec_app
|
|
File /r "pkgs\*.*"
|
|
File /r "pkgs\*.*"
|
|
SetOutPath "$INSTDIR"
|
|
SetOutPath "$INSTDIR"
|
|
|
|
|
|
|
|
+ [% if ib.py_format == 'bundled' %]
|
|
; Marker file for per-user install
|
|
; Marker file for per-user install
|
|
StrCmp $MultiUser.InstallMode CurrentUser 0 +3
|
|
StrCmp $MultiUser.InstallMode CurrentUser 0 +3
|
|
FileOpen $0 "$INSTDIR\${USER_INSTALL_MARKER}" w
|
|
FileOpen $0 "$INSTDIR\${USER_INSTALL_MARKER}" w
|
|
FileClose $0
|
|
FileClose $0
|
|
SetFileAttributes "$INSTDIR\${USER_INSTALL_MARKER}" HIDDEN
|
|
SetFileAttributes "$INSTDIR\${USER_INSTALL_MARKER}" HIDDEN
|
|
|
|
+ [% endif %]
|
|
|
|
|
|
[% block install_files %]
|
|
[% block install_files %]
|
|
; Install files
|
|
; Install files
|
|
@@ -196,6 +205,7 @@ Function .onMouseOverSection
|
|
[% endblock mouseover_messages %]
|
|
[% endblock mouseover_messages %]
|
|
FunctionEnd
|
|
FunctionEnd
|
|
|
|
|
|
|
|
+[% if ib.py_format == 'bundled' %]
|
|
Function .onInit
|
|
Function .onInit
|
|
!insertmacro MULTIUSER_INIT
|
|
!insertmacro MULTIUSER_INIT
|
|
FunctionEnd
|
|
FunctionEnd
|
|
@@ -212,3 +222,9 @@ Function correct_prog_files
|
|
StrCpy $INSTDIR "$PROGRAMFILES64\${MULTIUSER_INSTALLMODE_INSTDIR}"
|
|
StrCpy $INSTDIR "$PROGRAMFILES64\${MULTIUSER_INSTALLMODE_INSTDIR}"
|
|
FunctionEnd
|
|
FunctionEnd
|
|
[% endif %]
|
|
[% endif %]
|
|
|
|
+
|
|
|
|
+[% else %]
|
|
|
|
+Function .onInit
|
|
|
|
+ SetShellVarContext all
|
|
|
|
+FunctionEnd
|
|
|
|
+[% endif %]
|