|
|
|
|
#1 |
|
Junior Member
Join Date: May 2005
Posts: 25
|
Some questions about macro InstallLib
Hi,
Some questions about macro InstallLib: (Q1 Why the case1 gives troubles when case2 operates smoothly?case1 ------ code: case2 ------ Only the following line is different, all other things are same as case1: code: There is no problem with case2. In case of case1, the (-)system section fails (actually skipped as the log says...), when the installer is ruuning for the first time. However on 2nd time (or 3rd, 4th...etc.) it behave correctly. So what's gone wrong in 1st. time? (Q2 What to do if I have to install and uninstall both COM and NO-COM dlls at the same time?------------ NSIS:2.0.6 OS:Win98SE ------------ Thanks, playwin2 |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
You must create $INSTDIR before you try to install DLLs in it. Use SetOutPath or CreateDirectory.
To use the InstallLib macro for COM for some DLLs and for non-COM for others, simply define LIBRARY_COM before calling InstallLib that installs COM DLLs and undefine it before call InstallLib that installs non-COM DLLs. For example: code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2005
Posts: 25
|
Thank you.
For the 1st. part, if I got you right, that you are saying that if target dir. is not $INSTDIR, then only I can skip the creation of $INSTDIR for dlls. Okay I will keep that in mind. Thanks again, playwin2 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|