Hi,
I am creating a custom dialog which lets the user select a folder for data storage. The default location should be %PROGRAMDATA%\Par, and the related property is LOCAL_PAR_DIR. I believe this should be easy to do, but I didn't find a way.
I thought I could simply initialize LOCAL_PAR_DIR in the "Properties" table but didn't find how to use %PROGRAMDATA%. So I initialized LOCAL_PAR_DIR to "[|]" which results in an empty string, and then used a custom action to insert the default value if the property is still empty. This worked.
When I inserted a "browse for folder" button into the dialog, I followed instructions on viewtopic.php?t=1721 which indicate that I should create a "Property Based" folder for the property. Since I did that, the LOCAL_PAR_DIR property is initialized to C:\LOCAL_PAR_DIR, rather than to an empty string, although the value in the "Properties" tale hasn't changed. I created an installation log which confirms that. This prevents my custom action from initializing the property.
Can you help me to overcome my confusion?
Thanks
Hans