We would like to install our software on 64-bit machines but have been having some problems getting them to run on the different OS's. Some of the things we need to do, such as installing IIS if it is not already there, fails on 64-bit machines. Our thought was that it is running the installer in 32-bit mode and then calls pkgmgr to install IIS, and pkgmgr is then also running in 32-bit mode, which then causes it to fail. We get a "An attempt was made to load a program with an incorrect format" error from the package manager. Has any one run into issues like this with 64-bit machines? We would like to keep the installer in 32-bit mode so that our program gets installed to the Program Files (x86) directory and so that it uses the 32-bit registry hive, but we would also like to install IIS so that our customers do not have to. Any suggestions?

Thank you
Jonathon