views:

87

answers:

2

My MSI installer created with Visual Studio 2008 refuses to install the app in the designated directory and instead will only install the app in the root directory. If I take the same MSI and install in on an x86 system the installer installs the app in the directory specified.

I am developing the app and MSI on Server 2008 and Win7 RC x64 (Hyper-V). I see the same results on either development platform.

Thanks in advance!

+2  A: 

Check two things:

  1. Are you targeting x64 for the code?
  2. Are you targeting x64 for the .MSI file?

This link http://msdn.microsoft.com/en-us/library/cd7a85k9(VS.80).aspx explains the gotchas.

Christopher
Thanks for pointing me in the right direction. I needed to do two things. Set the TragetPlatform to x64 for the installer project and manually run the setup.exe using "Run as Administrator".
A: 

I'm having the same problem.

Is there are way to avoid running the setup.exe. Its only for pre-requisits and the systems the program will be installing to will have all of them.

Basically I need a way to elevate the adminstrator privileges in the MSI. I don't mind if the user acces control comes up to prompt the user, i just need it to not install to the Root.

Doiley
Doiley