inno-setup

How can I store a COM object in Inno Setup's TNewComboBox.Objects property?

I'm using Inno Setup to create an installer for my application. I'm currently filling a combobox (TNewComboBox) with the names of the Web sites on the current machine's IIS install. Now what I really want to do is store the COM object alongside the string in the objects property of the combo but keep getting type mismatch errors, even ...

How can I set the exit code of uninstallation in Inno-Setup?

I would like to set the exit code for my uninstallation in Inno Setup. By doing this I want the Inno Setup to show some sort of "uninstallation failed" dialog box to the user. I know that defining custom exit code for installation can be done via GetCustomSetupExitCode function. Is it possible to notify Inno Setup that the custom unins...

Can InnoSetup respond differently to a new install and an update?

My InnoSetup script opens a web page (with the user's default browser) at the end of the install process: [Run] Filename: http://example.com; Flags: shellexec However, I'd like the web page to not be opened if the app already exists, i.e., if the user is installing a new version of the program. The web page should only be opened after...

Inno Setup: Add a Custom Input Field

Hello all, I am making use of Inno Setup (its amazing!). I was hoping to customise the installer so that I can accept a string from the user in the form of an input field and maybe add a message to it. How can I do this? I had a look through the docs, google search and not much came up! Thanks all for any help ...

What value should I use for OnlyBelowVersion in InnoSetup for Windows 2000 only?

I want to use OnlyBelowVersion to install the sc.exe program if the Windows version is 2000 and not at all for Windows NT and below. What is the only below version required for Windows 2000 only, ie what is the minimum windows XP or Windows 2003 string? ...

How do I have Inno Setup update multiple locations?

I have an application that uses Inno Setup as its installer. I am now writing an updater using Inno Setup to apply some updates to various installed locations. This application can be installed on removable flash drives as a portable app and I would like to be able to roll out the updates across several drives/locations/directories for ...

Shareware vb.net application packed using innosetup, installed in different directories creates 2 different set of application.

I have created an shareware application using vb.net visual studio 2008 for windows desktop, and packaged it using innosetup 5.3.8. The problem is when i have installed the application in C:\Program Files\Application and it runs successfully(use trial period of the application), Im also able to install the application once again freshly ...

Inno setup global install with user-specific settings?

Hi folks, Inno setup question here... I'm making a program which should be installed globally for all users, but where each user has his own specific settings for the program, which should definitely not be shared. To pull this off in a way which works well in Windows 7, I made the program itself create a folder under {userappdata} to s...

deploy word addin created with vsto using inno setup

Hi, I created an addin for MS Word using VSTO 3.0, and now I want to deploy it using Inno Setup so I wonder if anyone can point me to a good tutorial, or a good piece of documentation that can help me to achieve this. Thanks. ...

How do I modify the PATH environment variable when running and Inno Setup Installer?

Inno Setup lets you set environment variables via the [Registry] sections (by setting registry key corresponding to environment variable) However, sometimes you dont just wanna set an environment variable. Often, you wanna modify it. For example: upon installation one may want to add/remove a directory to/from the PATH environment varia...

Inno Setup: How do i see the output (translation) of the Inno Setup Preprocessor?

I have an Inno Setup script with preprocessor directives (#defines, #ifs, etc.) I want to run the Inno Setup preprocess on my script and see the preprocessor's output (translation in Inno-Setup-speak). That is, I want to look at the result of the preprocessor which it normally feeds into the Inno Setup Compiler, where all the references...

vb6 with inno setup... help me please

My name Andika I create software that is associated with the processing of payments and purchases of pulses. I create software using VB6, sqlite2009 for Inno to create the database and its set-up. I created a program called 'IZ' story short, if a user installs my program in the registry window will then make a folder in called "PCclient"...

How to update the InnoSetup Wizard GUI status text from PascalScript code during uninstall

Hi During installation, it's possible to update the InnoSetup wizard status text from inside the PascalScript event handler "CurStepChanged(ssPostInstall)" with the following code (http://stackoverflow.com/questions/2514107): WizardForm.StatusLabel.Caption := 'status update'; This does not work for uninstall. Accessing this property ...

Inno setup to add an entry in hosts file under windows 7

Hi, Can anyone help me with a inno setup sample script showing how to add an entry to windows 7 hosts file? Thanks ...

Inno-Setup ask once install two times

Using InnoSetup I want to prompt a user if they wish to install an additional piece of software - think of it as a plug-in. My issue is that the additional software package I wish to install is broken up into two MSI files. I want to only prompt the user once to install the package but have each file in the [Run] section check the same v...

How to change mouse cursor inside Inno setup?

Hi, I created a setup using Inno installer, during the setup, I made some lengthly operations to check certain values over the system (registry keys, some files...) and during that time no interface is displayed to the user, I do all of this inside InitializeSetup function. What I would like to know is if I can change the mouse pointe...

Inno Setup: How to create password wizard page only if component "X" selected

Hi! Can anyone help me to protect a selection group or component. For examples If ('Readme.txt').selected or ('compact').selected = True then begin "Password wizard page"; else result := true; end; Something like that to this working script :P function CheckPassword(Password: String): Boolean; begin result := false; if (Password=...

How to run a file before setup with Inno Setup

Hi! Is it possible to run a file with Inno Setup, before the setup beginns? Documentation ...

Get [Messages] values in InnoSetup's language file

I know I can easily get messages inside [CustomMessages] AdditionalIcons=blablabla using this code: ExpandConstant('{cm:AdditionalIcons}'); which gets the AdditionalIcons string message. However, how can I get messages inside this? [Messages] ButtonNext=huhu ButtonInstall=bubu What I need is to get the ButtonNext, ButtonInstall ...

Close running version of program before installing update (Inno Setup)

This should be simple, I need to stop any previous version of my program from running when the installer starts. Most people suggested making an exe which does this and calling it before Inno Setup starts. I careated an exe using AutoIt which kills all processes of my program. The problem is I don't know how to get InnoSetup to call ...