Windows Vista UAC setting
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5495 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
34112ed24b
commit
5470b63b04
22 changed files with 38 additions and 0 deletions
|
@ -9,6 +9,7 @@ Name "File Functions"
|
|||
OutFile "FileFunc.exe"
|
||||
Caption "$(^Name)"
|
||||
XPStyle on
|
||||
RequestExecutionLevel user
|
||||
|
||||
!include "WinMessages.nsh"
|
||||
!include "FileFunc.nsh"
|
||||
|
|
|
@ -10,6 +10,7 @@ OutFile "FileFuncTest.exe"
|
|||
Caption "$(^Name)"
|
||||
ShowInstDetails show
|
||||
XPStyle on
|
||||
RequestExecutionLevel user
|
||||
|
||||
Var FUNCTION
|
||||
Var OUT1
|
||||
|
|
|
@ -14,6 +14,8 @@ Page instfiles
|
|||
|
||||
XPStyle on
|
||||
|
||||
RequestExecutionLevel user
|
||||
|
||||
!define TestDLL '"${NSISDIR}\Plugins\LangDLL.dll"'
|
||||
|
||||
Section
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
Name "NSIS LogicLib Example"
|
||||
OutFile "LogicLib.exe"
|
||||
ShowInstDetails show
|
||||
RequestExecutionLevel user
|
||||
|
||||
!include "LogicLib.nsh"
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@ ShowInstDetails show
|
|||
Page components
|
||||
Page instfiles
|
||||
|
||||
RequestExecutionLevel user
|
||||
|
||||
# settings
|
||||
|
||||
!define MEMENTO_REGISTRY_ROOT HKCU
|
||||
|
|
|
@ -3,6 +3,7 @@ OutFile "StrFunc.exe"
|
|||
ShowInstDetails show
|
||||
ShowUninstDetails show
|
||||
XPStyle on
|
||||
RequestExecutionLevel user
|
||||
|
||||
!include "StrFunc.nsh"
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ Name "Text Functions"
|
|||
OutFile "TextFunc.exe"
|
||||
Caption "$(^Name)"
|
||||
XPStyle on
|
||||
RequestExecutionLevel user
|
||||
|
||||
!include "WinMessages.nsh"
|
||||
!include "TextFunc.nsh"
|
||||
|
|
|
@ -10,6 +10,7 @@ OutFile "TextFuncTest.exe"
|
|||
Caption "$(^Name)"
|
||||
ShowInstDetails show
|
||||
XPStyle on
|
||||
RequestExecutionLevel user
|
||||
|
||||
Var FUNCTION
|
||||
Var TEMPFILE1
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
InstallDir "$PROGRAMFILES\User Variables Test"
|
||||
|
||||
RequestExecutionLevel user
|
||||
|
||||
;--------------------------------
|
||||
|
||||
;Pages
|
||||
|
|
|
@ -9,6 +9,7 @@ Name "Word Functions"
|
|||
OutFile "WordFunc.exe"
|
||||
Caption "$(^Name)"
|
||||
XPStyle on
|
||||
RequestExecutionLevel user
|
||||
|
||||
Var INI
|
||||
Var HWND
|
||||
|
|
|
@ -10,6 +10,7 @@ OutFile "WordFuncTest.exe"
|
|||
Caption "$(^Name)"
|
||||
ShowInstDetails show
|
||||
XPStyle on
|
||||
RequestExecutionLevel user
|
||||
|
||||
Var FUNCTION
|
||||
Var OUT
|
||||
|
|
|
@ -35,6 +35,8 @@ CheckBitmap "${NSISDIR}\Contrib\Graphics\Checks\classic-cross.bmp"
|
|||
LicenseText "A test text, make sure it's all there"
|
||||
LicenseData "bigtest.nsi"
|
||||
|
||||
RequestExecutionLevel admin
|
||||
|
||||
;--------------------------------
|
||||
|
||||
Page license
|
||||
|
|
|
@ -16,6 +16,9 @@ OutFile "example1.exe"
|
|||
; The default installation directory
|
||||
InstallDir $PROGRAMFILES\Example1
|
||||
|
||||
; Request application privileges for Windows Vista
|
||||
RequestExecutionLevel user
|
||||
|
||||
;--------------------------------
|
||||
|
||||
; Pages
|
||||
|
|
|
@ -20,6 +20,9 @@ InstallDir $PROGRAMFILES\Example2
|
|||
; overwrite the old one automatically)
|
||||
InstallDirRegKey HKLM "Software\NSIS_Example2" "Install_Dir"
|
||||
|
||||
; Request application privileges for Windows Vista
|
||||
RequestExecutionLevel admin
|
||||
|
||||
;--------------------------------
|
||||
|
||||
; Pages
|
||||
|
|
|
@ -44,6 +44,9 @@ DirText "Lets make a third page!"
|
|||
; Install dir
|
||||
InstallDir "${NSISDIR}\Examples"
|
||||
|
||||
; Request application privileges for Windows Vista
|
||||
RequestExecutionLevel user
|
||||
|
||||
;--------------------------------
|
||||
|
||||
; Pages
|
||||
|
|
|
@ -9,6 +9,8 @@ OutFile languages.exe
|
|||
|
||||
XPStyle on
|
||||
|
||||
RequestExecutionLevel user
|
||||
|
||||
;--------------------------------
|
||||
|
||||
Page license
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
Name "One Section"
|
||||
OutFile "one-section.exe"
|
||||
RequestExecutionLevel user
|
||||
|
||||
;--------------------------------
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ Caption "Prime number generator"
|
|||
ShowInstDetails show
|
||||
AllowRootDirInstall true
|
||||
InstallDir "$EXEDIR"
|
||||
RequestExecutionLevel user
|
||||
|
||||
DirText "Select a directory to write primes.txt. $_CLICK"
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ OutFile "rtest.exe"
|
|||
ComponentText "Select tests!"
|
||||
ShowInstDetails show
|
||||
|
||||
RequestExecutionLevel user
|
||||
|
||||
;--------------------------------
|
||||
|
||||
Section "Test 1"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
Name "Silent"
|
||||
OutFile "silent.exe"
|
||||
RequestExecutionLevel user
|
||||
|
||||
# uncomment the following line to make the installer silent by default.
|
||||
; SilentInstall silent
|
||||
|
|
|
@ -15,6 +15,9 @@ SilentInstall silent
|
|||
; The file to write
|
||||
OutFile "viewhtml.exe"
|
||||
|
||||
; Request application privileges for Windows Vista
|
||||
RequestExecutionLevel user
|
||||
|
||||
;--------------------------------
|
||||
|
||||
; The stuff to install
|
||||
|
|
|
@ -35,6 +35,9 @@ AutoCloseWindow true
|
|||
; hide the "show details" box
|
||||
ShowInstDetails nevershow
|
||||
|
||||
; Request application privileges for Windows Vista
|
||||
RequestExecutionLevel admin
|
||||
|
||||
;--------------------------------
|
||||
|
||||
;Pages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue