[wix-users] Error in Light
Habib Salim
habib at hsalim.com
Wed Apr 26 08:35:00 PDT 2017
Hi All,
I want to edit the Application configuration file at install. (see snippet
below)
When building the project, I get this error:
error LGHT0136: There was an error importing table 'XmlConfig' from file
'C:\Users\HSalim.HSALIM\AppData\Local\Temp\z4rjkqxa\XmlConfig.idt'
I have tried to clean before rebuild but that has not helped.
Thanks for looking at this.
Regards
Habib
------------------------------ from Product.wxs
---------------------------------------------
<Component Id="cmpAppConfig"
Guid="7C93264D-6DBA-4614-9693-5AC244F30986" KeyPath="yes">
<File Source ="$(var.SourceFilesDir)\$(var.ExeName).config">
<util:PermissionEx User="Users" Domain="[LOCAL_MACHINE_NAME]"
GenericAll="yes"/>
</File>
</Component>
<Component Id="cmpModifyApplicationConfig"
Guid="43E01F65-1C37-49F1-BFD5-D873C349AF65" KeyPath="yes">
<util:XmlConfig Id="editConnectionString"
File="$(var.SourceFilesDir)\$(var.ExeName).config"
Action ="create"
On="install"
Node="value"
Name="connectionString"
Value="Data Source=[SERVER_NAME];Initial
Catalog=[DATABASE_NAME];Integrated Security=True"
ElementPath="//configuration/connectionStrings/add[\[]@
name
='HSalimCo.WpfPivotViews.Properties.Settings.ConnectionString'[\]]/value"
Sequence="1"/>
</Component>
------------------------------ Contents of XmlConfig.idt
---------------------------------
XmlConfig File ElementPath VerifyPath Name Value
Flags Component_ Sequence
s72 l255 l0 L0 L255 L0 i4 s72 I2
XmlConfig XmlConfig
editConnectionString
C:\VS2017\HSalimCo\PivotViews\HSalimCo.WpfPivotViews\bin\Debug\HSalimCo.Wp
fPivotViews.exe.config //configuration/connectionStrings/add[\[]@
name
='HSalimCo.WpfPivotViews.Properties.Settings.ConnectionString'[\]]/value
connectionString Data Source=[SERVER_NAME];Initial
Catalog=[DATABASE_NAME];Integrated Security=True 274
ModifyApplicationConfig 1
More information about the wix-users
mailing list