Changing default installation folder

S

sunil

Hi,
I dont know whether I am posting to the right group. If it is not the
right group, please tell me.
I want to change the default installation folder to my own path. I did
it by changing the application folder's DefaultLocation property. The
installation works fine as long the path that I give is complete path.
If I give relative path, there is an error. How do I give a relative
path?
 
R

Rad [Visual C# MVP]

Hi,
I dont know whether I am posting to the right group. If it is not the
right group, please tell me.
I want to change the default installation folder to my own path. I did
it by changing the application folder's DefaultLocation property. The
installation works fine as long the path that I give is complete path.
If I give relative path, there is an error. How do I give a relative
path?

What would the path be relative to?
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Relative to what?

You can use a "relative" path to one of several folders ( take a look at
Environment.SpecialFolders) to perform the installation.

IMO it;s a good practice to just follow the standard, I personally hate
those apps that insist in install themselves in c:\
 
S

sunil

Rad said:
On 28 Dec 2006 05:16:52 -0800, sunil wrote:

What would the path be relative to?

Hi Rad,
The path is relative to the location of my solution folder. Just to be
more clear, I have several projects in my solution. The setup project
contains one executable as the primary output. I have one more
executable in my solution. I want the DefaultLocation value to be the
same as the output path of the other executable.
Just to give you an example, lets assume the solution have 2
executables named A and B. I have a setup project for A. I want the
DefaultLocation value of the application folder to be the output value
of B (i.e., wherever that executable is to be output). B's output path
is relative to the location of the project folder. Is there a way to do
it?
Thank you for the response
 

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