Skip to content

Commit 564c6f5

Browse files
committed
Merge branch 'main' into release/0.2
2 parents b2c3ff3 + 3032c66 commit 564c6f5

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

setup.nsi

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,28 @@ Name "${PRODUCT_NAME}"
1111
VIProductVersion "${PRODUCT_VERSION}"
1212
OutFile "dist\${OUTFILE_NAME}"
1313

14+
!define MULTIUSER_EXECUTIONLEVEL Highest
15+
!define MULTIUSER_MUI
16+
!define MULTIUSER_INSTALLMODE_COMMANDLINE
17+
!include MultiUser.nsh
18+
!include MUI2.nsh
19+
!include InstallOptions.nsh
1420

15-
!include "MUI2.nsh"
16-
!include "InstallOptions.nsh"
1721
!define MUI_PAGE_CUSTOMFUNCTION_PRE oneclickpre
22+
!insertmacro MULTIUSER_PAGE_INSTALLMODE
1823
!insertmacro MUI_PAGE_LICENSE "${LICENSE_FILE}"
1924
!insertmacro MUI_PAGE_INSTFILES
25+
!insertmacro MUI_LANGUAGE English
2026
!include "uninstall.nsi"
2127

28+
Function .onInit
29+
!insertmacro MULTIUSER_INIT
30+
FunctionEnd
31+
32+
Function un.onInit
33+
!insertmacro MULTIUSER_UNINIT
34+
FunctionEnd
35+
2236
; Define the installer sections
2337
Section "Ansys Python Manager" SEC01
2438
; Set the installation directory to the program files directory

0 commit comments

Comments
 (0)