Link to home
Start Free TrialLog in
Avatar of HenrikNordborg
HenrikNordborgFlag for Switzerland

asked on

How to change custom folder path using its property in Visual Studio Setup project?

I have Visual Studio 2010.

I want to dynamically change the path of the custom folder. When you add a custom folder using File System editor inside Setup there is a Property called Property and the description says:
"Specifies a named property that can be accessed at installation time to override the path of custom folder"
Documentation doesn't say anything about it.

How do I do that?
Avatar of CSI-Windows
CSI-Windows
Flag of United States of America image


Did you happen to leave out the name of the property in the following sentence?

"... there is a Property called Property ..."
Avatar of HenrikNordborg

ASKER

No. It is called property and it is referred the same on MSDN, but they just say property property, so it's more confusing.
Avatar of Vadim Rapp
This means that you can specify a property of the installation, in sense of http://msdn.microsoft.com/en-us/library/aa372432%28v=vs.85%29.aspx . Make up your own name, and specify. The point of this is that the value of this Property will be filled somewhere during the installation. For example, this property may be linked to a message box on a dialog. Or it can be the result of system search. So when your installation decides what will be that custom folder, it will have to store its path in that Property.
I know what it means, that is not the problem. On the page you specified it says this:
"You can get or set properties from programs and custom actions..."

So it can be set with the custom action, the question is how? What is the right procedure?
ASKER CERTIFIED SOLUTION
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of EE_AutoDeleter
EE_AutoDeleter

I've requested that this question be deleted for the following reason:

                           
No comment has been added to this question in more than 21 days, so it is now classified as abandoned and is now flagged for deletion.


If there is a valid solution, please OBJECT and indicate the comments that are, or would otherwise lead to, a solution.


Use the specific format https:#axxxxxxxx for comment ID(s).


Also, please don't object simply because the author did not respond to your comment. While we understand this is frustrating, unfortunately we cannot force the author to return to the question. Unless you feel you have presented a valid, verifiable solution we'll simply delete the question.


Experts-Exchange Auto Deleter
The complete answer is in ID: 35344418. Accept ID: 35344418.