From cb0d2e65ed64a62eb044570160c7c12db55f6326 Mon Sep 17 00:00:00 2001 From: Hendrik Borchardt Date: Tue, 4 Apr 2023 22:09:41 +0200 Subject: [PATCH] Run installer as regular user Running the installer as admin means that the default installation folder is the admin's appdata folder, where the user that started the installation cannot access it. The required admin privileges were introduced to allow the qmk_driver_installer.exe to run. Run the installer as a regular user and run qmk_driver_installer.exe using shellexec to get a UAC prompt only when it is needed. --- installer/install.iss | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/installer/install.iss b/installer/install.iss index a00fff0..63a8ce9 100644 --- a/installer/install.iss +++ b/installer/install.iss @@ -22,8 +22,7 @@ AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} DefaultDirName={userappdata}\{#MyAppDir} DisableProgramGroupPage=yes -; Uncomment the following line to run in non administrative install mode (install for current user only.) -;PrivilegesRequired=lowest +PrivilegesRequired=lowest OutputDir=..\.build OutputBaseFilename={#MyAppDir} SetupIconFile=icon.ico @@ -45,7 +44,7 @@ Source: "..\.build\*"; DestDir: "{app}"; Flags: ignoreversion [Run] Filename: "{app}\QMK.exe"; Parameters: "install"; StatusMsg: "Installing Distro..."; Flags: runhidden -Filename: "{app}\qmk_driver_installer.exe"; WorkingDir: "{app}"; Parameters: " --all --force drivers.txt"; StatusMsg: "Installing Drivers..."; Tasks: installdrivers; Flags: runhidden +Filename: "{app}\qmk_driver_installer.exe"; WorkingDir: "{app}"; Parameters: " --all --force drivers.txt"; StatusMsg: "Installing Drivers..."; Tasks: installdrivers; Flags: runhidden shellexec waituntilterminated [UninstallRun] Filename: "{app}\QMK.exe"; Parameters: "run ""qmk-backup"""; StatusMsg: "Backing Up User Data..."; Flags: runhidden; RunOnceId: "backup"