Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

changing the default folder in a setup project

282 views
Skip to first unread message

Jason

unread,
Jan 24, 2007, 12:51:03 PM1/24/07
to
building installs for Vista and would like to install my app in the user
space so it does not require elevation. The defaultlocation property is set
to:

[ProgramFilesFolder][Manufacturer]\MyApp

Which obviously needs elevation to install there so I'm thinking something
like:

[CurrentUser]\MyApp but don't know what's available??

Can you tell me what options (variables) there are for this field..I have
been searching and can't find any documentation..

Thanks
Jason

Linda Liu [MSFT]

unread,
Jan 24, 2007, 10:55:04 PM1/24/07
to
Hi Jason,

To change the default location where a folder will be installed on the
target computer, you could modify the DefaultLocation property of the
Application Folder in the setup project.

To do this, select the setup project in the Solution Explorer and click the
'File System Editor' button on the header of the Solution Explorer, which
will open the File System editor. In the File System editor, select the
'Application Folder' node and change its DefaultLocation property in the
Properties window to the any path you'd like, e.g. [PersonalFolder]\MyApp.

Please try my suggestion and let me know the result.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jason

unread,
Jan 25, 2007, 12:41:02 AM1/25/07
to
Linda,

Thanks for your response. I understand how to change the value. What I am
looking for are the values I can use.

Is [PersonalFolder] a valid value? is it valid for XP and Vista? What are
other values this attribute can use?

Thanks
Jason

Linda Liu [MSFT]

unread,
Jan 25, 2007, 3:05:43 AM1/25/07
to
Hi Jason,

Thank you for your prompt response.

Yes, [PersonalFolder] is a valid value for both XP and Vista.

When the setup program runs on XP machine, the file path is something like
'C:\Documents and Settings\current user name\My Documents\MyApp'.

When the setup program runs on Vista machine, the file path is someting like
'C:\Users\current user name\Documents\MyApp'.

Alternatively, you could also set the DefaultLocation to the following
values:

