View Full Version : XML .config file won't install

11-11-2004, 05:50 PM
Hi all -
I've installed (2) .NET services sucessfully, but when I add a .config file, (IS 10.5, basic MSI project), it seems not only is the file not installed, but neither of the services, their .dlls, or even their directory gets created/installed.

I just import a plain old x.y.z.config file for my assembly through SystemConfiguration\XML File Changes, and left the path to [INSTALLDIR] - haven't even tried to make changes to the file.

Any ideas?

Thanks - Ben

Stefan Krueger
11-12-2004, 02:19 AM
Maybe the respective component is not connected to a feature? Or the feature is not selected for installation? See the Setup Design View.

11-15-2004, 10:34 AM
Stefan -

Thanks for the reply. The file is connected to a feature and shows up in the Setup Design view. I'm wondering what I'm doing wrong; after importing a file no directories (including my [INSTALLDIR]), are created.

Also, upon further investigation, my database is created, and a custom action runs successfully, (creates some accounts), but the actual script for it is not run, or else is rolled back, maybe?

It seems as if the install is failing?

here's a portion of the log file:

Action start 10:13:24: ISSQLServerRollback.
Action ended 10:13:24: ISSQLServerRollback. Return value 1.
Action start 10:13:24: ISXmlCosting.
DEBUG: Error 2769: Custom Action ISXmlCosting did not close 6 MSIHANDLEs.
Internal Error 2769. ISXmlCosting, 6
Action ended 10:13:24: ISXmlCosting. Return value 5.
Action start 10:13:24: ISCleanUpSuccess.
1: Shutting down the PRC server...
1: RPC server shut down.

This looks similar to :
http://community.installshield.com/showthread.php?t=140854, which you have also answered.

Any insight would be greatly appreciated.

Thanks! - Ben

(I should mention that the install appears to run successfully, from the end user, (GUI), perspective.)

11-15-2004, 12:05 PM
Stefan - I'm going to switch this to the above thread.

Thanks - Ben

Christopher Painter
01-26-2005, 11:19 AM

Has IS Fixed this yet?

01-27-2005, 03:42 AM
Don't know if this helps:
The XML File Change Functionality can not deal with XML Files or config Files which have an elment under the root element like Doctype for example:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

Trying to change this XML at runtime causes an error similar to yours. I think this is a known bug , at least I remember reading it somewhere on the kb.
If you cut the doctype element it works (at least at my project..).

After wasting days of work trying to make XML File Change work, I decided to make changes maually with INSTALLSCRIPT and defined placeholders in the destination files. Shurely not the most elegant solution, but it works for every file without troubles.

Christopher Painter
01-27-2005, 08:14 AM
Thanks, I'll give that a try. I wasted an entire morning yesterday trying to get XML changes to work and eventually just set up a series of conditional components to install one of many copies of my file instead of trying to set it at runtime. I didn't want to violate the component rules so I had to use different filenames for each one and then an entry in the DuplicateFiles table to make a copy for the real one.

Kinda sucks to pay money for an upgrade just to find out it doesn't work ( again and again ).... ohwell, guess that's why they call it the "bleeding edge".

01-27-2005, 09:33 AM
Well, I've posted twice on the problems with XML changes in IS 10.5 with absolutely no response from InstallShield.

The technical documentation on this feature is so brief as to be useless and so far as I can tell, no one has managed to get XML file changes working properly.

With the amount of time I have wasted on this "feature", I would have been better off rebuilding all of my installers in another product.

Does InstallShield plan on fixing this feature anytime soon?

01-28-2005, 03:28 PM
I have posted a solution to over come problems with xml .config file installation in the following thread title
"Installscript msi project not installing files".


01-28-2005, 03:45 PM
Nice - thanks, Sada.

Here's the link - it's over in Install Scripts forum: