0

I have created a setup project for my C# project.

But when I install my program the installer writes all files in the C: folder.

The default location for my application folder is

[ProgramFilesFolder][Manufacturer][ProductName]

and I get the correct path when I start the installer.

Even if I select an other install path manually it installs the files in C:.

Freakyuser
  • 2,774
  • 17
  • 45
  • 72
bones
  • 33
  • 1
  • 1
  • 5

1 Answers1

0

Windows Installer will default to the root of the largest drive (frequently C:) whenever there is a problem with the Directory table. Are you consuming any merge modules? If so, you have to associate the MergeRedirectFolder with the TARGETDIR when you consume the module. Otherwise your question is not answerable without examining a Windows Installer log. You can obtain such a log by running:

msiexec /I foo.msi /l*v verbose_install.log
Christopher Painter
  • 54,556
  • 6
  • 63
  • 100