[CommonFilesFolder]\MyApp
(file path on Vista: 'C:\Program Files\Common Files\MyApp\' )

[ProgramFilesFolder]\MyApp
(file path on Vista: 'C:\Program Files\MyApp\')

[SystemFolder]\MyApp
(file path on Vista: 'C:\Windows\system32\MyApp\')

[AppDataFolder]\MyApp
(file path on Vista: 'C:\Users\v-lliu\AppData\Roaming\MyApp\')

[FavoritesFolder]\MyApp
(file path on Vista: 'C:\Users\v-lliu\Favorites\MyApp\')

Hope this helps.
If you have anything unclear, please feel free to let me know.

Jason

unread,
Jan 29, 2007, 10:39:00 AM1/29/07
to
Thanks Linda, this is exactly what I was looking for

gourav gupta

unread,
Nov 2, 2010, 1:18:17 AM11/2/10
to
but i want to change installtion path like
[C Drive][Manufacturer]\[ProductName],i tried [Defaultvolume][Manufacturer]\[ProductName] also but it doesn't work :(


>> On Wednesday, January 24, 2007 10:55 PM v-lli wrote:

>> Hi Jason,
>>
>> To change the default location where a folder will be installed on the
>> target computer, you could modify the DefaultLocation property of the
>> Application Folder in the setup project.
>>
>> To do this, select the setup project in the Solution Explorer and click the
>> 'File System Editor' button on the header of the Solution Explorer, which
>> will open the File System editor. In the File System editor, select the
>> 'Application Folder' node and change its DefaultLocation property in the
>> Properties window to the any path you'd like, e.g. [PersonalFolder]\MyApp.
>>
>> Please try my suggestion and let me know the result.
>>

>> Sincerely,
>> Linda Liu
>> Microsoft Online Community Support
>>

>> ==================================================
>> Get notification to my posts through email? Please refer to
>> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
>> ications.
>>
>> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
>> where an initial response from the community or a Microsoft Support
>> Engineer within 1 business day is acceptable. Please note that each follow
>> up response may take approximately 2 business days as the support
>> professional working with you may need further investigation to reach the
>> most efficient resolution. The offering is not appropriate for situations
>> that require urgent, real-time or phone-based interactions or complex
>> project analysis and dump analysis issues. Issues of this nature are best
>> handled working with a dedicated Microsoft Support Engineer by contacting
>> Microsoft Customer Support Services (CSS) at
>> http://msdn.microsoft.com/subscriptions/support/default.aspx.
>> ==================================================
>>
>> This posting is provided "AS IS" with no warranties, and confers no rights.


>>> On Thursday, January 25, 2007 12:41 AM JRawlin wrote:

>>> Linda,
>>>
>>> Thanks for your response. I understand how to change the value. What I am
>>> looking for are the values I can use.
>>>
>>> Is [PersonalFolder] a valid value? is it valid for XP and Vista? What are
>>> other values this attribute can use?
>>>
>>> Thanks
>>> Jason
>>>
>>>
>>> "Linda Liu [MSFT]" wrote:


>>>>> On Monday, January 29, 2007 10:39 AM JRawlin wrote:

>>>>> Thanks Linda, this is exactly what I was looking for
>>>>>
>>>>> "Linda Liu [MSFT]" wrote:


>>>>> Submitted via EggHeadCafe - Software Developer Portal of Choice
>>>>> ASP.NET MaskedTextBox Custom Control
>>>>> http://www.eggheadcafe.com/tutorials/aspnet/39a071cd-9f96-4e81-9346-4e445181d645/aspnet-maskedtextbox-custom-control.aspx

Sergio Salanitri

unread,
Mar 31, 2011, 1:38:18 PM3/31/11
to
Hi all,

I need tutorial about how to change the Outlook addin 2007 setup project to support change default installation path using the command line. This requirement is required to deployment department in IT area. They use SMS sofware to distribute the addin in desktop machines.

Thank in advance.

> On Wednesday, January 24, 2007 12:51 PM JRawlin wrote:

> building installs for Vista and would like to install my app in the user
> space so it does not require elevation. The defaultlocation property is set
> to:
>
> [ProgramFilesFolder][Manufacturer]\MyApp
>
> Which obviously needs elevation to install there so I'm thinking something
> like:
>
> [CurrentUser]\MyApp but don't know what's available??
>
> Can you tell me what options (variables) there are for this field..I have
> been searching and can't find any documentation..
>
> Thanks
> Jason


>> On Wednesday, January 24, 2007 10:55 PM v-lli wrote:

>> Hi Jason,
>>
>> To change the default location where a folder will be installed on the
>> target computer, you could modify the DefaultLocation property of the
>> Application Folder in the setup project.
>>
>> To do this, select the setup project in the Solution Explorer and click the
>> 'File System Editor' button on the header of the Solution Explorer, which
>> will open the File System editor. In the File System editor, select the
>> 'Application Folder' node and change its DefaultLocation property in the
>> Properties window to the any path you'd like, e.g. [PersonalFolder]\MyApp.
>>
>> Please try my suggestion and let me know the result.
>>

>> Sincerely,
>> Linda Liu
>> Microsoft Online Community Support
>>

>>>>> On Monday, January 29, 2007 10:39 AM JRawlin wrote:

>>>>> Thanks Linda, this is exactly what I was looking for
>>>>>
>>>>> "Linda Liu [MSFT]" wrote:

m

unread,
Aug 17, 2011, 6:27:57 AM8/17/11
to
when i use [progaramfiles][manufacturer][productname],installation is successful,but when i browse other locations like D:/ProjectExamples then it is giving an error 1001 while installation proceeding,So plz help me out what the changes needed to be done using orca to edit my wizard to install at any choosen location

> On Wednesday, January 24, 2007 12:51 PM JRawlin wrote:

> building installs for Vista and would like to install my app in the user
> space so it does not require elevation. The defaultlocation property is set
> to:
>
> [ProgramFilesFolder][Manufacturer]\MyApp
>
> Which obviously needs elevation to install there so I'm thinking something
> like:
>
> [CurrentUser]\MyApp but don't know what's available??
>
> Can you tell me what options (variables) there are for this field..I have
> been searching and can't find any documentation..
>
> Thanks
> Jason


>> On Wednesday, January 24, 2007 10:55 PM v-lli wrote:

>> Hi Jason,
>>
>> To change the default location where a folder will be installed on the
>> target computer, you could modify the DefaultLocation property of the
>> Application Folder in the setup project.
>>
>> To do this, select the setup project in the Solution Explorer and click the
>> 'File System Editor' button on the header of the Solution Explorer, which
>> will open the File System editor. In the File System editor, select the
>> 'Application Folder' node and change its DefaultLocation property in the
>> Properties window to the any path you'd like, e.g. [PersonalFolder]\MyApp.
>>
>> Please try my suggestion and let me know the result.
>>

>> Sincerely,
>> Linda Liu
>> Microsoft Online Community Support
>>

>>>>> On Monday, January 29, 2007 10:39 AM JRawlin wrote:

>>>>> Thanks Linda, this is exactly what I was looking for
>>>>>
>>>>> "Linda Liu [MSFT]" wrote:


>>>>>> On Tuesday, November 02, 2010 1:18 AM gourav gupta wrote:

>>>>>> but i want to change installtion path like
>>>>>>
>>>>>> [C Drive][Manufacturer]\[ProductName],i tried [Defaultvolume][Manufacturer]\[ProductName] also but it doesn't work :(

0 new messages