C# Change Default Path For Setup Project

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.
 
D

Dmitriy Lapshin [C# / .NET MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top