|
|
#1 |
|
Registered User
Join Date: May 2002
Posts: 2
|
When i use the modified UpgradeDLL macro in my nsi script, it performs the first DLL ok, however when a second DLL is process MAkeNSIS says that the first of the goto brances (namely: regreboot) is defined twice.
Possible i am misusing the macro. Is there any document/example about macro usage? Thanks, Suha. |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Sounds like a bug in the macro to me...
Try adding the DLL defined name to the regreboot label. For example, if you define or send the DLL name as ${DLLNAME} use regreboot_${DLLNAME}: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Registered User
Join Date: May 2002
Posts: 2
|
Yes, that was the soln I just found. Eg:
code: |
|
|
|
|
|
#4 |
|
Junior Member
|
FYI - Your macro has a couple flaws. 1.) The second "IntCmpU" statement will NEVER be executed! 2.) The "DELETE" followed by the "RENAME" will fail (they get reversed) on Win95 machines when the DLL is in use.
Here is a thread with a fix. http://forums.winamp.com/showthread....threadid=77771 |
|
|
|
|
|
#5 |
|
Senior Member
|
All a macro does is insert the exact text. So if you use it twice and you have labels in the macro, they will get defined twice.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|