Inno Setup: Verify that .NET 4.0 is installed

The InitializeSetup function is called when the Inno Setup executable is run. Inserting this code for a custom script should do what you want: function IsDotNetDetected(version: string; service: cardinal): boolean; // Indicates whether the specified version and service pack of the .NET Framework is installed. // // version — Specify one of these strings for … Read more

Inno-setup 32bit and 64bit in one

It is possible. Take a look at the 64BitTwoArch.iss sample (especially the Is64BitInstallMode boolean): ; — 64BitTwoArch.iss — ; Demonstrates how to install a program built for two different ; architectures (x86 and x64) using a single installer. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES! [Setup] AppName=My Program AppVersion=1.5 DefaultDirName={pf}\My Program … Read more

Is the Verisign Timestamp server down? [closed]

I received an official response from Verisign this afternoon (on 2 Jan 2021): Thank you for contacting Verisign Support. This server was deprecated after our authentication services were sold to Symantec, which is now Digicert. You can find a list of free timestamp servers online or theirs is now at http://timestamp.digicert.com. If you have additional … Read more

Inno Setup: pack folder with all subfolders

Yes, there is. Simply include the recursesubdirs flag to your [Files] section entry. The help says about this flag the following: Instructs the compiler or Setup to also search for the Source filename/wildcard in subdirectories under the Source directory. So, all you should do is modify your [Files] section entry this way: [Files] Source: “..\Tcl\*”; … Read more

How do I automatically set the version of my Inno Setup installer according to my application version?

You can use the Inno Setup Preprocessor GetVersionNumbersString function like this #define ApplicationName ‘Application Name’ #define ApplicationVersion GetVersionNumbersString(‘Application.exe’) [Setup] AppName={#ApplicationName} AppVerName={#ApplicationName} {#ApplicationVersion} VersionInfoVersion={#ApplicationVersion}

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

The path in the registry key you gave is a value of type REG_EXPAND_SZ. As the Inno Setup documentation for the [Registry] section states there is a way to append elements to those: On a string, expandsz, or multisz type value, you may use a special constant called {olddata} in this parameter. {olddata} is replaced … Read more

Inno Setup: How to automatically uninstall previous installed version?

I have used the following. I’m not sure it’s the simplest way to do it but it works. This uses {#emit SetupSetting(“AppId”)} which relies on the Inno Setup Preprocessor. If you don’t use that, cut-and-paste your App ID in directly. [Code] { ///////////////////////////////////////////////////////////////////// } function GetUninstallString(): String; var sUnInstPath: String; sUnInstallString: String; begin sUnInstPath := … Read more

How do I fix maven error The JAVA_HOME environment variable is not defined correctly?

Following is the best way to get of the issue , check following on classpath: Make sure JAVA_HOME system variable must have till jdk e.g C:\Program Files\Java\jdk1.7.0_80 , don’t append bin here. Because MAVEN will look for jre which is under C:\Program Files\Java\jdk1.7.0_80 Set %JAVA_HOME%\bin in classpath . Then try Maven version . Hope it … Read more

Inno Setup for Windows service?

You don’t need installutil.exe and probably you don’t even have rights to redistribute it. Here is the way I’m doing it in my application: using System; using System.Collections.Generic; using System.Configuration.Install; using System.IO; using System.Linq; using System.Reflection; using System.ServiceProcess; using System.Text; static void Main(string[] args) { if (System.Environment.UserInteractive) { string parameter = string.Concat(args); switch (parameter) { … Read more