PC Review


Reply
Thread Tools Rate Thread

Changing default installation folder

 
 
sunil
Guest
Posts: n/a
 
      28th Dec 2006
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?

 
Reply With Quote
 
 
 
 
Rad [Visual C# MVP]
Guest
Posts: n/a
 
      28th Dec 2006
On 28 Dec 2006 05:16:52 -0800, sunil wrote:

> 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?

--
Bits.Bytes
http://bytes.thinkersroom.com
 
Reply With Quote
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      28th Dec 2006
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:\


--
Ignacio Machin
machin AT laceupsolutions com



"sunil" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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?
>



 
Reply With Quote
 
sunil
Guest
Posts: n/a
 
      29th Dec 2006

Rad [Visual C# MVP] wrote:
> On 28 Dec 2006 05:16:52 -0800, sunil wrote:
>
> What would the path be relative to?
>
> --
> Bits.Bytes
> http://bytes.thinkersroom.com


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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the default folder view in Outlook 2003 Personal Folder F =?Utf-8?B?QmFzaWxpc2s=?= Microsoft Outlook Discussion 6 11th Dec 2009 09:23 PM
help for changing the default installation folder sunil Microsoft C# .NET 1 31st Dec 2006 09:38 AM
How can I set default home page, temp folder and default program installation folder Riz Arain Microsoft Windows 2000 Group Policy 0 12th Dec 2004 12:42 AM
Changing Default Installation Location Steven K. Mariner Microsoft Windows 2000 Upgrade 1 8th Jun 2004 06:06 PM
changing default installation directory Gerald Riggit Microsoft Windows 2000 Deployment 6 19th Aug 2003 01:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:45 AM.