This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Error while updating existing xml file
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 07, 2007
02:09 PM
Error while updating existing xml file
Hi, I'm using IS 2008, Basic MSI.
My setup writes an xml file to the target machine. If this xml file already exists, then the setup produces an error and rolls back. I have selected the option "Create IF exists" in the xml files view, so I thought there would be no problem if the file already exists.
How can one update an existing xml file?
Best regards, H.
My setup writes an xml file to the target machine. If this xml file already exists, then the setup produces an error and rolls back. I have selected the option "Create IF exists" in the xml files view, so I thought there would be no problem if the file already exists.
How can one update an existing xml file?
Best regards, H.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 08, 2007
09:31 AM
What do you see in a verbose MSI log? There should be some indication why the update causes a rollback, and it might not be simple presence or absence of the file; perhaps the present file is malformed XML?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 08, 2007
10:10 AM
Hi Michael, Thanks for your reply.
In the Msi verbose Log there wasn't shown an error. The rollback is caused here:
ISXmlCosting. return value 1.
MSI (s) (64:1C) [16:44:25:062]: Doing action: ISXmlRollback
As for malformed xml: I'm doing the following. My setup creates an xml-file in a folder c:\programFiles\test. Leaving this same xml-file unmodified in this folder, removing the product and installing it again causes a roll-back. Deleting the xml-file allows reinstallation.
In the Msi verbose Log there wasn't shown an error. The rollback is caused here:
ISXmlCosting. return value 1.
MSI (s) (64:1C) [16:44:25:062]: Doing action: ISXmlRollback
As for malformed xml: I'm doing the following. My setup creates an xml-file in a folder c:\programFiles\test. Leaving this same xml-file unmodified in this folder, removing the product and installing it again causes a roll-back. Deleting the xml-file allows reinstallation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 08, 2007
10:45 AM
After reading this bug-report: http://support.installshield.com/kb/view.asp?articleid=Q111225 and after removing the link in the xml files root element (which contained forward slashes), the setup could process an existing xml file. Is there any workaround to process xml files containing slashes in Installshield 2008?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 09, 2007
09:35 AM
According to our records, that behavior was resolved back in IS11, so it should not be relevant unless we've had a regression in this area. If it's just a matter of the xpath query misparsing slashes, you might be able to replace the == or use an xpath replace() function, etc. Do you have a (preferably minimal) example of the types of queries that fail so I can verify in house and report?