inno-setup

Inno Setup: read source path from a registry on compile time

♀尐吖头ヾ 提交于 2020-12-30 03:38:45
问题 Reading a registry value from the [Code] section is quite easy. But if I have to read the value of a registry (an installation path) to be used in the [Files] section in order to copy files from a source folder the the install/destination folder I tried: Source: "{reg:HKLM\SOFTWARE\MyApp,InstallDir|DefaultDirName}\*"; DestDir: "{app}\Mydestination"; AfterInstall: AfterInstallProc receiving the error "unknown filename prefix 'reg:'". Or is there a possibility to read a registry value at the

How to run a PowerShell Script after Inno Setup installer

依然范特西╮ 提交于 2020-12-30 01:34:36
问题 I have a PowerShell script that modifies some preference files that I'm trying to have run after my Inno Setup installer is completed. Haven't found a working solution for this yet. My goal is to embed this in the file, or code, so I don't have to ship multiple files, just the installer. Thanks! 回答1: To execute a command after an installation finishes, add an entry to [Run] section. If the PowerShell code is trivial, you can executed it without any script file directly from PowerShell command

How to pad version components with zeroes for OutputBaseFilename in Inno Setup

陌路散爱 提交于 2020-12-30 01:29:10
问题 I have Inno Setup 6.1.2 setup script where the version main.sub.batch is formed like this: #define AppVerText() \ GetVersionComponents('..\app\bin\Release\app.exe', \ Local[0], Local[1], Local[2], Local[3]), \ Str(Local[0]) + "." + Str(Local[1]) + "." + Str(Local[2]) Later in the setup part, I use it for the name of setup package: [Setup] OutputBaseFilename=app.{#AppVerText}.x64 The resulting filename will be app.1.0.2.x64.exe , which is mighty fine. To make it perfect, I'd like to end up

How to pad version components with zeroes for OutputBaseFilename in Inno Setup

房东的猫 提交于 2020-12-30 01:00:27
问题 I have Inno Setup 6.1.2 setup script where the version main.sub.batch is formed like this: #define AppVerText() \ GetVersionComponents('..\app\bin\Release\app.exe', \ Local[0], Local[1], Local[2], Local[3]), \ Str(Local[0]) + "." + Str(Local[1]) + "." + Str(Local[2]) Later in the setup part, I use it for the name of setup package: [Setup] OutputBaseFilename=app.{#AppVerText}.x64 The resulting filename will be app.1.0.2.x64.exe , which is mighty fine. To make it perfect, I'd like to end up

How to pad version components with zeroes for OutputBaseFilename in Inno Setup

风流意气都作罢 提交于 2020-12-30 00:54:28
问题 I have Inno Setup 6.1.2 setup script where the version main.sub.batch is formed like this: #define AppVerText() \ GetVersionComponents('..\app\bin\Release\app.exe', \ Local[0], Local[1], Local[2], Local[3]), \ Str(Local[0]) + "." + Str(Local[1]) + "." + Str(Local[2]) Later in the setup part, I use it for the name of setup package: [Setup] OutputBaseFilename=app.{#AppVerText}.x64 The resulting filename will be app.1.0.2.x64.exe , which is mighty fine. To make it perfect, I'd like to end up

How to pad version components with zeroes for OutputBaseFilename in Inno Setup

孤人 提交于 2020-12-30 00:54:06
问题 I have Inno Setup 6.1.2 setup script where the version main.sub.batch is formed like this: #define AppVerText() \ GetVersionComponents('..\app\bin\Release\app.exe', \ Local[0], Local[1], Local[2], Local[3]), \ Str(Local[0]) + "." + Str(Local[1]) + "." + Str(Local[2]) Later in the setup part, I use it for the name of setup package: [Setup] OutputBaseFilename=app.{#AppVerText}.x64 The resulting filename will be app.1.0.2.x64.exe , which is mighty fine. To make it perfect, I'd like to end up

Overwrite installed files with files in setup subfolder in Inno Setup

Deadly 提交于 2020-12-29 14:25:50
问题 I recently have found some old PC games to play on my Windows 10 64-bit computer. I have looked at various online sources to get the games working. Now I'm interested in creating a custom installer for all the various steps taken to get the games to work properly. I succeeded getting C&C Generals to work with a custom installer via Inno Setup. I however lack the expertise after a bit of research and trial to do the following: I am able to install the software and use the official patch to

Installer built by Inno Setup and SPAWNWND, NOTIFYWND parameters on UAC window

ぃ、小莉子 提交于 2020-12-29 14:21:14
问题 What are SPAWNWND and NOTIFYWND parameters in the program path? 回答1: Those two parameters are used for communication between the elevated and non elevated parts of the setup for ...AsOriginalUser functionality, exit codes, etc. You can probably find more details in the Inno source code itself. Note that these are an implementation detail and you shouldn't rely on them or do anything with the values. 回答2: spawn() is a c-function group that executes, child processes, but not through a forking!

Installer built by Inno Setup and SPAWNWND, NOTIFYWND parameters on UAC window

岁酱吖の 提交于 2020-12-29 14:20:55
问题 What are SPAWNWND and NOTIFYWND parameters in the program path? 回答1: Those two parameters are used for communication between the elevated and non elevated parts of the setup for ...AsOriginalUser functionality, exit codes, etc. You can probably find more details in the Inno source code itself. Note that these are an implementation detail and you shouldn't rely on them or do anything with the values. 回答2: spawn() is a c-function group that executes, child processes, but not through a forking!

Overwrite installed files with files in setup subfolder in Inno Setup

我的未来我决定 提交于 2020-12-29 14:19:41
问题 I recently have found some old PC games to play on my Windows 10 64-bit computer. I have looked at various online sources to get the games working. Now I'm interested in creating a custom installer for all the various steps taken to get the games to work properly. I succeeded getting C&C Generals to work with a custom installer via Inno Setup. I however lack the expertise after a bit of research and trial to do the following: I am able to install the software and use the official patch to