-
Notifications
You must be signed in to change notification settings - Fork 179
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
candle.exe : error CNDL0125 when building bootstrapper application from existing msi and add bootstrapper variable #902
Comments
Thank you for reporting it. |
Problem still exists when executing the build batch file generated with Is there any info that I can provide to help investigate this issue? |
Nothing comes to my mind. Then may be the extension dll is passed to the candle twice. But you saw the cmd file.... I am guessing there is no duplication there neither. Will need to look at it and give it some thinking. |
OK, the problem is caused by the flaw in the candle command generation algorithm. If you execute Thus your work around until the fix is available it to edit the batch file by removing the duplicated extension and then execute the batch file manually. In a mean time I will have a look at the actual cayuse of the problem. |
…application from existing msi and add bootstrapper variable
Fixed. Will be available in the very next release. Aiming on this weekend. // before
foreach (string dll in project.WixExtensions.Distinct())
extensionDlls += " -ext \"" + dll + "\"";
// after
foreach (string dll in project.WixExtensions.DistinctBy(x => x.ExpandEnvVars()))
extensionDlls += " -ext \"" + dll + "\""; |
* - Issue #902: candle.exe : error CNDL0125 when building bootstrapper application from existing msi and add bootstrapper variable * Issue #862: I can't seem to get it working * Issue #900: Preserve messageType value for ExternalUI setup with Custom Actions * Merge pull request #899 from Q-Sharp/master * Added Condition Net48_Installed * Implemented/fixed `WixEntity.ComponentCondition`. Triggered by "How to add Condition to ODBCDataSource #896 " * Issue #894: LicenseBootstrapperApplication do not add payloads in case of rtf license * - Added `Process.StartElevated` extension method
I got the following error when trying to build the bootstrapper application
candle.exe : error CNDL0125 : The extension 'Microsoft.Tools.WindowsInstallerXml.Extensions.BalCompiler' uses the same xml schema namespace, 'http://schemas.microsoft.com/wix/BalExtension', as previously loaded extension 'Microsoft.Tools.WindowsInstallerXml.Extensions.BalCompiler'. Please either remove one of the extensions or rename the xml schema namespace to avoid the collision.
The issue is reproducible from the
WixBootstrapper
project in the samples. The following sample codes is the (overly) simplified codes that demonstrate the issue.WixSharp version: 1.14.7.0
The difference is that when building the .msi during the runtime, bootstrapper application build successfully, but that's not the case when using a pre-built .msi file. In both cases,
WixExtension.Bal
is being included twice into theBundle
instance, once during the instantiation, the other during calls toVariable.Process()
atBundle.ToXml()
. Both case generated the same .wxs and looks OK (no duplication ofhttp://schemas.microsoft.com/wix/BalExtension
).The text was updated successfully, but these errors were encountered: