Questions tagged [inno-setup]

Inno Setup is a tool to create setup programs with an embedded Pascal-derived scripting language.

Filter by
Sorted by
Tagged with
1 vote
1 answer
45 views

Inno Setup - Automatically uninstall old version before installing new version - Path Issue

I am trying to utilize the installer to automatically uninstall an old version before installing the new version of the software. I did find the following solution somwhere, unfortunately this only ...
Tumas04's user avatar
  • 13
1 vote
0 answers
38 views

Inno Setup: Keep position of desktop icon

Is there a way to persuade Inno Setup that after an "update" (full setup incl. uninstall of former version) the desktop icon gets its former position? I hoped that I can start the uninstall ...
Jens's user avatar
  • 357
-1 votes
0 answers
27 views

How do you set the icon of the installed application in Inno Setup [closed]

My application does not have an icon. My desktop shortcut start menu shortcut both have icons. I have tried looking through other answers but these mostly answer the lack of icons for desktop and ...
blzy's user avatar
  • 1
1 vote
1 answer
31 views

Inno Setup: How to read the value of checkbox in postinstall

I have added a checkbox in postinstall: [Run] Filename: {sys}\sc.exe; Description: "This is checkbox"; Flags: postinstall shellexec runasoriginaluser unchecked I want to trigger a function ...
Miha Bogataj's user avatar
2 votes
0 answers
51 views

Correct usage of Variant type in Inno Setup function

How do I correctly use the Variant type (Here: msxml MSXML2.DOMDocument.6.0)? Consider those two functions. The second one fails with an access violation exception if called twice: function ...
TomB's user avatar
  • 681
0 votes
2 answers
55 views

Set folder permissions to `IIS_IUSRS` group in Inno Setup

My web application is accessing some folders outside of wwwroot and thus needs access to them. The web application is installed via Inno Setup. How can I use Inno Setup's folder permissions to grant ...
Achim Stuy's user avatar
1 vote
1 answer
35 views

Why SW_HIDE does not hide console window during Inno Setup compilation?

Pre-processor instruction: #expr Exec( \ "powershell", "-ExecutionPolicy Bypass -File UpdateDatabaseVersionInfo.ps1", \ SourcePath, SW_HIDE) It works fine. But it shows a ...
Andrew Truckle's user avatar
2 votes
1 answer
42 views

Large Inno Setup installer with compressed data outside the installer binary

I've made a large installer (around 5GB) and it works fine, however since the main installer is very big it tends to take a while between double clicking it and actually getting the installer window. ...
TCB13's user avatar
  • 3,099
0 votes
1 answer
81 views

Can we automatically create a XML database during compilation with Inno Setup?

I have a very simple support installer that updates several XML databases with new versions: [Files] Source: "MSA_PublicTalks_???.xml"; DestDir: "{param:InstallPath}"; Flags: ...
Andrew Truckle's user avatar
0 votes
0 answers
23 views

How to set the WizardForm size to fit the image size and even more? [duplicate]

I want to be able at runtime to change the wizardform to any size with the mouse but when I drag the mouse left right up down at some point it stops at some size and the image inside is in its ...
Daniel Lip's user avatar
0 votes
0 answers
42 views

How do I check if the install mode is admin or not and use that information for adding registry keys at different locations (Inno setup)? [duplicate]

I am an extreme beginner in Inno Setup (Pascal scripting). I am on Windows and using Inno Setup and I am trying to edit a registry value (environment variable PATH) so that the user can start my ...
who's user avatar
  • 39
2 votes
2 answers
82 views

Inno Setup compiler throws error "is ('=') expected" on constant array declaration

I am experiencing a compiler error saying: Line 70: Column: 19 is ('=') expected What did I do wrong? [Code] // Define the allowed passwords const allowedPasswords: array[0..1] of string = ('...
tmighty's user avatar
  • 10.9k
-1 votes
1 answer
43 views

Run powershell script or whitelist installation directory before installing in inno setup

I'm using inno setup where user can choose the directory to install the software.exe. But currently halfway through the installation, Windows Defender would delete/quarantine the exe file as it think ...
John Titor's user avatar
0 votes
0 answers
24 views

Inno script for copying files

Inno procedure to copy one folder from one place to other by taking source file by prompt to user and destination in code itself I tried filecopy function and everything nothing worked out
Vishnu kumar's user avatar
1 vote
1 answer
65 views

Setup run as administrator requires administrator to uninstall

I have an installer that installs to the local user. It does not need administrator. Now let's say that I have to run the installer as administrator for some reason (right click, Run As Administrator) ...
Enderbyte09's user avatar
0 votes
1 answer
108 views

Inno Setup 5: How to manually invoke administrative install mode in [Code] section?

Circumstances: Hello everyone, I using Inno Setup 5.5.6(u) to create my setups. It has to be version 5.x to support some older OS. By default the UAC requests elevation and if clicked "No" ...
Dragodraki's user avatar
0 votes
1 answer
70 views

Unable to sign my software with Inno Setup

