PDA

View Full Version : Installation Folder



cdundee
07-11-2007, 05:37 PM
By default installation folder is C:\Program Files\[ProductName]. Instead of that I want the installation folder to be
C:\Program Files\[Manufacturer]\[ProductName]

Can someone tell me how I can include the manufacturer property value in the installation folder as a variable so that if I change the manufacturer property value the installation folder should automatically pick it up.

Thanks.

Lorne
07-12-2007, 10:45 AM
Formatted text like [MyProperty] isn't expanded in the Folders table, so you can't just use a property as the name of the folder. If you want to set a folder's name to the value of a property, you need to use a Set Folder action.

I think a better way to approach that is to use a build variable (which is essentially a preprocessor definition) for the manufacturer field and that folder name.

So, you could define a build variable like ManufacturerName, and then refer to it using $(var.ManufacturerName) in both places.

cdundee
07-12-2007, 04:59 PM
I see what you are saying but where do I define and place the build variable. Help manual was not much help in this matter. Can you please give me an example?

Thanks.

Lorne
07-13-2007, 10:34 AM
To add a build variable, go to Build > Settings > Variables tab, then click Add.