cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
cobraa
Level 3

Install for both x64 and x32

Hello

I would like to make an install, which installs different files, depending on the OS of the user.

If the OS is 32 bit, then install 32-bit DLL, else install 64-bit DLL

Thx
Labels (1)
0 Kudos
(7) Replies
thepeter
Level 7

I don't really know what you mean. You can target you installation platform be setting the TemplateSummary property http://msdn.microsoft.com/en-us/library/aa372070(VS.85).aspx
Take a look at a brief information about requirements for 64bit Installation Packages here: http://msdn.microsoft.com/en-us/library/aa367430(VS.85).aspx

Regards, Peter.
0 Kudos
Christopher_Pai
Level 16

MSI doesn't officially support multiple platforms in a single MSI. However, with limitations, there are ways to make it work. I'd suggest reading:

http://blog.deploymentengineering.com/2008/01/even-developers-are-concerned-about.html

http://blogs.msdn.com/jasongin/archive/2008/07/09/votive-project-platform-configurations.aspx
0 Kudos
cobraa
Level 3

Thx for reply guys. I will try to describe my problem more.

For instance: if a user's name is John, then the installation installs John.DLL, if the user's name is Steve, then Steve.DLL should be installed.

So, if the OS is 64-bit, then 64.DLL should be copied in the targed directory, else 32.DLL. The other files remain the same

Thanks
0 Kudos
jmartin
Level 3

The problem is the path to put the dlls. If you have a msi 32 bits the dlls will be in systemWow64 although the S.O would be 64 bits.
0 Kudos
cobraa
Level 3

no, this particular DLL of mine is installed in the application's working directory, so just a question which dll to install.
0 Kudos
jmartin
Level 3

Then I think there is no problem (I hope you don´t have to register your dll), you can take the VersionNT64 property to determine which dll you have to install.
0 Kudos
cnpitroda
Level 5

Do one thing check the OS. If it is 32 bit then and then only Copy and Register your DLL. Put conditions for 64 bit also. You can use FeatureSelected for this purposes. Make it true and false based on conditions.
0 Kudos