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