|
|
#1 |
|
Junior Member
|
Hey guys,
How do I (via the scripting) insert/update a .dll file? For example, for a full install of one of my programs I will need to package the following files with the installation file: Uses1=Msvbvm60.dll Uses2=oleaut32.dll Uses3=olepro32.dll Uses4=asycfilt.dll Uses5=stdole2.tlb Uses6=COMCAT.DLL Uses7=MSINET.OCX Uses8=richtx32.ocx Uses9=tabctl32.ocx Uses10=Mscomctl.ocx Uses11=mscomct2.ocx Uses12=Comdlg32.ocx I would like to know how to properly install + register these controls via the NSIS. Cheers, Andrew |
|
|
|
|
|
#2 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
I have written an UpgradeDLL macro. Have a look at the 'Useful funcions' appendix in the NSIS 2 documentation.
|
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: Nov 2006
Location: Sydney Australia
Posts: 14
|
Quote:
i am totally new to NSIS ( couple of days only ) and most of these days been wasted on trying to install few dll files that my application uses. i've used InstallLib REGDLLTLB $Already_Installed "file.dll" "dest\file.dll" "$temp" with no success at all... keeps that it couldn't open the dest\file.dll reading this thread, i tried using UpgradeDLL macro also with no success... i assumed that upgradedll creates a new dll if the file doesn't exist.. am i right??? thanx for your attention.. |
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
Note that a regular DLL does NOT NEED registering. Only DLL and ActiveX (OCX) components need that.
This can be a reason your installer fails. "Just do it" |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Nov 2006
Location: Sydney Australia
Posts: 14
|
thanx for ur reply Onad,
Basically your saying that using the keyword "File" should be used to copy these dlls into the INSTDIR. thats wat i had at the first place, and all was well... but when i read the manual, and 90% of InstallDLL forums here, they advice on registering dll files... for now i will be satisfied with just putting these dlls in the directory. thanx again Onad, Simon |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|