inno-setup

How to convert a string version value to a numerical value in Inno Setup Scripts?

I want to develop a setup package for conditionally upgrading an existing package. I want to check the existing software version against to-be-installed version. In order to do that, I have to compare the version strings. How can I convert the string value to a numerical value in a Inno setup script? RegQueryStringValue(HKEY_LOCAL_MACH...

How to force Inno Setup setup to fail when Run command fails?

I have some commands in the [Run] section of my Inno Setup script. Right now, if any of them returns a failure code (non-zero return value), the setup continues without any warning to the user. The desired behavior is to have the setup fail and roll back. How do I enable this? I couldn't find any flag for the Run entry that would for...

How to get the output of an exec'ed program in Inno Setup?

Is it possible to get the output of an exec'ed executable. I want to show the user a info query page but show the default value of mac address in the input box. Is there any other way to reach the same goal? ...

Check for update (compare remote XML file with a local variable)

I have an InnoSetup for my C# application. And I'd like the setup to check for updates before installing (to make sure the user always gets the latest version). To do this, I need a bit of C++ code to parse an xml file from a remote location (which contains a version string) and have a method return it. From InnoSetup I can call the DLL...

How to install multiple "sites" on one system with Inno Setup, AND uninstall only a specific one?

I am deploying a package which sets up an instance of SQL Server 2008 and an IIS virtual dir. It makes sense that a user might want to install multiple instances of this program on the same system. I know that I can use GetPreviousData() in uninstall to get the last installed instance, and uninstall that one. However, it seems like th...

Add text to 'Ready Page' in Inno Setup

I added few custom pages to my Installer. These pages gather some data from user and disk, and I'd like to show this data to user before final installation step starts. Inno Setup has 'Ready to Install' page exactly for this purpose. How can I add text to this page? By default it shows to me: Destination location: C:\Program Files\My...

Unable to register the DLL/OCX: RegSvr32 failed with exit code 0xC0000005 with Inno Setup 5.2.3

I am trying to register a COM DLL using Inno Setup in a setup package I created. During test installations on Vista, I get this error: Unable to register the DLL/OCX: RegSvr32 failed with exit code 0xC0000005 I click "Ignore" and my application appears to install, but I have to then open a command prompt (as an administrator) and ...

Check Java is present before installing

I'm creating an InnoSetup installer for a jar app. What I want to do right now is to check if java is present before proceeding with the install. So I only need to be sure the users will be able to run: java -jar my-app.jar What I'm doing right now is: [Code] function InitializeSetup(): Boolean; var ErrorCode: Integer; JavaInsta...

How to change defaultdirname parameter just before Install in Inno Setup?

I want to change defaultdirname parameter in ssInstall part. How can I do that? Is there a function for setting [Setup] parameters. ...

Firebird custom installation

Hello, I want to deploy a firebird installation, and thus will launch it from my installer using command-line parameters. I read Inno Setup's documentation but still can't get it to work. I just want to install a "Super server" with no documentation or whatsoever. Here's what I have so far Firebird-2.1.2.18118_0_Win32.exe /sp- /silent...

Create new GUID in InnoSetup

Is there any way to generate a new GUID from inside an INNO Installer script? I'm not after a new AppId, just want to get some GUID text. Regards Tris ...

Uninstalling files not originally installed by INNO setup

I use Inno Setup for my product's installer/uninstaller. My software has auto-update capabilities during which time it may not only change existing binaries but may also add new ones. These are additional product files that are placed into the product's installation directory - not data files. The Inno Setup uninstaller only knows to un...

How do I conditionally import a function from a DLL in an Inno Setup script?

I have a helper DLL and a function I call at the end of my setup script. I only want to run it depending on the operating system version. I include the following lines in the code section: function CompleteInstall(szInstallPath: String) : Integer; external 'CompleteInstall@files:InstallHelper.dll cdecl setuponly'; I've written a fu...

How to remove a desktop shortcut by Innosetup

How can I remove a desktop shortcut by Innosetup? It's created by previous version and not needed anymore. I tried delete it in [InstallDelete] [InstallDelete] Type: files; Name: {userdesktop}\Shortcut Name and delete the file in "ssInstall" of CurStepChanged event handler DeleteFile(ExpandConstant('{userdesktop}\Shortcut Name')); ...

Can I read AssemblyFile information in Inno Setup

I would like to read these three values from my application.exe in my Inno Setup script. [assembly: AssemblyCompany("My Company")] [assembly: AssemblyProduct("My Great Application")] [assembly: AssemblyFileVersion("9.3.2")] Does anyone know how this might be accomplished? I know I can get the last one using GetFileVersion("path/to/gr...

Windows Limited User Installation

I have a Win32 application that includes an EXE, an ActiveX control (DLL) and a COM server (EXE) and I am using Inno Setup 5 to build my installer. Many of our customers use limited user accounts where the user has no admin rights and because the COM components require to be registered (which writes to HKEY_CLASSES_ROOT), my setup file ...

How to fix Inno Setup error EndUpdateResource failed (110)

When compiling an Inno Setup installer script I get this error Line: xx Resource update error: EndUpdateResource failed (110) line xx contains SetupIconFile= pathToIconFile What causes the error and how can I fix it? ...

Inno Setup: Uninstall Dll Server

Greetings, With my app I install a Dll server for the Windows shell. The server is registered and unregistered properly by Inno by using the flag "regserver". However if any explorer windows are open the dll is in use and cannot be deteled by Inno. How can I delete the dll automatically and uninstall the app properly? Regards, Cosmin ...

Check if Office update is installed on the PC

How can I check whether an Office update is already installed on the PC or not, using Inno Setup? I need to know if this update is installed: http://www.microsoft.com/downloads/details.aspx?FamilyID=1B0BFB35-C252-43CC-8A2A-6A64D6AC4670&displaylang=en ...

Installing support files for app using sql 2005 where server is on another computer.

I have a managed C++ application that connects to SQL Server 2005 Express databases on the same computer and over a network. My problem is that if the database is located on another computer over the network, the client machine will not have the needed DLLs files installed from SQL Server. I can't force my users to install SQL Server 20...