NovaES
Posts: 143
Joined: Tue Feb 24, 2015 5:20 pm

Detect system if it is x32 or x64

Mon Mar 21, 2022 1:34 pm

Hello,

I am working on a new architecture for my application, building it on x64 bits. I would like to know that at the beginning of the application, it will detect if the system is x64 or x32 to decompress one file or another.

This file would contain the compatibility for one system or another, depending on how it works.

Thanks :)

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Detect system if it is x32 or x64

Mon Mar 21, 2022 3:18 pm

Hello,

For that, you can check our "How do I install resources based on the Operating System version?" article.

If the component (or custom action) should be installed (or run) only on a 32-bit system, the condition is:

Code: Select all

NOT VersionNT64

If the component (or custom action) should be installed (or run) only on a 64-bit system, the condition is:

Code: Select all

VersionNT64

Hope this helps! If you have any other questions, please don’t hesitate to contact us.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”