Changing default installation folder

  • Thread starter Thread starter sunil
  • Start date Start date
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?
 
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?
 
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:\
 
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
 
Back
Top