Call MULTIUSER_INIT_QUIT if command line is incompatible (Bug #1253)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7263 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ee4c9b6e33
commit
11824508c7
2 changed files with 55 additions and 58 deletions
|
@ -9,7 +9,7 @@ Copyright 2008-2021 Joost Verburg
|
|||
*/
|
||||
|
||||
!ifndef MULTIUSER_INCLUDED
|
||||
!define MULTIUSER_INCLUDED 20200319
|
||||
!define MULTIUSER_INCLUDED 20210216
|
||||
!verbose push 3
|
||||
|
||||
;Standard NSIS header files
|
||||
|
@ -36,13 +36,9 @@ Var MultiUser.InstallMode
|
|||
|
||||
!ifdef MULTIUSER_INSTALLMODE_COMMANDLINE
|
||||
!include StrFunc.nsh
|
||||
!ifndef StrStr_INCLUDED
|
||||
${StrStr}
|
||||
!endif
|
||||
${Using:StrFunc} StrStr
|
||||
!ifndef MULTIUSER_NOUNINSTALL
|
||||
!ifndef UnStrStr_INCLUDED
|
||||
${UnStrStr}
|
||||
!endif
|
||||
${Using:StrFunc} UnStrStr
|
||||
!endif
|
||||
|
||||
Var MultiUser.Parameters
|
||||
|
@ -324,6 +320,7 @@ Installer/uninstaller initialization
|
|||
Call ${UNINSTALLER_FUNCPREFIX}MultiUser.InstallMode.AllUsers
|
||||
${else}
|
||||
MessageBox MB_OK|MB_ICONSTOP "${MULTIUSER_INIT_TEXT_ALLUSERSNOTPOSSIBLE}"
|
||||
!insertmacro MULTIUSER_INIT_QUIT "${UNINSTALLER_FUNCPREFIX}"
|
||||
${endif}
|
||||
${endif}
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
<p>
|
||||
Insert the MULTIUSER_INIT and MULTIUSER_UNINT macros in the .onInit and un.onInit
|
||||
function to verify these privileges. If no uninstaller is created in the script,
|
||||
set MULTIUSER_NOUNINSTALL.</p>
|
||||
define MULTIUSER_NOUNINSTALL.</p>
|
||||
<code>
|
||||
<pre>!define MULTIUSER_EXECUTIONLEVEL Highest
|
||||
;!define MULTIUSER_NOUNINSTALL ;Uncomment if no uninstaller is created
|
||||
|
@ -214,7 +214,7 @@ FunctionEnd</pre>
|
|||
if Administrator or Power User rights are available (this is always the case if
|
||||
the execution level is set to Admin or Power, if Highest is set it depends on the
|
||||
user account). For the Standard execution level the installation will always be
|
||||
for a single user. On Windows 95/98/Me installation for a single user is not possible.</p>
|
||||
for a single user. On Windows 95/98/Me installation for a single user is not possible, a per-machine installation will be performed.</p>
|
||||
<p>
|
||||
The following settings are available to change the default installation mode:
|
||||
<table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue