cancel
Showing results for 
Search instead for 
Did you mean: 
happyc
Pilgrim

How to check if the target system is a WIn7 32-bit or 64-bit?

Hi,

I have a config files which needs to be installed in different locations for Win7 32-bit and 64-bit. In InstallScript, how to check if the target system is a 32-bit or 64-bit?

Thanks!
Labels (1)
0 Kudos
2 Replies
Highlighted
enanrum
Pilgrim

Re: How to check if the target system is a WIn7 32-bit or 64-bit?

You can change the Directory of the Component using a Set Directory Custom action with condition VersionNT64.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa372497(v=vs.85).aspx
0 Kudos
happyc
Pilgrim

Re: How to check if the target system is a WIn7 32-bit or 64-bit?

Thank you!

I also need to update a config file at install. But I am unable to use INSTALLDIR. How to use this VersionNT64 property in my InstallScript?

Thanks!
0 Kudos