I need to create four custom folders that are on the root of the target machine (C:\Folder1). I've created folders and placed files in .NET setup projects in the past, but I'm usually using pre-configured locations such as 'application folder' 'common files folder', 'program files folder', etc. I can create a custom folder, but how can I make it point to 'C:\' and then add my four folders to this?
views:
17answers:
1
+1
A:
Start by adding a Custom Folder and set the properties as :
(Name): Root
DefaultLocation: C:\
AlwaysCreate: True
After this Custom Folder is created, right-click the folder and select Add > Folder.
The tree should look like:
File System on Target Machine
Root
New Folder #1
New Folder #2
New Folder #3
New Folder #4
dhirschl
2010-10-18 18:32:49
That seems like a viable solution. I just implemented this and when I ran the setup, it didn't create the folders. The other fields are condition (which is blank), property is set to 'NEWPROPERTY1', and transitive is set to 'false'.
jmac
2010-10-18 18:55:26
Is it a problem that there won't be any files in this folder hierarchy?
jmac
2010-10-18 18:58:02
Did you set 'AlwaysCreate' to True on your subfolders?
dhirschl
2010-10-18 18:58:06
No, I hadn't set the 'AlwaysCreate' option on the subfolders. That worked. I'm accepting your answer. Thanks again.
jmac
2010-10-19 13:43:55