inno-setup

Inno Setup - How to run an aplication with admin privileges if the setup is set to PrivilegesRequired=lowest?

馋奶兔 提交于 2021-02-07 10:19:12
问题 I want to run the setup with PrivilegesRequired=lowest . How to set and run an application (dxwebsetup.exe) to install with my setup with Administrator privileges? My code (Inno Setup - Avoid displaying filenames of sub-installers): procedure CurStepChanged(CurStep: TSetupStep); var ProgressPage: TOutputProgressWizardPage; ResultCode: Integer; begin if CurStep = ssInstall then begin if IsComponentSelected('DirectX') then begin ProgressPage := CreateOutputProgressPage('Installing prerequsities

Inno Setup - How to run an aplication with admin privileges if the setup is set to PrivilegesRequired=lowest?

喜夏-厌秋 提交于 2021-02-07 10:19:00
问题 I want to run the setup with PrivilegesRequired=lowest . How to set and run an application (dxwebsetup.exe) to install with my setup with Administrator privileges? My code (Inno Setup - Avoid displaying filenames of sub-installers): procedure CurStepChanged(CurStep: TSetupStep); var ProgressPage: TOutputProgressWizardPage; ResultCode: Integer; begin if CurStep = ssInstall then begin if IsComponentSelected('DirectX') then begin ProgressPage := CreateOutputProgressPage('Installing prerequsities

Inno Setup - How to run an aplication with admin privileges if the setup is set to PrivilegesRequired=lowest?

萝らか妹 提交于 2021-02-07 10:18:01
问题 I want to run the setup with PrivilegesRequired=lowest . How to set and run an application (dxwebsetup.exe) to install with my setup with Administrator privileges? My code (Inno Setup - Avoid displaying filenames of sub-installers): procedure CurStepChanged(CurStep: TSetupStep); var ProgressPage: TOutputProgressWizardPage; ResultCode: Integer; begin if CurStep = ssInstall then begin if IsComponentSelected('DirectX') then begin ProgressPage := CreateOutputProgressPage('Installing prerequsities

How to check if specific Python version is installed in Inno Setup?

穿精又带淫゛_ 提交于 2021-02-07 09:55:41
问题 How can I write a setup script for Inno Setup Compiler that will install Python only if the right version is not available? How do I check if a specific Python version e.g. Python 3.6.8, 32-bit , is installed? 回答1: Method The installation check can be done in the code section of setup script by using registry functions. Python installer creates registry keys in various locations, depending on the type of installation: HKEY_CURRENT_USER\Software\Python\PythonCore HKEY_LOCAL_MACHINE\Software

Install fonts to PC using Inno Setup

社会主义新天地 提交于 2021-02-07 08:01:48
问题 I created a Windows application and that uses a particular font. So I need to install that font to the users system using Inno Setup. I used this code: Source: "ARLRDBD.TTF"; DestDir: "{fonts}"; FontInstall: "Oz Handicraft BT"; \ Flags: onlyifdoesntexist uninsneveruninstall But this code had no effect when I tested it in my system. How can I do it perfectly? 回答1: FontInstall - This must be exactly the same name as you see when you double-click the font file in Explorer. In your case you have

Install fonts to PC using Inno Setup

流过昼夜 提交于 2021-02-07 07:58:20
问题 I created a Windows application and that uses a particular font. So I need to install that font to the users system using Inno Setup. I used this code: Source: "ARLRDBD.TTF"; DestDir: "{fonts}"; FontInstall: "Oz Handicraft BT"; \ Flags: onlyifdoesntexist uninsneveruninstall But this code had no effect when I tested it in my system. How can I do it perfectly? 回答1: FontInstall - This must be exactly the same name as you see when you double-click the font file in Explorer. In your case you have

Inno Setup : Exclude a directory and its files also

有些话、适合烂在心里 提交于 2021-02-07 07:16:04
问题 I use the "Exclude" flag in Inno Setup in order to exclude from installation a subdirectory name "Bin32" or "Bin64" depending on the user's architecture. All I want is to NOT install the useless folder and ALL its files and subdirectories as well. Here are my current rules: [Files] Source: "Z:\Work\temp\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs ; Exclude Source: "*"; Excludes: "\Bin64"; DestDir: "{app}"; Flags: recursesubdirs; Check: not Is64BitInstallMode

Inno Setup : Exclude a directory and its files also

别来无恙 提交于 2021-02-07 07:12:27
问题 I use the "Exclude" flag in Inno Setup in order to exclude from installation a subdirectory name "Bin32" or "Bin64" depending on the user's architecture. All I want is to NOT install the useless folder and ALL its files and subdirectories as well. Here are my current rules: [Files] Source: "Z:\Work\temp\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs ; Exclude Source: "*"; Excludes: "\Bin64"; DestDir: "{app}"; Flags: recursesubdirs; Check: not Is64BitInstallMode

Inno Setup Place controls on wpPreparing Page

≡放荡痞女 提交于 2021-02-05 08:01:25
问题 I am trying to place a label on the wpPreparing page to indicate uninstallation of an existing version, prior to running the new installation. Here is my code: function PrepareToInstall(var NeedsRestart: Boolean): String; var UninstallingLabel: TNewStaticText; intResultCode: Integer; begin with UninstallingLabel do begin Caption := 'Uninstalling existing version...'; Left := WizardForm.StatusLabel.Left; Top := WizardForm.StatusLabel.Top; Parent := wpPreparing.Surface; end; if

Can not kill process InnoSetup

99封情书 提交于 2021-02-04 21:42:08
问题 Trying to kill process via InnoSetup installer. But it still shows an error that the processes are running. I use this. [Files] Source: Files\CefSharp.BrowserSubprocess.exe; DestDir: {app}; Flags: overwritereadonly ignoreversion uninsremovereadonly; BeforeInstall: TaskKill('CefSharp.BrowserSubprocess.exe') [Code] procedure TaskKill(fileName: String); var ResultCode: Integer; begin Exec(ExpandConstant('{sys}/taskkill.exe'), '/f /im ' + '"' + fileName + '"', ExpandConstant('{sys}'), SW_HIDE,