Skip to content

Select Installation Scope

Installation scope determines who the installer targets on the machine. This single setting automatically controls destination paths, shortcut locations, registry root keys, and User Account Control (UAC) elevation requirements.

Access these settings from the Installation Scope page in the navigation panel.

Installation Scope settings

Targets the active user’s profile. No administrator rights required.

SettingValue
Destination%LOCALAPPDATA%\Programs
ShortcutsPer-user folders
Registry rootHKEY_CURRENT_USER
UAC elevationNot required

Best for “no-install” style apps that don’t need system-level access.

When you select a scope mode, several core settings adapt automatically:

Destination Folder

Current User: %LOCALAPPDATA%\Programs\YourApp All Users: %PROGFILESDIR%\YourApp

Shortcuts

Current User: User-specific Start Menu and Desktop All Users: Common (shared) folders

Registry Root

Current User: HKEY_CURRENT_USER All Users: HKEY_LOCAL_MACHINE

UAC and Uninstaller

Current User: No elevation, user registry All Users: Elevation required, machine registry

OptionDescriptionDefault
Request UAC elevationWhen the scope resolves to All Users, the installer requests UAC elevation automatically. Disable only if your installer does not need write access to protected locations.Enabled
Fail if admin rights unavailableThe installation aborts with an error when All Users scope is required but administrator rights cannot be obtained. When disabled, the installer silently falls back to Current User.Disabled

If the end user selects “All users” but the installer is running with standard privileges, Paquet Builder handles the elevation transparently:

  1. The installer re-launches itself with the Run as administrator verb.
  2. All original command-line parameters are forwarded, along with /PBSCOPE=1 which tells the elevated instance to use All Users scope directly.
  3. The scope dialog is skipped in the elevated instance to prevent redundant prompts.
  4. The installation proceeds using the All Users configuration.

Scope choice dialog at runtime

The User Choice dialog uses five Resource Strings that can be translated or modified:

Resource StringPurpose
#ScopeChoiceTitleDialog window title
#ScopeChoicePromptMain prompt text
#ScopeChoiceAllUsersLabel for the “All Users” option
#ScopeChoiceCurrentUserLabel for the “Current User” option
#ScopeChoiceQuestionAdditional explanatory text

The following system Variables are resolved at runtime based on the active scope:

VariableDescription
%PBINSTALLSCOPE%Returns 0 for Current User or 1 for All Users
%PBINSTALLSCOPEDIR%Resolves to the correct base directory
%PBSHORTCUTROOT%Start Menu folder for the active scope
%PBDESKTOPROOT%Desktop folder for the active scope
%PBSCOPEELEVATED%Returns 1 if the installer was re-launched with elevation

When using the Console Command-Line Compiler or directives, the following parameters control the installation scope:

DirectiveValuesDescription
InstallScope-1 None, 0 Current User, 1 All Users, 2 User Choice, 3 AutomaticSets the scope mode
ScopeRequestUAC0 No, 1 YesRequest UAC elevation for All Users. Default: 1
ScopeFailOnAdmin0 No, 1 YesFail if admin rights unavailable. Default: 0
; Example: User Choice with UAC and silent fallback
[Settings]
InstallScope=2
ScopeRequestUAC=1
ScopeFailOnAdmin=0

User Choice

Best for general-purpose applications distributed online. Gives end users control without complexity.

Automatic

Best for internal IT deployments or silent scripted installs where the calling process determines elevation.

Current User

Ideal for lightweight apps, portable tools, or scenarios where admin rights are unavailable.

All Users

Mandatory for services, drivers, or apps that must be visible to every account on the machine.