PDA

View Full Version : Folder References do not include empty subfolders?


jsd
08-25-2005, 03:39 PM
I am using folder references to certain directories in my installer. Some of the subfolders in the folder reference are empty folders that must be created during installation. Is there a way to make the folder reference pick up the empty sub-folders or will I have to create these manually?

Thanks,
jon

Brett
08-25-2005, 03:58 PM
Setup Factory is file-centric. So you will have to use an action to create the empty folders. If there is no file, then Setup Factory does not create the folder.

jsd
08-25-2005, 04:12 PM
Setup Factory is file-centric. So you will have to use an action to create the empty folders. If there is no file, then Setup Factory does not create the folder.

Thanks Brett, is there a reason that it is focused soley on files and not the folders contained in the program structure? In other words, why can't a folder be treated as a file? If it is in the program structure, could it not be assumed it is required?

Absynthe
08-25-2005, 06:48 PM
I just add an empty text file called placeholder.txt to get the folder created during install and delete it at the end of the setup.

Adam
08-26-2005, 10:22 AM
Or you could use a Folder.Create() action to create the folder.

Adam Kapilik