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?
HenrikNordborgAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CSI-WindowsCommented:

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

"... there is a Property called Property ..."
0
HenrikNordborgAuthor Commented:
No. It is called property and it is referred the same on MSDN, but they just say property property, so it's more confusing.
0
Vadim RappCommented:
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.
0
Acronis Data Cloud 7.8 Enhances Cyber Protection

A closer look at five essential enhancements that benefit end-users and help MSPs take their cloud data protection business further.

HenrikNordborgAuthor Commented:
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?
0
Vadim RappCommented:
If you are using Visual Studio setup and deployment, you can't do it by custom action. The reason is, this setup project supports only so called delayed custom actions, that do things on the destination computer after the installation has already completed. While in this case custom action would have to run at the early stage and affect the installation itself. This is possible with professional MSI authoring tools such as Installshield and Wise.

In those delayed custom actions, you access Installer session via Context. But because the installation has already finished, only a few properties are available, mainly the property named CustomActionData.  See "Walkthrough: Using a Custom Action to Create a Database at Installation" where the installation passes to the custom action the name of the database.

Paul Wilson wrote an extensive article "Visual Studio Setup - projects and custom actions" on the subject.

Unlike custom actions, System Search runs in the beginning of the installation, and you can have it returning the result in any standard property that is later used by the installation. For example, you can find the directory where Microsoft Office is installed, return it in the property TARGETDIR, and thus have your product installed in that directory. This is standard move when creating various add-ons.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EE_AutoDeleterCommented:
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
0
Vadim RappCommented:
The complete answer is in ID: 35344418. Accept ID: 35344418.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Installation

From novice to tech pro — start learning today.