This question has asked before here but the question has never answered. How do I suppress the warning/error in my MS installer deployment project?
Thanks
This question has asked before here but the question has never answered. How do I suppress the warning/error in my MS installer deployment project?
Thanks
It's there to remind you you're doing the wrong thing because 32-bit MSIs can't contain 64-bit components:
http://msdn.microsoft.com/en-us/library/aa367451(v=vs.85).aspx
and different architectures require different setups:
Therefore if the target machine is x64 (why else do you need a 64-bit Dll?), then you can get rid of the warning by building it as an x64 MSI file because a 64-bit MSI can contain both 32-bit and 64-bit files. I just tried this and it does get rid of the warning. I know of no other way to suppress that warning.
Dear stackoverflow friends, If you follow the suggestions given in msdn or its blogs or other installer vendors, they will drive you in circles.
If you read my original question it is really straightforward - whether it is a common practice is a separate question. But I and others do need a solution for this deployment scenario.
So I have found the easiest workaround the installer limitation (disallowing x64 assembly in x86 target platform) is compress to the file(s) and include it into the project, the installer cannot detect it is for x64. The next step is to create a custom action to decompress in AfterInstall event and delete the decompress files(s) in the AfterUninstall event. Custom action dlls are really easy to create!!
I hope this helps others who is trying to accomplish similar deployment scenarios.