Page 1 of 1
Empty sub folder is not included to the installation
Posted: Mon Nov 21, 2011 9:12 am
by MatDeveloper100
Hello,
I've this command in my script
Code: Select all
Install Files FolderA\*.* to FolderB, include subfolders
The structure of
FolderA is:
FolderA
-
tmp (empty)
-
subFolder (has some files in it)
Where folder
tmp is emty.
But after installation I see only subFolder without tmp, after adding the dummy file to the tmp everything works fine, but that's a bad solution for us, is there any way to install empty folder?
Also we can not call command "Create folder" because sub folders can be changed in the future.
Re: Empty sub folder is not included to the installation
Posted: Tue Nov 22, 2011 8:08 pm
by giaviv
Hi,
Please try switching on the Native Engine by setting the NATIVE_ENGINE variable to TRUE in the beginning of your script.
Does this make a difference?
Re: Empty sub folder is not included to the installation
Posted: Thu Nov 24, 2011 7:26 am
by MatDeveloper100
Did not help

Re: Empty sub folder is not included to the installation
Posted: Fri Nov 25, 2011 9:12 am
by giaviv
Could you please attach here a reproducing project? Thanks!
Re: Empty sub folder is not included to the installation
Posted: Sun Nov 27, 2011 5:19 pm
by ckaware
FYI,
This is happening in my projects as well.
Empty log/ config folders included in the Install Files (include subfolders) actions are not showing up on install.
Re: Empty sub folder is not included to the installation
Posted: Wed Nov 30, 2011 4:22 am
by MatDeveloper100
giaviv wrote:Could you please attach here a reproducing project? Thanks!
Could we do it vice versa?

Could you attach project which install empty folders?
Re: Empty sub folder is not included to the installation
Posted: Tue Dec 06, 2011 6:06 pm
by giaviv
Hi,
Actually, empty folders are not created by the installation engines. This is because the install engines install the files, and build folders around them.
Instead, you can use the Create Folder MSIcode command to create the desired empty folders.
Re: Empty sub folder is not included to the installation
Posted: Wed Dec 07, 2011 1:15 pm
by ckaware
I see.
The empty folders are part of the drop that I'm bundling with the Installer.
Install Files PKGCONTENT\*.* include subfolders is checked.
One would think *.* would include everything here (even if the folder is empty) no?
What about adding another check box in include files to handle this?
Thanks,
Chris
Re: Empty sub folder is not included to the installation
Posted: Thu Dec 08, 2011 4:27 am
by giaviv
Chris,
Thanks - we will consider this!