Brad
Brad

Reputation: 1369

Installs to Root of C: Instead of \Program Files\

I built an application and created an installer project for it using Visual Studio. Everywhere I've ever installed the application, it works perfectly, except on one particular 2008 R2 server.

Regardless of what folder is specified in the installer, the program always installs to the root of C: on one server. Works perfectly everywhere else.

Anyone seen anything like this before?

Thanks

This is a terminal server. Not sure if that makes a difference.

Upvotes: 2

Views: 2136

Answers (1)

Bogdan Mitrache
Bogdan Mitrache

Reputation: 10993

The best method to investigate the installation is to create a verbose log of it, the log will contain all required information regarding the installation paths. What are their default values, what changes them, etc...

If have problems parsing the log post a link to it so I can download and have a look over it, reading a Windows Installer verbose log is quite easy.

EDIT: From the log linked log, at line 620, you can get this "Machine policy value 'EnableUserControl' is 0". Because the EnableUserControl policy is enabled the property storing your installation path ("TARGETDIR") is not passed from the UI sequence to the execute sequence of the installation (see line 622 "Ignoring disallowed property TARGETDIR"), making the installer to reset it.

You need to set this policy back to value "1", by editing the registry mentioned in the linked article from MSDN.

Upvotes: 2

Related Questions