Archive: How to install MSXML


How to install MSXML
Hello,

I've developped an application which users the MSXML4.DLL. How can I include this file in the installer? As i've read in other posts you have to use re-distributables. But I can't find a redistributable for MSXML (in DLL format, i only find the one with MSM files)

What options are there to install MSXML via my NSIS script?
And if there's more than one suggestion which one is the most preferable?

Tnx in advance for the answers !

Kind regards,
tcdmail


Find following files in your System32 directory:
msxml4.dll, msxml4a.dll, msxml4r.dll

Copy them into directory of your installator script.
Add following lines to your script (inside corresponding section):

SetOutPath $SYSDIR
SetOverwrite off

File msxml4.dll
File msxml4a.dll
File msxml4r.dll
RegDLL $SYSDIR\msxml4.dll

SetOutPath "$INSTDIR"
SetOverwrite ifnewer

Above lines will install and register MSXML if it doesn't exist on system yet.


Tnx for the reply
My first thought was also doing this but other posts in this forum mentioned not to use the dll's from my system32 folder since these ones are only compatbile with the OS that's on my system.

I think this is a solution but i'm wondering if it's a good one.

Kind regards,
Tcdmail


This is built into NSIS.

There are multiple free, portable XML parsers. Yahoo have Javascript ones, dotGNU have one, just Google.


tcdmail, you can install the MSM using msiexec.exe. You can create a simple MSI, with WiX for example, that'll only install your MSM and install that. Search the forum for more details.


Originally posted by tcdmail
Tnx for the reply
My first thought was also doing this but other posts in this forum mentioned not to use the dll's from my system32 folder since these ones are only compatbile with the OS that's on my system.

I think this is a solution but i'm wondering if it's a good one.

Kind regards,
Tcdmail
I would also like more information on this.

What about instead of using the 3 dll files from the system32 folder, would it be possible to use the same 3 dll files that can be extraced from the msxmlcab.exe (downloadable here)?

Surely then these dlls can be used on whatever Win OS they're deployed onto using the RegDLL command in the NSIS sctipt?

It might be possible to install them using the Library macros. If their installer only installs those files, I don't see a reason why it shouldn't work, assuming the DLLs are not protected.