How to exclude one file when awhole folder is added --> BUG?

Got a problem you cannot solve? Try here.
Post Reply
binkle

How to exclude one file when awhole folder is added --> BUG?

Post by binkle »

Hi,
in my setup I add a complete folder (e.g. c:\\config\\*.*) to the msi.
But I'd like to exclude a single file (e.g. c:\\config\\base.cf) because Id like to add this extra to be able to check "Permanent file" and "never overwrite".
So I added "base.cf" to the exclude to the "*.*" entry of the folder added priviously.
But the base.cf is still copied when the folder is copied.

Is this a bug?

Greetings

Harry
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

I believe that should work. Be sure you used the correct notation for all fields in the command. Try to use a wildcard spec if it fails :)
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
binkle

Post by binkle »

Hi,
it definitely does not work.
Yes, if I but a * before "base.cf" (--> "*base.cf") it works, but then all files ending with ...base.cf are excluded.

You can try with a simple example:
- create a new default project
-add a complete folder (*.*) containing files named: base.cf, test.cf, testbase.cf
- put 'base.cf' in the exclude field and complile
Now can see in the compiler log window that the base.cf file is added.

If you change 'base.cf' to '*.base.cf' in the exclude field only the test.cf is added.

So there is a bug!
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

I think that field is meant to accept wildcards only, sorry for the inconvenience. I'd try using a spec that matches only that file.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
binkle

Post by binkle »

So it's not possible to exclude a single file....

You should fix this for further versions!!!
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

I think this field is not meant for single files, so this is by design. I can enter an item into the wishlist to exclude individual files, but usually wildcards are sufficient for most cases.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
binkle

Post by binkle »

Yes, please do this.
Shouldn't be much effort to be implemented.

Thanks.
Post Reply