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

error CNDL0104 : Not a valid source file; detail: Root element is missing. #172

Open
Vilayat-Ali opened this issue Nov 7, 2022 · 4 comments
Assignees

Comments

@Vilayat-Ali
Copy link

I have created a binary rust crate and when tried running cargo wix, this error popped up.

@volks73
Copy link
Owner

volks73 commented Nov 7, 2022

Did you run the cargo wix init command before running the cargo wix command to build the installer? What specific commands and arguments did you execute?

Could you share your main.wxs file?

@Vilayat-Ali
Copy link
Author

I ran cargo wix init. The file main.wxs is empty. It started working after I ran cargo wix print wxs > example.wxs and then copy pasted the contents of example.wxs into the main.wxs file.

@volks73
Copy link
Owner

volks73 commented Nov 8, 2022

Was there a package manifest, Cargo.toml file, in the folder where you executed the cargo wix init command?

I am glad you found a workaround, but it is very strange that an empty main.wxs file was created. Could you try again in a completely fresh folder/project, first doing a cargo init --bin then a cargo wix init?

Are you using a workspace/multi-package project?

@Vilayat-Ali
Copy link
Author

I did. And for some time it shows a blank wxs file

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

No branches or pull requests

2 participants