C# Change Default Path For Setup Project

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

I have a question on C# Winform on the Setup Project. The question is, I
want to change the default path of the destination folder for the setup
project instead of 'DefaultLocation' -> [ProgramFilesFolder]\[ProductName].

Change to, for example, "C:\MyDocument\ProductName", can it be done ?

Please reply as soon as possible.

Thanks in advance.
 
Hi,

As far as I remember, this is governed by the Windows Installer's TARGETDIR
property.
So your question is actually how to set this property to a desired value at
the beginning of the installation. One way I know is to modify the MSI file
after it has been created by Visual Studio with Orca to modify the initial
value of this property. Probably this can also be done right from the IDE -
but I am not sure. Please repost your question to the
microsoft.public.dotnet.framework.setup newsgroup.
 
Back
Top