Questions tagged [inno-setup]
Inno Setup is a tool to create setup programs with an embedded Pascal-derived scripting language.
4,608
questions
-1
votes
0
answers
24
views
Inno Setup - Alphabet and Numeric Text Box [duplicate]
This code allows to only enter alphabet and numeric characters in the Inno Setup installer text box:
procedure TextBoxKeyPress(Sender: TObject; var Key: Char);
var
KeyCode: Integer;
begin
{ allow ...
0
votes
0
answers
33
views
Inno setup UninstallRun and interactive process [duplicate]
In Inno Setup, if in the section [UninstallRun] I launch a non-interactive .exe, it works. But if I launch an interactive .exe (mini VB.Net application which asks through a form the reasons of the ...
0
votes
0
answers
32
views
Inno Setup script not install. Displays error: "Internal error: .Net Framework not found" [duplicate]
Can anyone shed light on this Inno Setup error that one of my users is getting?
He can install the same software on another computer with no issues. I asked him to supply me with his log file (the ...
0
votes
0
answers
17
views
Inno Setup - How to add picture box to progress dialog? [duplicate]
This code adds a picture to the licnese agreement wizard page,
picLicense := TBitmapImage.Create(WizardForm.LicensePage);
with picLicense do
begin
Parent := WizardForm.LicensePage;
Left :...
0
votes
0
answers
40
views
How to change the radio button color in the LicensePage? [duplicate]
How to change the radio button color in the LicensePage?
The following code does not work:
with WizardForm do
begin
LicenseAcceptedRadio.Font.Color := clWhite;
end;
It would seem that the ...
1
vote
1
answer
17
views
How to change font / increase font size of Radio button on Inno Setup CreateInputOptionPage
I have added a new page - CreateInputOptionPage
added a few options.
wpWizardPage.Add('Option A');
wpWizardPage.Add('Option B');
wpWizardPage.Add('Option C');
I want to increase the font size of the ...
1
vote
1
answer
35
views
Should I give my app write access to Program Files?
I've built a standalone desktop app using Dash by Plotly. To deploy it I'm using pyinstaller to create an executable and Inno Setup to create an Installation Wizard for the user to install the app. ...
0
votes
0
answers
21
views
inno setup how to validate mssql server credentials
in my project i use inno to run a .sql script to create a database. I use a custom page to write mssql server instance name user and password to run the script.
I would like to add the validation of ...
3
votes
1
answer
32
views
Installation steps on left side - Inno Setup
Inno Setup - I want to create an installer similar to the screenshot.
The installer should highlight the current step on the left side.
How to achieve the same?
-1
votes
0
answers
15
views
Inno Setup - Use Welcome page style in all the steps - On left side Image should be displayed in all steps
I want to add the Welcome page image (displayed on Welcome Page) to all the steps of the installer.
I can create custom pages, but that would be too complex.
Basically, I want to use the style of the ...
-2
votes
0
answers
24
views
Change font name, size and color of controls without scaling?
This seems to be the code on new Inno Setup for changing the font styles:
[LangOptions]
DialogFontSize=20
But is there a way to change the font style (name, size and color) of the controls without ...
-2
votes
0
answers
28
views
Inno Setup - Arrays for TBitmapImage (Picture Box) Control
In Inno Setup, You can create arrays for variables like this:
program exArrays;
var
n: array [1..10] of integer; (* n is an array of 10 integers *)
i, j: integer;
begin
(* initialize ...
2
votes
1
answer
43
views
Filling with image [duplicate]
I am using the following code to add a background image,
function Page1_Create: TWizardPage;
var
Page1: TWizardPage;
// Fonts
// Pictures
PictureBox2_PictureName: String;
// ...
2
votes
1
answer
78
views
Change the entire font name of all dialogs (part 2) [duplicate]
Based on this post,
Change the entire font style of all dialogs
How to change the font text of the entire installer in Graphical Installer?
When you create the installer using this tool, it creates ...
0
votes
1
answer
40
views
MySQL setting in Innosetup
In Innosetup I can create a new user without any problem.
The only issue I have, is that I have to set the amount of Simultaneous connections to 200 and this is what I cannot get working.
Does ...
2
votes
1
answer
31
views
Playing native Windows sounds in Inno Setup
In there any way to play Windows native sounds using Inno Setup?
For example I'm showing a custom message box, and I need to play Windows warning/info/error sound before showing that message. Any way?
1
vote
2
answers
33
views
Create desktop shortcut to exe with argument with Inno Setup
I'm trying to create an installer for a Python script with Inno Setup.
My goal is to have a single installer.
With Inno Setup, I packed my Python script, an embedded version of Python, and an icon.
...
1
vote
1
answer
25
views
Inno Setup - How to bind a checkbox with a registry key, to check if the key may be written? [duplicate]
I need to create an installer with Inno Setup (version 6.2.1) in which I need to let the user select which file extension he want to associate with the installed app.
To achieve that I needed to ...
2
votes
2
answers
130
views
Change the font name of all dialogs in Inno Setup
Based on the answer in this link,
Inno Setup how to change the font color or style of label on TInputFileWizardPage
This is the code to change the font style,
PageFileSelect.PromptLabels[0].Font.Color ...
2
votes
1
answer
43
views
Configuring Visual & Installer in VS 2022 for x64
My config screen:
Why is it that I can't select x64 in the list? In the Alarm Clock row there is Add / Edit in the drop-down list. But not for AlarmClockSetup.
1
vote
1
answer
34
views
Extracting files with same name from installer during Inno Setup InitializeSetup
This is my file section
Source: "Deployment\x64\SQLite.Interop.dll"; DestDir: "{app}\x64"
Source: "Deployment\x64\System.Data.SQLite.dll"; DestDir: "{app}\x64"
...
3
votes
1
answer
22
views
Pascal Script fails to retrieve wide string from a custom DLL
I need Inno Setup to load a wide string from a function in a custom DLL. I have no problem loading Ansi strings – this, for example, works fine:
int __stdcall GetStringA(char *lpText)
{
...
-1
votes
0
answers
30
views
inno setup Download multiple files based on the tasks selected
i'm trying to download sql server express and management studio to install before my program and based on tasks selected.
this is my code:
[Tasks]
Name: "SQL2019"; Description: "SQl ...
3
votes
0
answers
48
views
Inno Setup: Iterate/Enumerate through Firewall Rules / IEnumVariant
I have a similar question like Daniel Rogers about how to declare an IEnumVariant in Inno Setup.
Declare an OleVariant and IEnumVariant in Inno Setup
I'm writing some extra functionality for our setup,...
2
votes
0
answers
29
views
How to detect Touch Screen display with Inno setup?
How to detect if Touch Screen display is available with Innosetup script?
Is the best method to use GetSystemMetrics(MAXTOUCHES_INDEX) ?
0
votes
0
answers
35
views
How to detect Update vs. New Installation with InnoSetup? [duplicate]
I need to install a specific file only if the user does a new installation.
If the user does an update of an existing installation, the file should not be installed.
Is this possible with InnoSetup?
...
1
vote
1
answer
35
views
INNO RestartReplace does not Recognise {app} with UNC
I have an application that is on a network Drive. I have a DLL that needs to be unregistered, updated and reregistered. I understand that the DLL will be in use so have the RestartReplace option:
; ...
2
votes
1
answer
49
views
Find path to a program (sqlcmd) installed by child subinstaller of Inno Setup
In my scenario I need to run .sql script at the end of my setup with sqlcmd.exe. But each version of SQL Server uses different paths for sqlcmd.
I'm trying some solutions to use sqlcmd but none work.
...
0
votes
2
answers
58
views
DLL's being changed when plugging USB device into computer?
I currently have a device utilizing the libusb0.dll file, I use inno script to install the dll's into their respective folders, the 32bit version into the syswow64 and the 64bit version into the ...
2
votes
1
answer
37
views
Make a selection which desktop shortcut icons to create in Inno Setup
I want to make a section in my Inno Setup where the user can choose which desktop shortcuts to create. Because I plan to have 4 shortcuts, but they are not all required to work. I want a user to ...
1
vote
1
answer
42
views
Inno Setup: Disable desktop icon and autostart entry via command line parameter
I'm creating an desktop icon and an autostart entry with an Inno Setup script like this:
[Icons]
Name: "{commonstartup}\abc"; Filename: "{app}\xyz.exe"; WorkingDir: "{app}&...
7
votes
0
answers
38
views
Trying to use MSVC to attach to Inno-Setup process to debug a DLL
I'm happy with the Pascal script I have in Inno Setup. My setup script calls some entry points in a DLL I wrote in C++ using MSVC 2010. I'm trying to use the MSVC debugger to step thru my C++ code in ...
0
votes
0
answers
49
views
Running a 32bit Installer with a 64bit operating system (windows) [duplicate]
I have an executable (setup.exe) that is being created using inno studio. for the executable to run I have to install a certain dll, which is libusb0.dll. If the system is a 64 bit I have the 64 bit ...
0
votes
1
answer
52
views
What is the correct syntax for signing Inno Setup files?
I am trying to sign my Inno Setup file. I get an exit error 0x1 ?? Here is the line I am using to configure the sign tool in Inno:
"c:\Digital certificate\signtool.exe" sign/a/t http://...
0
votes
1
answer
50
views
Add a picture button and a label on welcome page in Inno Setup [duplicate]
I would like to understand how can I add a button on the welcome page, that once clicked it will open a specific website on the default web-browser.
I just would like to display a kind of picture ...
1
vote
0
answers
24
views
Cover a check box in the image to require a code for its selection
I'm trying to create something like this:
I want the check box to be hidden behind the lock image, and clicking on it will open a form requesting code entry, and if the code is correct the image will ...
2
votes
1
answer
158
views
Setting SetupIconFile to certain icon changes also icon on Destination Location and Start Menu pages
I would like to know if it is possible to replace, or change, the icon that appears on various pages of Inno Setup install routine (eg: Select Destination Location, Select Start Menu Folder,...), when ...
0
votes
0
answers
24
views
Need to replace characters in string InnoSetup [duplicate]
Our company just switched to InnoSetup and i don't know how to pass data to/from variables in InnoSetup Pascal Script.
I read the manual and wrote a function that turns versions like '0.5.0.2' to '0.5....
2
votes
1
answer
55
views
How to continue download on error in Inno Setup?
My Inno Setup script downloads some resources using built-in functionalities.
It creates Download Wizard Page:
DownloadPage := CreateDownloadPage(SetupMessage(msgWizardPreparing), SetupMessage(...
0
votes
1
answer
57
views
Allow specific software versions using Inno Setup
Im currently try to understand Inno Setup and Delphi.
The setup should only allow specific patches depending on the already installed software.
My setup has three patches:
Patch1: 1.0 - 2.0
Patch2: ...
0
votes
0
answers
33
views
Adding right-click menu items to shortcut with InnoSetup
Is it possible with InnoSetup to add additional right-click menu options for a specific shortcut?
Say my shortcut has a target of "%localappdata%/Programs/MyApp/app.exe" that is run on ...
0
votes
1
answer
27
views
Inno Setup Using Variable in [icon] and [Registry] [duplicate]
I am new to Inno Setup.
I have defined a few global variables in the [code] section.
I want to make use of it in [icons], [Files], and [Registry]
My start menu would depend on a few conditions. To ...
1
vote
2
answers
63
views
Database password complexity verification in Inno Setup
In my setup I need to install SQL server with SA password passed from InputQueryPage.
I need to limit password input based on Windows password complexity. The password need to be at least 9 characters ...
-1
votes
1
answer
52
views
`could not call proc` error when running Inno Setup script
When I ran the following inno setup script, I got the following runtime error: could not call proc.
[Setup]
AppName=AppName
AppVersion=1.0
SetupIconFile=icon.ico
UninstallDisplayIcon=icon.ico
...
2
votes
1
answer
43
views
Read installer version from an .ini file stored in the same directory in Inno Setup
I want to distribute the compiled installer with a separate INI file. The setup will load configurations (e.g. a version) from an INI file supplied to that particular client.
I have a ver.ini file in ...
2
votes
1
answer
48
views
How to get battery data in Inno Setup?
I understand it should be similar to the following code:
[Code]
type
TSystemPowerStatus = {???};
function GetBattery(SYSTEM_POWER_STATUS: TSystemPowerStatus): Boolean;
external '...
0
votes
1
answer
32
views
Inno Setup: How do you prevent user from selecting "root" group?
How do I prevent a user from selecting the group to be the root of the start menu so that the group has to go to its own folder?
Thanks.
1
vote
1
answer
60
views
Inno Setup: RegQueryStringValue isn't working
Using Inno Setup, I'm trying to check to see if the .NET 4.8 runtime is installed on a Windows computer. If it is not installed, I run the .NET 4.8 runtime installer exe file. According to Microsoft, ...
2
votes
1
answer
64
views
How do you tell Inno Setup when installing multi-language shortcuts to get rid of the other language?
I have Inno Setup with multi-language configured and have custom messages. Some of those are used for creating the shortcuts. However, if I reinstall and choose a different language, the old ...
3
votes
0
answers
75
views
Using the WinAPI AnimateWindow function in the inno setup installer
I'm trying to add an exit animation to my installer window.
I used WinAPI's AnimateWindow function for this purpose.
My code is as follows:
[Code]
function AnimateWindow(hWnd: Integer; dwTime, dwFlags:...