Page 1 of 1

Exclude wildcard doesn't work

Posted: Fri Jan 26, 2007 3:54 pm
by jasonyau
Source:
Core\\A.exe
Core\\B.exe
Core\\C.exe

Target:
Core\\A.exe
Core\\C.exe

I try to use Install Files' Exclude Wildcards option. So the script becomes

Install Files Core\\*.exe to $TARGETDIR$\\Core, ingore files matching wildcard pattern(s) B.exe

But the resulting installer still install B.exe for me. Any idea?

Posted: Sat Jan 27, 2007 4:04 pm
by MichaelNesmith
I think you actually need to use a wildcard - so try b.* for example.

Posted: Mon Jan 29, 2007 11:55 am
by jasonyau
No, I tried B.*. It doesn't work. According to the description of Install Files' Exclude Wildcards in InstallAware's Help, I can put in a file name without wildcard:

*********
If you would like to exclude some of the files matching your source file pattern above, you may do so by specifying exclude wildcards. Exclude wildcards allow you to filter out some files at build time from inclusion in your setup. Leave this field empty if you do not wish to exclude any files. If you wish to exclude a particular file, folder, or a collection of files and/or folders, enter the name(s) of the items to exclude here. You may use wildcards. Seperate multiple items using semi-colons. Remember to enclose items that contain spaces in their names inside double quotes.
**********

Posted: Mon Jan 29, 2007 12:10 pm
by jasonyau
I finally get it to work. I have to put this into the exclude wildcard field.

*\\B.exe

This is the MSI script:

Install Files Core\\*.exe to $TARGETDIR$\\Core, ingore files matching wildcard pattern(s) *\\B.exe

Is it a bug because it is nowhere near the description in Help?

Posted: Tue Jan 30, 2007 11:09 pm
by MichaelNesmith
I think the help is wrong about being able to use literals - it should be wildcards only.

But I was able to get wildcards to work without entering path information like you did. Maybe its a bug that surfaces in your particular configuration? Did you have any more details?

Which version of InstallAware?

Posted: Wed Jan 31, 2007 3:58 pm
by jasonyau
The version I used is Version 6.1 (Build cambridge_rtm.122006)

The MSI script is

Install Files #STAGEDIR#\\Core\\*.ini to $TARGETDIR$\\Core, ignore files matching wildcard pattern(s) *\\DC_dbg.ini

Posted: Wed Jan 31, 2007 4:55 pm
by MichaelNesmith
I think that build might have had issues with the wildcards. Let me know when you get a chance if it still doesn't work with the current shipping version.