Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear if "Name" attribute is required in RemoveFile tag #3667

Closed
wixbot opened this issue Jun 19, 2012 · 4 comments
Closed

Unclear if "Name" attribute is required in RemoveFile tag #3667

wixbot opened this issue Jun 19, 2012 · 4 comments
Milestone

Comments

@wixbot
Copy link

wixbot commented Jun 19, 2012

It is unclear if "Name" attribute is required in RemoveFile tag.

  1. In http://wix.sourceforge.net/manual-wix2/wix_xsd_removefolder.htm it has nothing in "required" column
  2. If I do not specify the "Name" attribute I get an error:
    CNDL0010 : The RemoveFile/@name attribute was not found; it is required.
  3. If I specify an empty value for the "Name" attribute I get an error:
    error CNDL0006 : The RemoveFile/@name attribute's value cannot be an empty string. If you want the value to be null or empty, simply remove the entire attribute.

Originally opened by anastasia-k from http://sourceforge.net/p/wix/bugs/2990/

@wixbot
Copy link
Author

wixbot commented Sep 21, 2012

It's marked correctly in the WiX v3.x doc: http://wix.sourceforge.net/manual-wix3/wix_xsd_removefile.htm

@wixbot
Copy link
Author

wixbot commented Sep 21, 2012

Still the suggestion to remove he entire Name attribute is confusing - the error message should explain that this attribute is required and non-nullable.

@wixbot
Copy link
Author

wixbot commented Oct 24, 2013

Originally changed by barnson
Area changed from documentation to compiler
Release changed from future to v3.8
Resolution set to fixed
Status changed from Untriaged to Resolved

@wixbot wixbot added this to the v3.8 milestone Dec 20, 2015
@wixbot wixbot closed this as completed Dec 20, 2015
@williamharnois
Copy link

I ran into the top issue trying to recreate a remove file entry with an empty string, so that it would remove the directory if empty.

The key with wix is you have to use "RemoveFolder", not "RemoveFile" for removing an empty dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants