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

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

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

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

daliboris opened this issue Dec 30, 2017 · 2 comments
Labels

Comments

@daliboris
Copy link

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
Copy link
Member

barnson commented Dec 30, 2017

Please post the WiX authoring that causes that error.

@barnson
Copy link
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 as completed Jan 18, 2018
@robmen robmen added notabug and removed norepro labels Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants