Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a window service that compiles using all CPU. The problem is I am using a Setup (msi) and I do not want to have to compile 2 separate MSI for each Platform, the reason being our support is incompetant. I want 1 setup that can deteck the OS and INstall the service accordingly or a way to include both MSI in 1 installer and it choose.
Posted

How about providing a small installer app that detects and runs the correct MSI? Your main msi would just run this app, and it would detect the CPU architecture, and then run the appropriate installer msi.

If you don't want to do that, you should google the ms software installer and find out wht the properties are, and the gotchss surrounding using them.
 
Share this answer
 
v2
If the service executable is compiled as Any CPU, it will run as 64 bit on 64 bit systems and as 32 bit on 32 bit systems. You can use a single 32 bit installer for both (the installer does not matter here).
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 9-Feb-11 0:54am    
Good note, my 5.
--SA
What you want is quite possible, but all installers I ever saw either comes in two (or three) different parts: for WIN32, x86-64 and Itanium IA-64 architectures, see http://en.wikipedia.org/wiki/X86-64[^] and http://en.wikipedia.org/wiki/Itanium[^]. Those installers packed in one file still give the user a choice of target architecture, for a good reason.

Why not giving the user of 64-bit system and option to install 32-bit version? It can run under WoW64 (http://en.wikipedia.org/wiki/WOW64[^]) which is a valid choice.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900