From 0da07bfabd0a41527b78347c588448cef3796727 Mon Sep 17 00:00:00 2001 From: joostverburg Date: Mon, 4 Feb 2008 01:35:09 +0000 Subject: [PATCH] default directory that does not require administrator privileges git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5522 212acab6-be3b-0410-9dea-997c60f758d6 --- Examples/Modern UI/Basic.nsi | 3 ++- Examples/Modern UI/HeaderBitmap.nsi | 3 ++- Examples/Modern UI/MultiLanguage.nsi | 3 ++- Examples/Modern UI/StartMenu.nsi | 3 ++- Examples/Modern UI/WelcomeFinish.nsi | 5 ++++- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Examples/Modern UI/Basic.nsi b/Examples/Modern UI/Basic.nsi index 99507914..d0fc7a2d 100644 --- a/Examples/Modern UI/Basic.nsi +++ b/Examples/Modern UI/Basic.nsi @@ -15,11 +15,12 @@ OutFile "Basic.exe" ;Default installation folder - InstallDir "$PROGRAMFILES\Modern UI Test" + InstallDir "$LOCALAPPDATA\Modern UI Test" ;Get installation folder from registry if available InstallDirRegKey HKCU "Software\Modern UI Test" "" + ;Request application privileges for Windows Vista RequestExecutionLevel user ;-------------------------------- diff --git a/Examples/Modern UI/HeaderBitmap.nsi b/Examples/Modern UI/HeaderBitmap.nsi index d3b42fbb..c31cdee1 100644 --- a/Examples/Modern UI/HeaderBitmap.nsi +++ b/Examples/Modern UI/HeaderBitmap.nsi @@ -15,11 +15,12 @@ OutFile "HeaderBitmap.exe" ;Default installation folder - InstallDir "$PROGRAMFILES\Modern UI Test" + InstallDir "$LOCALAPPDATA\Modern UI Test" ;Get installation folder from registry if available InstallDirRegKey HKCU "Software\Modern UI Test" "" + ;Request application privileges for Windows Vista RequestExecutionLevel user ;-------------------------------- diff --git a/Examples/Modern UI/MultiLanguage.nsi b/Examples/Modern UI/MultiLanguage.nsi index 926167d7..305c0406 100644 --- a/Examples/Modern UI/MultiLanguage.nsi +++ b/Examples/Modern UI/MultiLanguage.nsi @@ -15,11 +15,12 @@ OutFile "MultiLanguage.exe" ;Default installation folder - InstallDir "$PROGRAMFILES\Modern UI Test" + InstallDir "$LOCALAPPDATA\Modern UI Test" ;Get installation folder from registry if available InstallDirRegKey HKCU "Software\Modern UI Test" "" + ;Request application privileges for Windows Vista RequestExecutionLevel user ;-------------------------------- diff --git a/Examples/Modern UI/StartMenu.nsi b/Examples/Modern UI/StartMenu.nsi index 589f4830..760f8acc 100644 --- a/Examples/Modern UI/StartMenu.nsi +++ b/Examples/Modern UI/StartMenu.nsi @@ -15,11 +15,12 @@ OutFile "StartMenu.exe" ;Default installation folder - InstallDir "$PROGRAMFILES\Modern UI Test" + InstallDir "$LOCALAPPDATA\Modern UI Test" ;Get installation folder from registry if available InstallDirRegKey HKCU "Software\Modern UI Test" "" + ;Request application privileges for Windows Vista RequestExecutionLevel user ;-------------------------------- diff --git a/Examples/Modern UI/WelcomeFinish.nsi b/Examples/Modern UI/WelcomeFinish.nsi index a717f396..2121ea11 100644 --- a/Examples/Modern UI/WelcomeFinish.nsi +++ b/Examples/Modern UI/WelcomeFinish.nsi @@ -15,11 +15,14 @@ OutFile "WelcomeFinish.exe" ;Default installation folder - InstallDir "$PROGRAMFILES\Modern UI Test" + InstallDir "$LOCALAPPDATA\Modern UI Test" ;Get installation folder from registry if available InstallDirRegKey HKCU "Software\Modern UI Test" "" + ;Request application privileges for Windows Vista + RequestExecutionLevel user + ;-------------------------------- ;Interface Settings