Hello,
I'm attempting to create a zip file for a "client only" installation. This zip file will contain only 1 (instead of 3) installation packages and I would like it to contain only 1 (instead of 3) Word documents. The "full" installation will contain all of each.
Basically I copy the "client only" setup files and all the documents to a directory (then, after the client only zip, I copy the other two setup files for the full zip).
To create the "client only" zip, I'd like to point the "Create Zip" action to that directory and "include" the following: *.exe, *.msi, document1.doc then "exclude" the following: *.doc. That method would be the most stable going forward (i.e. when we add new ".doc" files I won't have to specifically exclude them).
Unfortunately, excluding "*.doc" also appears to exclude "document1.doc". Is this working correctly? If so, I guess the workaround is to create two filessets, one with document1.doc and one with *.doc, and only copy document1.doc when creating the client-only zip file.
Thanks,
Matt
Hi Matt,
Thats the expected behaviour, the file masks in the exclude list will superceed the masks in the include list.
In your case you shouldn’t need to have *.doc in the exclude list as you haven’t specified a mask which would include all .doc’s.
Regards,
Paul
OK, now I'm having a problem with the "Include Files" not recursing directories when a full filename is specified.
I have:
*.exe
*.msi
application configuration.doc
The exe and msi exist in a sub-directory named "client". The doc file exists (with other doc files) in a sub-directory named "documents".
To get this to work I had to specify the full filename to the doc to include "%TempZippingDir%\Documents\application configuration.doc"
Is that expected? I expected it to recurse the directories for "application configuration.doc". Note that I have cleared the "excluded files" list.
Thanks,
Matt
Hi Matt,
Try using “*application configuration.doc”, the zip action will match files based on the full path, even when the folder is being recursed.
Regards,
Paul.