Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 13th March 2006, 20:42   #1
tcdmail
Junior Member
 
Join Date: Mar 2006
Posts: 2
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
tcdmail is offline   Reply With Quote
Old 13th March 2006, 21:10   #2
biggena
Guest
 
Posts: n/a
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.
  Reply With Quote
Old 13th March 2006, 21:17   #3
tcdmail
Junior Member
 
Join Date: Mar 2006
Posts: 2
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
tcdmail is offline   Reply With Quote
Old 14th March 2006, 07:45   #4
RobGrant
Senior Member
 
Join Date: Sep 2004
Location: Nottingham
Posts: 263
This is built into NSIS.

There are multiple free, portable XML parsers. Yahoo have Javascript ones, dotGNU have one, just Google.
RobGrant is offline   Reply With Quote
Old 14th March 2006, 11:48   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,338
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 11th May 2006, 10:15   #6
blue_harvester
Junior Member
 
Join Date: May 2006
Posts: 27
Quote:
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?
blue_harvester is offline   Reply With Quote
Old 19th May 2006, 08:03   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,338
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump