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

Problems using the "XML File Changes" feature


1 reply to this topic

daktmacfan

daktmacfan
  • Members
  • 12 posts

Posted 26 May 2006 - 16:31

I am using IS 11.5 Pro and facing issues updating an XML file that I am installing with my setup. Here are all the details of my issue:

1) I create a component "C1LicUpdater.AddIn" and associate it with a feature and set it's install location. I then add the XML file to the component.

2) I go to the "XML File Changes" tab and do a full import of the xml file. I set the location of the xml file to the same location as the file I am installing Here is all that's in the xml file:

<?xml version="1.0" encoding="UTF-16" standalone="no"?>
<Extensibility xmlns="http://schemas.micro...Extensibility">
<HostApplication>
<Name>Microsoft Visual Studio</Name>
<Version>8.0</Version>
</HostApplication>
<Addin>
<FriendlyName>C1LicenseUpdater</FriendlyName>
<Description>Updates license.licx files</Description>
<FullClassName>C1LicUpdater.Connect</FullClassName>
<Assembly>C1LicUpdater.dll</Assembly>
<LoadBehavior>0</LoadBehavior>
<CommandPreload>1</CommandPreload>
<CommandLineSafe>0</CommandLineSafe>
</Addin>
</Extensibility>

3) I only need to update the Assembly node so I go to the assembly node and select the Advanced tab and set the elements contents to be [INSTALLDIR]bin\C1LicUpdater.dll.

4) I build the install and run the setup and field in the XML file is not updated.

5) I am trying to use this XML feature in install shield because i wrote a console C# application that updates the xml file but a console windows flashes up upon install. I am attaching the c# source code. I am calling this console app with another app that call it like this:

ProcessStartInfo ps = new ProcessStartInfo("C1LicUpdater_AddIn.exe", join);
ps.WorkingDirectory = targetDirectory;
ps.UseShellExecute = false;
ps.CreateNoWindow = true;
Process proc = new Process();
proc.StartInfo = ps;
proc.Start();
proc.WaitForExit();

If anybody has any thoughts or suggestions on either one of these please let me know.

thanks!

InstallSite.org forums rock!


CODE
[/CODE][CODE]


LeeB

LeeB
  • Members
  • 1 posts

Posted 31 May 2006 - 19:33

I get an Unexpected error updating XML files. Error -2302

It doesn't update that well. I feel like just creating a VB script to do the whole thing. Why is InstalllShield so user unfriendly? With Wise Installer for Windows I can read/update an INI or XML file with ease. There is no real help online for either programs though.

Steps: In the Install Designer for XML File Changes...

1. I attached my Service.xml file
2. I set the XML File Destination
<TARGETDIR>\CONFIG
3. Select the associated feature it belongs to.
4. Drill down to the object I want to update.
5. Compile and run.

When attempting to update the file it gets an error -2302.
If I remove the file it gets an error 3. I love the descriptive error messages!