Detecting 32-bit vs 64-bit OS in a mixed package - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jafa
Posts: 51
Joined: Fri Feb 23, 2007 7:13 pm

Detecting 32-bit vs 64-bit OS in a mixed package

Hi,

I am attempting to migrate to a 32/64 mixed package type.

What define should be used to detect between 32-bit and 64-bit? (OS, not CPU)

Nick
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm not sure I understand what you mean. Can you please give more details about this?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jafa
Posts: 51
Joined: Fri Feb 23, 2007 7:13 pm

Hi,

We are moving to a 32/64-bit mixed installer. We have some pre-requisites, files, etc that are 32-bit only and some that are 64-bit only.

I need to specify a conditional rule - how do I write a rule that say "true if 32-bit OS" vs "true if 64-bit OS"?

Nick
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This can be done by using the VersionNT64 property:
http://msdn2.microsoft.com/en-us/library/aa372497.aspx

The "VersionNT" property will have a value (it will not be empty) if the installation package is run on a 64-bit OS. Therefore, you can use the conditions: VersionNT64 (true when the OS is 64-bit) and NOT VersionNT64 (true when the OS is not 64-bit).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”