by

Inno Setup Check Windows Version

Inno Setup Check Windows Version Average ratng: 4,2/5 6886 reviews
Active6 months ago

Inno Setup is one of the best free tools for creating application installers. If you are a software programmer, this program is a must have. Inno Setup supports all Windows versions and allows you to create an EXE file that contains all of your application's files, which will be displayed in an interface with a great design. I need a good code sample for Inno SetUp' Which would detect user's machine OS version Screen Resolution And exit installation if: OS is other than Windows 9x or later Screen. Apr 07, 2016  Inno Setup is one of the best free tools for creating application installers. If you are a software programmer, this program is a must have. Inno Setup supports all Windows versions and allows you to create an EXE file that contains all of your application's files, which will be displayed in an interface with a great design. Introducing Inno Setup Unlike Windows Installer, Inno Setup is a fast, lightweight installation tool. Rather than using a proprietary database for installation settings, it uses script files, which are just text files similar in structure to INI files. Although most. Inno Setup is a free installer for Windows programs. First introduced in 1997, Inno Setup today rivals and even surpasses many commercial installers in feature set and stability. We don't have any change log information yet for version 5.6.1 of Inno Setup. Sometimes publishers take a little while to.

I'm using Inno Setup to change the recycle bin in the OS. I need to make some cases for if the user is running Windows 7 or Windows XP. I try using:

But it seems like it can't find imageres.dll or shell32.dll even though I've verified they exist. What am I doing wrong? Or can I check the Windows version another way?

Martin Prikryl
103k27 gold badges214 silver badges454 bronze badges

May 28, 2019  The 6.0.2 version of Inno Setup is provided as a free download on our software library. This free program is a product of Jordan Russell. Our antivirus scan shows that this download is malware free. The program is included in Development Tools. Jul 17, 2015  First you need to determine what registry key to check to see if your.NET version is installed. There is a good Stack Overflow answer that covers this, though the MSDN page is more likely to be up to date. There is also a good article on how to apply that in Inno Setup's Pascal scripting language. I wrote mine to check for.NET 4.5.

user328146

3 Answers

You should use the GetWindowsVersionEx function. It fills a TWindowsVersion record:

There are a lot of other related functions. See below 'System functions' at this page.

Andreas RejbrandAndreas Rejbrand
75.4k6 gold badges223 silver badges312 bronze badges

According to the documentation, the parameters associated with each file can be directly tied to the OS version: 39 clues book 5 pdf.

'0' means never install; '1' means install on any version (i.e. version 1.0 or later).

Note: The above technique isn't limited to the [Files] section; MinVersion and OnlyBelowVersion can be used in most sections.

Inno Setup Check Windows Versionwallykwallyk
50k10 gold badges68 silver badges125 bronze badges

In most Inno Setup sections (like [Files], [Tasks], [Run], etc.) you can use the MinVersion and OnlyBelowVersion common parameters.

In Pascal Script, use the GetWindowsVersionEx function to find the Windows version number. Then compare the number against a specific Windows version number.

Here are few handy functions to check specific Windows versions:

How to check my drivers license status nsw. It is a dual-purpose, optional card designed for the user's convenience. An instruction permit has restrictions and allows motorcyclists to practice riding on public roadways to become familiar with the motorcycle and its controls.Every person who operates a motorcycle on public roads in Minnesota must have a valid driver’s license with the appropriate instruction permit or license endorsement. Motorcyclists must carry these documents with them when riding on public roadways.

Example of use:

To test for server-editions of Windows, see:
Checking for Windows Server 2003

Martin PrikrylMartin Prikryl
103k27 gold badges214 silver badges454 bronze badges
Active6 years, 11 months ago

I have to install a driver during my installation process in InnoSetup. For that I have two .msi installation files for 32bit/64bit. Now in Win7, this driver is already included, so I don't need to install it again. So far, I did this:

So, the user can choose if he wants to install the driver. If he has chosen to do so, the correct driver runs. This works fine. Now I want to choose to not install the driver if >=Win7 is running. I read about OnlyBelowVersion: 6.1 but I seem to be unable to do something like this in the [Run] section:

How can I use OnlyBelowVersion (or something similar) in the [Run] section?

Also, I want to make sure that the .msi is run in the proper mode (64bit mode for 64bit systems). Because I think, that is not the case right now. Is it possible to enforce that? I found out about ArchitecturesInstallIn64BitMode=x64, where do I have to put that?

brimboriumbrimborium
7,3559 gold badges41 silver badges69 bronze badges

1 Answer

The OnlyBelowVersion parameter you can't use in Check statement, but as a separate parameter.

To you second question, the IsWin64 function returns True on all 64-bit editions of Windows, so that's what you have correct. From the reference:

This function will always return True on an x64 edition of Windows.

To run your InnoSetup installation in 64-bit mode you've correctly mentioned, that you need to specify at least the ArchitecturesInstallIn64BitMode directive. If you specify this directive with at least one of the available values, your setup will run in 64-bit mode on machines with the processor architecture(s) you specify, in 32-bit mode if you run your setup on machine with x86 processor.

Inno Setup Check Windows Version

TLamaTLama
66.3k15 gold badges171 silver badges309 bronze badges

Inno Setup Tutorial

Not the answer you're looking for? Browse other questions tagged windows-764-bitdriverinno-setup or ask your own question.