Re: Adding a dll

Jonathan Watt <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Daniel Veditz wrote:
> Jonathan Watt wrote:
> 
> 
>>I would like to create installers for modified builds of Mozilla and 
>>Firefox. No additional downloadable components will be required since 
>>I'm just adding svg support. I've been reading the instructions at:
>>
>>http://www.mozilla.org/projects/firefox/installer/build.html
>>http://www.mozilla.org/projects/xpinstall/wizard/windows/
>>and surrounding docs
>>
>>I can build by just adding the file gdiplus.dll to 
>>redist\microsoft\system, so to create the installer I think I just need 
>>to change one or more of the scripts, but I'm not sure which one(s) or 
>>what changes to make. Can anyone help me, or point me in the right 
>>direction?
> 
> 
> GdiPlus.dll is a MS redistributable file, right? If so you'd want to add it
> to the following places:
> 
> http://lxr.mozilla.org/mozilla/source/xpinstall/packager/windows/makexpi.pl#82
> http://lxr.mozilla.org/mozilla/source/xpinstall/packager/win_gre/makexpi.pl#82
> http://lxr.mozilla.org/mozilla/source/toolkit/mozapps/installer/makexpi.pl#69
> 
> -Dan Veditz

That's great, thanks Dan! Yes gdiplus.dll is an MS dedistributable. I'll 
give that a go and hopefully it will work this time. :)

I have subsequently thought of another problem. The distributed version 
of that DLL should only be used by Mozilla when run on win2k and below 
since they don't have a version of gdiplus.dll. WinXP has a copy of this 
file and Mozilla should use it instead (apparently it will cause 
problems if it doesn't). Does the installer provide a way to detect the 
version of Windows and only install the file if it should be installed?

Thanks again,
Jonathan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.