Add a shared DLL: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Wikipedia python library) |
m (Updated author and download links, and changed format of some pages.) |
||
Line 24: | Line 24: | ||
FunctionEnd</highlight-nsis> | FunctionEnd</highlight-nsis> | ||
Page author: sunjammer | Page author: [[User:sunjammer|sunjammer]] |
Revision as of 12:16, 23 April 2005
Description
This function increments the references count of a shared DLL.
The Function
; AddSharedDLL ; ; Increments a shared DLLs reference count. ; Use by passing one item on the stack (the full path of the DLL). ; ; Usage: ; Push $SYSDIR\myDll.dll ; Call AddSharedDLL ; Function AddSharedDLL Exch $R1 Push $R0 ReadRegDword $R0 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 IntOp $R0 $R0 + 1 WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 $R0 Pop $R0 Pop $R1 FunctionEnd
Page author: sunjammer