I have seen other questions but I am still struggling. I had to re-install Windows 11 and trying to configure signing again. In Inno Setup: SignTool "C:\Program Files (x86)\Windows Kits\10\bin\10....
Andrew Truckle's user avatar
-1 votes
0 answers
33 views

SaveStringToFile() saving provided string in file if system locale is English(united state) but in case of japaneese(japan) it is showing diff string [duplicate]

If i have system locale setting English (United States) then SaveStringToFile() which suppose to add string in provided file. i am adding Japanese string into the file by SaveStringToFile() function ...
Amol Mulge's user avatar
3 votes
1 answer
59 views

WinHttp.WinHttpRequest.send displays runtime error popup

I'm using a WinHttp.WinHttpRequest OLE object to do some networking from the PascalScript section of an Inno Setup installer. Minimum (simplified but complete) repro: function HttpGet(url: string): ...
Petter Hesselberg's user avatar
2 votes
1 answer
26 views

Inno Setup 'Close' button in titlebar doesn't work when 'Cancel' button is not visible

I removed Cancel button this way: procedure CurPageChanged(CurPageID: Integer); begin WizardForm.CancelButton.Visible := False; end But it also broke the close functionality of installer - 'Close' ...
qloq's user avatar
  • 735
0 votes
0 answers
27 views

Extract arc file with inno setup [duplicate]

I have 3 .arc files and I replaced these files with .bin. And I put arc.exe in the location to run the Arc console. Can you write a code to extract these 3 files using arc.exe? Basically a code like ...
Çurli Burli's user avatar
0 votes
1 answer
49 views

Cannot run couchDB msi installer from Inno Setup

I have some software I install for my company. The software works fine, but it needs to connect to CouchDB to actually function. So I am trying to make an installer that installs .NET 3.5, then ...
John Deacon's user avatar
2 votes
2 answers
64 views

Inno Setup installation in "All users" mode still requires Admin privileges for the non-Admin user when trying to execute the installed software

I am facing the following problem with my packaged software using Inno Setup. I am using the following option to allow the user to choose installation for all or the current user. ...
Kostas Markakis's user avatar
0 votes
1 answer
30 views

Showing custom page depending on task in Inno Setup

Let's say I have this tasks in Inno Setup: And this custom page that is showed after the tasks page: How can I show the custom page only if one specific task is selected? Let's say G1 OPT3, for ...
Mazinger's user avatar
  • 653
1 vote
2 answers
70 views

Inno Setup ExtractTemporaryFiles to specific directory

I'm new to Inno Setup, but I want to write some files to the temp directory temporarily, but in a directory structure: tmp\App.exe tmp\lic\readme.txt tmp\cfg\configfile.txt Code below is only for the ...
Mear1628's user avatar
0 votes
0 answers
33 views

prevent adding child component size to parent component size in wpSelectComponents

I've a component (SQL server LocalDB) and a child component (VC++ 2015-2022), both with specific ExtraDiskSpaceRequired. The problem is the child component's size is added to parent component's size ...
pburgr's user avatar
  • 1,730
1 vote
1 answer
88 views

Open application on top of web page with Inno Setup

When user clicks on Finish button, a webpage will open along with the software exe. But the issue is that the web page will always remain on top. In Run section: Filename: "{app}\abc.exe"; ...
Rohit Arora's user avatar
0 votes
1 answer
33 views

How do I delete a folder and its files and subfolders and subfolders' files recursively?

How can I delete the folder {app}\manuals in Inno Setup during installation including all of its files and subfolders recursively?
tmighty's user avatar
  • 10.9k
2 votes
2 answers
174 views

How can I create a signed uninstaller with InnoSetup (ISCC.exe) and DigiCert's smctl.exe?

