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

Enable relative path with double dot in File/@Source attribute #5737

Closed
daliboris opened this Issue Dec 30, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@daliboris

daliboris commented Dec 30, 2017

Feature requests

If this issue is a feature request:

  • Describe the scenario and benefits that the feature supports.

I want set @Source attribute of the File element to the parent folder of the Wix project. Double dot is standard way to do this (something like "$(var.ProjectDir)..\Resources\File.txt").
If I use this kind of relative path with current version of Wix (v3.11) there is an error in during package generation: ICE03: Invalid Filename; Table: File, Column: FileName, Key(s): FILE_File.txt.

  • Describe how you're accomplishing the feature today (if possible).

I'm using configuration file in my project to define common variable with absolute path to the parent folde.

  • Describe what you'd like the new feature to do.

When generating contents files relative path should be converted to absolute path. In C# it can be accomplished with Path.GetFullPath((new Uri(relative_path)).LocalPath);

@barnson

This comment has been minimized.

Show comment
Hide comment
@barnson

barnson Dec 30, 2017

Member

Please post the WiX authoring that causes that error.

Member

barnson commented Dec 30, 2017

Please post the WiX authoring that causes that error.

@barnson barnson added the norepro label Jan 18, 2018

@barnson

This comment has been minimized.

Show comment
Hide comment
@barnson

barnson Jan 18, 2018

Member

@Source works with relative paths. @Name must be a legal file name, not a path.

Member

barnson commented Jan 18, 2018

@Source works with relative paths. @Name must be a legal file name, not a path.

@barnson barnson closed this Jan 18, 2018

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