This is my end goal: To build a 6 level file folder hierarchy that looks like:
[Application Folder]
+ down1
| + UserEditableName
| | + down2
| | | + down3
| | | | + down4
| | | | | + (lots of files and folder)
I want to give the User the ability to change where the [Application Folder] points.
I want to give the User the ability to change the name of the Folder called "UserEditableName".
But "down1", "down2", "down3", and "down4" I want to hard code as folder names.
So I added two Install Parameters:
MY_FOLDER_name, MY_FOLDER
MY_EDIT_name, whatever
I've added a "Property Set with Formatted" to the Custom Action for the "Install UI Sequence" "Begin"
The property name is= MY_FOLDER
The formatted text= "[APPDIR] "\down1\[MY_EDIT_name]
And then I do a "Shift" Mouse drag to copy this property down to the "Begin" for an "InstallExecuteSequence".
In the Files and Folders I've added a "Property Based" NewFolder that is called = MY_FOLDER_NAME
but has value = MY_FOLDER_name
and to this I have added the regular folders "down2", "down3", "down4" inside of each other.
Inside "down4" is an "Add Folder location with refresh" that points to a lot of files that I want to install at the location of "down4".
I've also built a custom dialog that has an EditBox on it that allows the User to enter the name of that subfolder.
It is tied via the Property Name to MY_EDIT_name
When I do a "Build", all the files and folders get copied into the "Application Folder" without any folders above it.
(This kind of seems strange to me... but I am just going with it for now)
And then when "Run",
I get the dialogs to come up as expected.
The location of where to install comes up. And that interacts as expected.
The dialog comes up with the edit box for the sub folder. (It even has a default string that comes up. I change that text. Seems OK.)
And click "Next".
And then when the install finishes, the folder structure looks like:
[Application Folder]
| + (lots of files and folder)
What did I miss doing to able to get those extra levels of folder names between the "Application Folder" and all the other files and folders?
FOLLOW US
Get the latest news in Application Packaging