I use smctl.exe to sign a desktop application on our build server. I call execute iscc.exe with my *.iss file including /S parameter like this: /Dsigning=true /Dbuildworkingdir=${bamboo.build.working....
ebiondi's user avatar
  • 45
1 vote
1 answer
39 views

How to remove required disk space/size information from Inno Setup components?

I would like to hide the column that shows required disk space. How to achieve this? I tried to google for this problem, but found nothing. Not sure if it's even possible.
Jerry Zoden's user avatar
1 vote
0 answers
28 views

path name too long in tmp location of installer

My Installer contains some documentation crawled from a website. The resulting folder structure is quite extensive and so it now happened that a particular path and file went over the 260 character ...
Markus Heckmann's user avatar
1 vote
1 answer
87 views

Modify Inno Setup Run section flags according to selected installation type

I have a Run section: [Run] Filename: "{app}\myapp.exe"; Description: {cm:RunNow}; \ Flags: postinstall nowait runascurrentuser; Check: TypeIsCompact; Filename: "{app}\myapp.exe&...
pburgr's user avatar
  • 1,730
1 vote
1 answer
66 views

How can I form an Inno Setup OutputBaseFilename that includes UTC time

I'm trying to build an output filename that includes UTC time rather than local time. I start with this... #define MyDateTimeString GetDateTimeString('yyyy/mm/dd/hh', '-', ':') Then I have this... ...
user2191367's user avatar
0 votes
1 answer
34 views

File association to execute an application from specific directory with Inno Setup

am trying to make an association for my application, but since my application has some relative path to work correctly am having a problem with normal configuration. [Registry] Root: HKA; Subkey: &...
Uncle Bob's user avatar
  • 155
0 votes
1 answer
71 views

Changing web.config containing namespace in configuration tag with Inno Setup [duplicate]

I would like to set a new attribute for a node in a web.config file with installation package created with Inno Setup. To set this attribute I'm using procedure SaveAttributeValueToXML. My web.config -...
Markku Rintala's user avatar
2 votes
0 answers
40 views

Can't detect the reg key though the reg key exists [duplicate]

all: I'd like to check reg key in Inno Setup script. Though the reg key (HKEY_LOCAL_MACHINE\SOFTWARE\7-Zip) exist, the script can't detect it. But if I use the reg key (HKEY_LOCAL_MACHINE\SOFTWARE\...
ChenZX's user avatar
  • 457
2 votes
1 answer
58 views

How to append new content in existing text file in Inno Setup

I have enabled the installation log in Inno Setup using SetupLogging = yes. It is creating a log file temp directory and I'm copying that log to my program data: procedure DeinitializeSetup(); var ...
manoj's user avatar
  • 47
0 votes
1 answer
37 views

Executing multiple uninstallers with a single master uninstaller

I have a master installer created using Inno Setup that executes a bunch of installers. Each installed app has its own uninstaller, and there is also an uninstaller created from the master installer. ...
pfinferno's user avatar
  • 1,861
1 vote
1 answer
40 views

How to always install app in a nested folder

Using Inno Setup, I made an installer for a simple app. Here's what I want to do: I want to always put the installed app in a specified folder inside of whatever directory the user selects (or doesn't ...
pfinferno's user avatar
  • 1,861
2 votes
1 answer
113 views

How to abort an installation, when replacing files would require a restart?

I have an application that runs a scheduled windows task to check for and install updates. During testing, I managed to break my setup the following way: As user, create a file lock on one of the ...
T3 H40's user avatar
  • 2,346
1 vote
1 answer
36 views

Inno Setup having multiple UpdateReadyMemo events

I'm using Inno Setup 6.2. I need to add a custom contents to "Ready to Install" page. For that I'm using function UpdateReadyMemo(Space, NewLine, MemoUserInfoInfo, MemoDirInfo, MemoTypeInfo, ...
TomB's user avatar
  • 681
0 votes
0 answers
40 views

Equivalent of PyInstaller for R scripts? [duplicate]

My team is supposed to create an executable file (EXE) from an original code written in R. In Python, PyIntaller offers the possibility to make a stand-alone application from a .py script. Is there ...
Andrei Niță's user avatar
1 vote
1 answer
147 views

Create a button on Inno Setup custom wizard page to interrupt an program executed from the installer

I am creating a setup package using Inno Setup to run my cmd script. Using the articles available on Stack Overflow, I have managed to create a custom page that displays the output of the script on ...
Aslam Khan's user avatar
0 votes
0 answers
43 views

Using Marquee ProgressBar in installation preparation

is it somehow possible on the WizardForm.PreparingPage to display a ProgressBar in Marquee style? We have the problem with one of our setups that the preparing process takes quite a long time (~ 15-20 ...
iTz_ElKay's user avatar
0 votes
1 answer
175 views

Environment Variable Set Successfully but Not Updating After Setting in Inno Setup Script [duplicate]

Hello Stack Overflow community, I'm facing an issue with an Inno Setup script and need some assistance. During the installation of an executable (Exe), I'm required to set up an environment variable ...
Harsh Patel's user avatar
  • 1,142
0 votes
0 answers
24 views

Inno Setup uninstaller always freeze after execute Windows Service Manager to remove a service [duplicate]

I'm trying to remove a service of my program when the uninstall is executed, I'm using the UninstallRun section, the problem happens after Inno execute the service control process, that hangs my ...
cYeR's user avatar
  • 155
1 vote
1 answer
168 views

How to bundle multiple installers into a single installer?

I have multiple unrelated WPF and Winforms applications that I need to give to users. Typically, there is one installer per application. However, they want a just a single file they can run to install ...
pfinferno's user avatar
  • 1,861
0 votes
2 answers
82 views

Qt/C++ – How to differentiate between closing main window from an external app and clicking close button click from title bar?

I currently have a QMessageBox appear on exiting from MainWindow, asksing "Are you sure?". While updating the app through InnoSetup installer file, the installer tries to close the ...
Bharath Ram's user avatar
0 votes
1 answer
37 views

How Inno Setup Detects OpenGL Version

function LoadLibraryEx(lpLibFileName: string; hFile: THandle; dwFlags: DWORD): THandle; external 'LoadLibraryEx{#AW}@kernel32.dll stdcall'; function GetProcAddress(hModule: THandle; lpProcName: ...
eular's user avatar
  • 1
0 votes
0 answers
39 views

Add screen to installation process with InnoSetup [duplicate]

I used InstallShield to create installations until now, but I no longer have license for it, therefore I looked for a free alternative and found InnoSetup. I wrote an .iss file script based on a ...
asaf's user avatar
  • 21

1
2 3 4 5
97