views:

17

answers:

1

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?

+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
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
Is it a problem that there won't be any files in this folder hierarchy?
jmac
Did you set 'AlwaysCreate' to True on your subfolders?
dhirschl
No, I hadn't set the 'AlwaysCreate' option on the subfolders. That worked. I'm accepting your answer. Thanks again.
jmac