![]() |
#1 |
Junior Member
Join Date: Jan 2021
Posts: 12
|
RegDll and ERRO_SUCCESS
I use the RegDLL but it does not work correct. Therefor I want to see the Error flag and to see the ERROR_SUCCESS.
|
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
What does not work? Post some example code.
You can't register a 64-bit dll this way, you must use Library.nsh. RegDll will fail if the dll depends on some other dll that is not on the system. IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 | ||
Junior Member
Join Date: Jan 2021
Posts: 12
|
Here is my code:
Quote:
When I run my project and start the printing, wich the DLL is there for, I get an error: Quote:
|
||
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
You code does not make much sense, you do SetOutPath $INSTDIR but you access $INSTDIR\Programs!
RegDll is just LoadLibraryEx(path, 0, LOAD_WITH_ALTERED_SEARCH_PATH) + GetProcAddress. If that fails it probably means it could not load your dll. If your dll depends on something that is not in system32 then you can try: PHP Code:
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 | |
Junior Member
Join Date: Jan 2021
Posts: 12
|
I still do not get it to work.
My code is now: Quote:
When I run the regsvr32 manually, I have to run it as Administrator. Could it be that this fails when run in this way? The Helpfiloe in the Dependencywalker is empty, so I do not know how to run the logging function. |
|
![]() |
![]() |
![]() |
#6 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
I can't tell you if it needs to run as administrator or not, only the developer of that .ocx file knows. Unless it only writes to HKEY_CURRENT_USER, it needs to run as admin.
The logging function is in the Profile menu (IIRC). IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|