View Full Version : Detect 32 bit vs. 64 bit Windows ?
NewsArchive
07-21-2009, 02:53 AM
Hi,
In File Properties | Conditions I can select target Windows version.
I need also to detect 32 or 64 bit OS. Is this possible ?
Cheers,
/Poul
NewsArchive
07-21-2009, 02:54 AM
I should clarify a bit:
I want to make a small generic installer that checks the current OS (XP,
Vista, Server 2003 or Server 2008) and where appropriate 32 bit or 64 bit,
and based on this download the actual setup-file and runs this.
If this has to be 100% safe I also should check for min requirements to XP
(min XP Pro, SP2) and Vista (Business or Ultima).
Is this possible ?
/Poul
NewsArchive
07-21-2009, 02:54 AM
The attached might give you a start.
I didn't include checking for the various flavors of server.
Look up Get System Information in the help file. I think you'll need to add
a filter for $VER_SUITE_PERSONAL$ to detect XP home.
HTH
Jane
NewsArchive
07-21-2009, 03:58 AM
> I should clarify a bit:
>
> I want to make a small generic installer that checks the current OS (XP,
> Vista, Server 2003 or Server 2008) and where appropriate 32 bit or 64 bit,
> and based on this download the actual setup-file and runs this.
>
> If this has to be 100% safe I also should check for min requirements to XP
> (min XP Pro, SP2) and Vista (Business or Ultima).
>
> Is this possible ?
%WINVER% always holds the current operating system.
For example:
If %WINVER% Equals $WIN_VISTA$ Then
You are running Vista
End
To get more detailed information, use the "Get System Info" script function
(Windows Major Version, Windows Minor Version,
Windows Product Info, etc. options).
Lindersoft Emergency Support
NewsArchive
07-21-2009, 03:59 AM
>
> I need also to detect 32 or 64 bit OS. Is this possible ?
>
Use the Get System Info (WOW64 Status) function to determine whether the
SetupBuilder application is running under WOW64 (64-bit Windows). Returns
"1" on x64 systems.
Lindersoft Emergency Support
NewsArchive
07-21-2009, 04:00 AM
Hi Jane & "Emergency..." ;-)
Thanks alot.
Just what I need.
Chers,
/Poul
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.