Hi David,
What should I select for the directory in the Feature dialog?
You can leave the default. It doesn't affect the folder.
I then select the new Feature in "Files and Folders" dropdown but the view does not change. Should it? I can still see the items I added in "MainFeature".
No, the view doesn't change. The "Feature" combo sets the current feature, in which all resources are added automatically from now on. You first need to select your feature so it's set as current and only then add your folder. If you already added your folder, you need to remove it, select the feature and then add it again.
It was a customer request to use the "C:\Users\Public\MyInstall" folder. Is it posible to specify this somehow?
Yes, you can try this approach:
- create a custom
public property in "Install Parameters" page
- use it for a
property-based folder in Files and Folders page
- add your files in it
- write a
Win32 DLL or VBScript custom action which generates the "C:\Users\Public\MyInstall" path and sets it in your custom property
- add it as a custom action before
"InstallUISequence" -> "CostFinalize" in
Custom Actions page
Instead of a DLL or VBScript you can also use a
Property set with formatted custom action which sets your property to:
Code: Select all
[WindowsVolume]Users\Public\MyInstall
But this may not be the exact path on some machines due to folder redirection and Windows localization.
For my information, the "Common Application Data" folder usually gets written to which folder?
"C:\ProgramData".
1. Display a dialog if installation is on the W2008 O/S & UAC is enabled (using the conditional info you gave me in 1st reply).
2. The dialog collects an 'alternate' folder to the main install directory from the user (where they could select "c:\Users\Public\MyInstall") for the writeable data.
3. Create and copy files to this folder ONLY if the above condition is met.
Our user guide contains the
Browse for folder how-to which explains this.
Regards,
Cosmin