Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Problem mit XML File Change


Best Answer Kurt-B , 28 January 2014 - 15:28

Das Problem ist gelöst, Grund waren fehlerhafte Einträge in der German Stringtabelle.

Go to the full post


4 replies to this topic

Kurt-B

Kurt-B
  • Full Members
  • 10 posts

Posted 27 January 2014 - 15:22

Problem: XML File Change funktioniert bei der Installation nicht. Mit der Funktion "Test XML File Install Changes..." funktionieren alle Änderungen korrekt.

 

InstallShield "Test XML File Install Changes..." Log:

Processing XPath '//'
Processing XPath '//Prefix:ServiceLocations[@z:Id="4" and @z:Size="1"]'
Processing XPath '//Prefix:ServiceLocations[@z:Id="4" and @z:Size="1"]/d2p1:ClientServiceConfiguration.ServiceLocation[@z:Id="5"]'
Processing XPath '//Prefix:ServiceLocations[@z:Id="4" and @z:Size="1"]/d2p1:ClientServiceConfiguration.ServiceLocation[@z:Id="5"]/d2p1:RemoteHost[@z:Id="6"]'
Processing XPath '//Prefix:UniqueAppId[@z:Id="2"]'

--> Alle XML-Changes OK

 

Nach der Installation, MSI-Log:

InstallShield 11:36:36: Processing XPath '//'
InstallShield 11:36:36: Processing XPath '//Prefix:'
InstallShield 11:36:36: XPath '//Prefix:' not found, creating
InstallShield 11:36:36: Processing XPath '//Prefix:/Prefix:'
InstallShield 11:36:36: XPath '//Prefix:/Prefix:' not found, creating
InstallShield 11:36:36: Processing XPath '//Prefix:/Prefix:/d2p1:'
InstallShield 11:36:36: XPath '//Prefix:/Prefix:/d2p1:' not found, creating

--> Keine XML-Changes gemacht

 

Es scheint, dass der XPath aus irgendwelchen Gründen nicht korrekt ist.

Wo könnte das Problem liegen?

Version: InstallShield 2012 / 2013 Premier.



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 January 2014 - 20:19

Die Daten sind alle statisch, oder kommt da was aus Properties?



Kurt-B

Kurt-B
  • Full Members
  • 10 posts

Posted 28 January 2014 - 07:37

Die Daten im XPath sind alle statisch, nur der Inhalt der geschrieben wird, kommt aus Properties.



Kurt-B

Kurt-B
  • Full Members
  • 10 posts

Posted 28 January 2014 - 11:14

Ich habe den Grund für das Problem herausgefunden und zwar wird die Tabelle ISXmlElement nicht korrekt geschrieben. In der InstallShield Umgebung ist die Tabelle in Ordnung, wenn ich die Tabelle im MSI mit Orca anschaue, so ist sie fehlerhaft (siehe beiliegende Screenshots).

 

Was könnte der Grund sein, dass die Tabelle falsch geschrieben wird? Im Build Log gibt es diesbezüglich keine Warnung.

Attached Images

  • ISXmlElement_InstallShield.jpg
  • ISXmlElement_MSI-Orca.jpg


Kurt-B

Kurt-B
  • Full Members
  • 10 posts

Posted 28 January 2014 - 15:28   Best Answer

Das Problem ist gelöst, Grund waren fehlerhafte Einträge in der German Stringtabelle.