Hi,
I have looked at the "Browse for folder" tutorial and it helped me a good bit, but I have a slightly more advanced scenario that I could use some help with, please:
I have a "Select Reports folder" dialog with a single PathEdit control and the typical "Browse..." button.
The property value for the PathEdit should be get it's initial value from one of two scenarios:
a) if the User.INI file is found, then get the [Paths] Reports key value from the ini file
b) if the User.INI file is _not_ found, then use a hard-coded (typical) path such as this: "[PublicDocuments]\[ManufacturerName]\[ProductName]\Reports\"
How can I set this up? I have a Install Parameters > Property defined called "REPORTS_DEFAULT_FOLDER" and it's value is defined as "[PublicDocuments]\[ManufacturerName]\[ProductName]\Reports\". And that seems to be working out so far, but when I click the Next > button the installation and look at the results I'm not getting that folder created.
How do I create the folder location for that scenario?
And how do I make sure that the INI file's [Paths] Reports key value is updated to match that folder location? (currently it's not using the good value that I see on screen for the folder location it's instead creating an INI file entry that includes the APPDIR path instead, like this: Reports=C:\Program Files (x86)\ProMicro\Overture Demo\REPORTS_DEFAULT_FOLDER\ which is wrong on two counts 1) it shouldn't be in APPDIR at all and 2) the REPORTS_DEFAULT_FOLDER is a variable/property value and it's putting in the literal string "REPORTS_DEFAULT_FOLDER")
Thanks.
FOLLOW US
Get the latest news in Application Packaging