A newbie question
I use WIX 2.0.48 (3.x is not stable) and I have problems to edit XML files.
This is a part of the blank XML file that I have to edit:
[....]
<Program.Options languageID ="9"/>
<Plugins>
</Plugins>
[....]
This should be the edited part of the file:
<Program.Options languageID ="9"/>
<Plugins>
<Plugin Module="[PATH TO DLL File\xxxxx.dll]">
<Connection>Data Source=localhost\Instance; Type System Version=SQL
Server 2000; Integrated Security=SSPI; Initial Catalog=DATABASE; Connection
TimeOut=300</Connection>
</Plugin>
<Plugin Module="[PATH TO DLL File1\xxxxx1.dll]">
<Connection>Data Source= localhost\Instance; Type System Version=SQL
Server 2000; Integrated Security=SSPI; Initial Catalog=DATABASE; Connection
TimeOut=300</Connection>
</Plugin>
<Plugin Module"[PATH TO DLL File2\xxxxx2.dll]">
<Connection>Data Source= localhost\Instance; Type System Version=SQL
Server 2000; Integrated Security=SSPI; Initial Catalog=DATABASE; Connection
TimeOut=300</Connection>
</Plugin>
<Plugin Module"[PATH TO DLL File3\xxxxx3.dll]">
<Connection>Data Source= localhost\Instance; Type System Version=SQL
Server 2000; Integrated Security=SSPI; Initial Catalog=DATABASE; Connection
TimeOut=300</Connection>
</Plugin>
</Plugins>
The part in the wxs file:
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi"
xmlns:pca="http://schemas.microsoft.com/wix/2005/02/pubca">
[....]
<!--- The 1st Plugin -->
<XmlFile Id="plugin1" File="[INSTALLDIR]File.exe.config" Action="createElement"
Name="Plugin" ElementPath="//Plugins" Sequence="1"/>
<XmlFile Id="plugin2" File="[INSTALLDIR]File.exe.config" Action="setValue"
Name="Module" Value="[INSTALLDIR]plugin\xxxx.dll"
ElementPath='//Plugins/Plugin' Sequence='2'/>
<XmlFile Id="plugin3" File="[INSTALLDIR]File.exe.config" Action="createElement"
Name="Connection" ElementPath="//Plugins/Plugin" Sequence="3"/>
<XmlFile Id="plugin4" File="[INSTALLDIR]File.exe.config" Action="setValue"
ElementPath="//Plugins/Plugin/Connection" Value="Data Source=[SQLSERVER]; Type
System Version=SQL Server 2000; Integrated Security=SSPI; Initial
Catalog=DATABASE; Connection TimeOut=300" Sequence="4" />
<!--- The 2nd Plugin in a other Component-->
<XmlFile Id="plugin5" File="[INSTALLDIR]File.exe.config" Action="createElement"
Name="Plugin" ElementPath="//Plugins" Sequence="1"/>
<XmlFile Id="plugin6" File="[INSTALLDIR]File.exe.config" Action="setValue"
Name="Module" Value="[INSTALLDIR]plugin\xxxx1.dll"
ElementPath="//Plugins/Plugin" Sequence="2"/>
<XmlFile Id="plugin7" File="[INSTALLDIR]File.exe.config" Action="createElement"
Name="Connection" ElementPath="//Plugins/Plugin" Sequence="3"/>
<XmlFile Id="plugin8" File="[INSTALLDIR]File.exe.config" Action="setValue"
ElementPath="//Plugins/Plugin/Connection" Value="Data Source=[SQLSERVER]; Type
System Version=SQL Server 2000; Integrated Security=SSPI; Initial
Catalog=DATABASE; Connection TimeOut=300" Sequence="4"/>
[....]
</Wix>
This is the edited part of the File after installation if I use two "Plugin"
components:
<Plugins>
<Plugin Module="[PATH TO DLL File1\xxxxx1.dll]"><Connection>Data
Source=localhost\Instance; Type System Version=SQL Server 2000; Integrated
Security=SSPI; Initial Catalog=DATABASE; Connection
TimeOut=300</Connection><Connection/></Plugin><Plugin/></Plugins>
The compile Part
candle file.NET-XML.wxs -ext
Microsoft.Tools.WindowsInstallerXml.PcaCompiler,pcaext
light file.NET-XML.wixobj -out file.net.msi C:\WIX2\wixui.wixlib -loc
C:\WIX2\WixUI_de-de.wxl C:\WIX2\pubca.wixlib -ext
Microsoft.Tools.WindowsInstallerXml.PcaCompiler,pcaext C:\WIX2\wixca.wixlib
C:\WIX2\sca.wixlib
1. Problem :
No carriage return in the edited part of XML File (not so bad)
2. Problem :
The 2nd "Plugin" entry overwrites the first "Plugin" entry in the XML File.
What can I do to identifier the "Plugin" sections?
Is there a trick?
To change the Sequence entry doesn't have effect and the "Plugins" have to
named "Plugin" without a 2nd extension like <Plugin1> or <Pluginx> .
Best Regards
Michael Berger
Corporate IS | Technical Applications Team
Palfinger Service- und Beteiligungs-GmbH
F.-W.-Scherer-Straße 24
A-5101 Bergheim Salzburg
tel: +43 (0) 662 4684-2208
fax: +43 (0) 662 4684-148
mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.palfinger.com <http://www.palfinger.com/>
Firmensitz Salzburg - Landes- und Handelsgericht Salzburg
FN 225413 s UID ATU 54683203 DVR 0035548
47 49 54.50N, 13 03 43.02E
*********************************************************************
Hinweis: Dieses E-mail kann vertrauliche und geschützte Informationen
enthalten.
Sollten Sie nicht der beabsichtigte Empfänger sein, verständigen Sie
bitte den Absender und löschen Sie dieses E-mail dann sofort.
Notice: This e-mail contains information that is confidential and may
be privileged.
If you are not the intended recipient, please notify the sender and
then delete this e-mail immediately.
*********************************************************************
<<image001.jpg>>
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

