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
- :
- XML File Change & Error -2004
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
‎Aug 31, 2009
09:38 AM
XML File Change & Error -2004
Hello everyone,
First of all, I should say that I'm new with Installshield (using 2010 Pro Edition) and if this question has been already answer, please indicate me were I can find the solution. Thanks 🙂
I've a lot of trouble to use the XML File change feature with my package.
The idea is to request 2 values (hostname & port number) to the user during the setup (using SdShowDlgEdit2). Then when copying the files installshield should modify the xml file included into the package with the values entered by the user.
In the script I've the following code in the function OnFirstUIBefore(), between Dlg_ObjDialogs & Dlg_SdStartCopy2 where I've added my own label with the following code:
My XML file that I'm trying to change is a .net config file (MyApplication.exe.config).
The thing is that I've been able to make this package working on my computer but every now and then the following error message appears:
"Unexpected error updating XML files. Error: -2004"
Furthermore, I've the same issue on other computer.... and I do not find why and more important how to correct this.
The most weird thing is that I've been able to make it worked once without any problem. And believe me when I said that I've not changed anything (I know all users said that :rolleyes:)
I've no anti-virus, I've the latest .Net framework.... I even install MSXML 6.0 Sp1 as a prerequisite but no luck!
Any suggestions or idea, because right now I'm having a sort supply of imagination...
Thanks in advance
First of all, I should say that I'm new with Installshield (using 2010 Pro Edition) and if this question has been already answer, please indicate me were I can find the solution. Thanks 🙂
I've a lot of trouble to use the XML File change feature with my package.
The idea is to request 2 values (hostname & port number) to the user during the setup (using SdShowDlgEdit2). Then when copying the files installshield should modify the xml file included into the package with the values entered by the user.
In the script I've the following code in the function OnFirstUIBefore(), between Dlg_ObjDialogs & Dlg_SdStartCopy2 where I've added my own label with the following code:
szTitle = Client Configuration";
szMsg = "The following parameters will be used to configure the connection details of the client on this computer.";
szField1 = "Server:";
szField2 = "Port:";
svServerAddress = "localhost";
svPortNumber = "8086";
nResult = SdShowDlgEdit2 (szTitle, szMsg , szField1 , szField2 ,svServerAddress, svPortNumber);
if (nResult = BACK) goto Dlg_ObjDialogs;
TextSubSetValue("",svServerAddress , TRUE);
TextSubSetValue("",svPortNumber , TRUE);
My XML file that I'm trying to change is a .net config file (MyApplication.exe.config).
The thing is that I've been able to make this package working on my computer but every now and then the following error message appears:
"Unexpected error updating XML files. Error: -2004"
Furthermore, I've the same issue on other computer.... and I do not find why and more important how to correct this.
The most weird thing is that I've been able to make it worked once without any problem. And believe me when I said that I've not changed anything (I know all users said that :rolleyes:)
I've no anti-virus, I've the latest .Net framework.... I even install MSXML 6.0 Sp1 as a prerequisite but no luck!
Any suggestions or idea, because right now I'm having a sort supply of imagination...
Thanks in advance
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 04, 2009
03:26 AM
Sorry guys, but am I the only one getting this issue ? :confused:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 24, 2013
10:12 PM
Please check the path of XML file change.
This error happened in 64 bit environment when working with 32 bit install script.
This error happened in 64 bit environment when working with 32 bit install script.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2015
05:03 AM
Hi querton,
This bug occurs when I install program and click on "Cancel" button (The installation was not completed).
Some .xml files which you attached into your project was created when you installed. When you install again -> error -2004
Solution: Go to your setup location and delete your set up file, reinstall.
Regard,
This bug occurs when I install program and click on "Cancel" button (The installation was not completed).
Some .xml files which you attached into your project was created when you installed. When you install again -> error -2004
Solution: Go to your setup location and delete your set up file, reinstall.
Regard,