I have some C++ files that are processor architecture dependent, i.e. if the processor is 32 bit, I need to install a set of files and if the processor is 64 bit I need to install another set of files.
Can you advise how to do that?
Conditionally installing files for x86 and x64
Re: Conditionally installing files for x86 and x64
Definitely.
You can use the Get System Settings command and select the Is Windows 64 Bit capability.
Then, use an If.. Else.. End block to control the flow of your installer accordingly.
In fact, you can create a setup from the Win64 Setup template, and it will show you exactly how this is done.
You can use the Get System Settings command and select the Is Windows 64 Bit capability.
Then, use an If.. Else.. End block to control the flow of your installer accordingly.
In fact, you can create a setup from the Win64 Setup template, and it will show you exactly how this is done.
Aviv Giladi
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Conditionally installing files for x86 and x64
Thank you for the quick reply.
I'm totally new to InstallAware and am finding the MSICode quite hard to read.
Any chance you could give me an example on how to conditionally install to the TARGETDIR a file called Test.dll.
I'm totally new to InstallAware and am finding the MSICode quite hard to read.
Any chance you could give me an example on how to conditionally install to the TARGETDIR a file called Test.dll.
Re: Conditionally installing files for x86 and x64
Sure!
Get System Setting Windows in 64 bit Mode into ISWINDOWS64BIT
if Variable ISWINDOWS64BIT Equals
Install Files somefolder\Test.dll to $TARGETDIR$
else
Install Files somefolder\Test_x86.dll to $TARGETDIR$
end
Or paste this in your IA IDE:
~InstallAware Clipboard Data~
~Comment~
~{4F6675B4-211F-4F10-981A-8FBC03D4E353}~
~~
~End~
~{1F343C24-F7BD-4AD9-9D7F-56C5B3BF26A1}~
~Install Files~
~{740ED87C-B6CB-4B25-8C8D-416CEA54B5EC}~
~somefolder\Test_x86.dll~
~FALSE|~
~$TARGETDIR$~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~Else~
~{8D0FA90D-58BD-4E20-A8AB-112B7ED33402}~
~Install Files~
~{483DD024-A527-423E-B41F-B959A8812324}~
~somefolder\Test.dll~
~FALSE|~
~$TARGETDIR$~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~If~
~{383834E9-6C0C-4E00-AD66-FAAF97A45871}~
~ISWINDOWS64BIT~
~0~
~~
~FALSE~
~Get System Settings~
~{BA924001-5211-43C7-89F7-47579673BDB3}~
~ISWINDOWS64BIT~
~65~
Get System Setting Windows in 64 bit Mode into ISWINDOWS64BIT
if Variable ISWINDOWS64BIT Equals
Install Files somefolder\Test.dll to $TARGETDIR$
else
Install Files somefolder\Test_x86.dll to $TARGETDIR$
end
Or paste this in your IA IDE:
~InstallAware Clipboard Data~
~Comment~
~{4F6675B4-211F-4F10-981A-8FBC03D4E353}~
~~
~End~
~{1F343C24-F7BD-4AD9-9D7F-56C5B3BF26A1}~
~Install Files~
~{740ED87C-B6CB-4B25-8C8D-416CEA54B5EC}~
~somefolder\Test_x86.dll~
~FALSE|~
~$TARGETDIR$~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~Else~
~{8D0FA90D-58BD-4E20-A8AB-112B7ED33402}~
~Install Files~
~{483DD024-A527-423E-B41F-B959A8812324}~
~somefolder\Test.dll~
~FALSE|~
~$TARGETDIR$~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~If~
~{383834E9-6C0C-4E00-AD66-FAAF97A45871}~
~ISWINDOWS64BIT~
~0~
~~
~FALSE~
~Get System Settings~
~{BA924001-5211-43C7-89F7-47579673BDB3}~
~ISWINDOWS64BIT~
~65~
Aviv Giladi
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Conditionally installing files for x86 and x64
Thank you.
Another related question.
In the MSI Code, I have the following line:
Set x64 = Native 64 bit Windows, AMD64 and EMT64T Architecture - installation mode
When I install on a 64 bit OS, I was expecting the TARGETDIR to resolve to C:\Program Files however it is resolving to C:\Program Files (x86).
How do I configure the TARGETDIR appropriately on 64 bit?
This is the MSICode I added:
Get System Setting Windows in 64 bit Mode into ISWINDOWS64BIT
if Variable ISWINDOWS64BIT Equals TRUE
Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
end
Another related question.
In the MSI Code, I have the following line:
Set x64 = Native 64 bit Windows, AMD64 and EMT64T Architecture - installation mode
When I install on a 64 bit OS, I was expecting the TARGETDIR to resolve to C:\Program Files however it is resolving to C:\Program Files (x86).
How do I configure the TARGETDIR appropriately on 64 bit?
This is the MSICode I added:
Get System Setting Windows in 64 bit Mode into ISWINDOWS64BIT
if Variable ISWINDOWS64BIT Equals TRUE
Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
end
Re: Conditionally installing files for x86 and x64
Hi,
Please create a setup using the Win64 Setup template.
Go over the MSIcode there, specifically the Define Setup Globals Region, and see how it is done there. Let me know if you have any questions!
Please create a setup using the Win64 Setup template.
Go over the MSIcode there, specifically the Define Setup Globals Region, and see how it is done there. Let me know if you have any questions!
Aviv Giladi
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 112 guests