How to get an output of an Exec’ed program in Inno Setup?

Yes, use redirection of the standard output to a file: [Code] function NextButtonClick(CurPage: Integer): Boolean; var TmpFileName, ExecStdout: string; ResultCode: integer; begin if CurPage = wpWelcome then begin TmpFileName := ExpandConstant(‘{tmp}’) + ‘\ipconfig_results.txt’; Exec(‘cmd.exe’, ‘/C ipconfig /ALL > “‘ + TmpFileName + ‘”‘, ”, SW_HIDE, ewWaitUntilTerminated, ResultCode); if LoadStringFromFile(TmpFileName, ExecStdout) then begin MsgBox(ExecStdout, mbInformation, MB_OK); … 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}