Hi,
I am getting an System.InvalidOperationException while compiling
a WXS file with util:PermissionEx
element under RegistryKey element. I
am using WIX build 3.6.3303.0.
These are the elements –
<RegistryKey Root="HKLM"
Key="SOFTWARE\MyProject">
<RegistryValue Name="Root" Type="expandable"
Value="C:\TestRoot" />
<util:PermissionEx
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
User="ProjectAdministrators"
GenericAll="yes" />
</RegistryKey>
Here is the exception with stack trace –
candle.exe : error CNDL0001 : Cannot set column
'SecureObject' with a null value because this is a required field.
Exception Type: System.InvalidOperationException
Stack Trace:
at Microsoft.Tools.WindowsInstallerXml.ColumnDefinition.ValidateValue(Object
value)
at
Microsoft.Tools.WindowsInstallerXml.Extensions.UtilCompiler.ParsePermissionExElement(XmlNode
node, String objectId
, String componentId, Boolean
win64, String tableName)
at
Microsoft.Tools.WindowsInstallerXml.Extensions.UtilCompiler.ParseElement(SourceLineNumberCollection
sourceLineNumb
ers, XmlElement
parentElement, XmlElement element, String& keyPath, String[] contextValues)
at
Microsoft.Tools.WindowsInstallerXml.Extensions.UtilCompiler.ParseElement(SourceLineNumberCollection
sourceLineNumb
ers, XmlElement
parentElement, XmlElement element, String[] contextValues)
at
Microsoft.Tools.WindowsInstallerXml.CompilerCore.ParseExtensionElement(SourceLineNumberCollection
sourceLineNumber
s, XmlElement parentElement,
XmlElement element, String[] contextValues)
at
Microsoft.Tools.WindowsInstallerXml.Compiler.ParseRegistryKeyElement(XmlNode
node, String componentId, Int32 root,
String parentKey, Boolean win64Component,
String& possibleKeyPath)
at
Microsoft.Tools.WindowsInstallerXml.Compiler.ParseComponentElement(XmlNode
node, ComplexReferenceParentType parent
Type, String parentId, String
parentLanguage, Int32 diskId, String directoryId, String srcPath)
at
Microsoft.Tools.WindowsInstallerXml.Compiler.ParseDirectoryRefElement(XmlNode
node)
at
Microsoft.Tools.WindowsInstallerXml.Compiler.ParseProductElement(XmlNode node)
at
Microsoft.Tools.WindowsInstallerXml.Compiler.ParseWixElement(XmlNode node)
at Microsoft.Tools.WindowsInstallerXml.Compiler.Compile(XmlDocument
source)
at
Microsoft.Tools.WindowsInstallerXml.Tools.Candle.Run(String[] args)
Is this a known issue? Are there any other alternatives to
util:PermissionEx ?
Regards,
Surya
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users