ActiveX Dll Component Register: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Added category links.)
(UnRegDLL call fixed (changing "R" hightcase from "r" lowercase))
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{|align=right
{{PageAuthor|Lorien}}
|<small>Author: [[{{ns:2}}:Lorien|Lorien]] ([[{{ns:3}}:Lorien|talk]], [[{{ns:-1}}:Contributions/Lorien|contrib]])</small>
 
|}
<br style="clear:both;">
== Description ==
== Description ==
'''Superseded by:''' ''Install Library'' header.<br>
'''Superseded by:''' ''Install Library'' header.<br>
'''Supported on:''' ''Windows 95-98''.
'''Supported on:''' ''All Windows versions''.


This example use "regsvr32.exe" to register and unregister a dll.
This example use RegDLL and UnregDLL to register and unregister a DLL.


== The Script ==
== The Script ==
<highlight-nsis>
<highlight-nsis>
;To Register a DLL
;To Register a DLL
Exec 'regsvr32.exe /s "$INSTDIR\MyDLL.dll"'
RegDLL "$INSTDIR\MyDLL.dll"


;To Unregister a DLL
;To Unregister a DLL
Exec 'regsvr32.exe /s /u "$INSTDIR\MyDLL.dll"'
UnRegDLL "$INSTDIR\MyDLL.dll"
</highlight-nsis>
</highlight-nsis>


[[{{ns:14}}:DLL, OCX, TLB Functions]]
[[Category:DLL, OCX, TLB Functions]]

Latest revision as of 09:16, 18 December 2008

Author: Lorien (talk, contrib)


Description

Superseded by: Install Library header.
Supported on: All Windows versions.

This example use RegDLL and UnregDLL to register and unregister a DLL.

The Script

;To Register a DLL
RegDLL "$INSTDIR\MyDLL.dll"
 
;To Unregister a DLL
UnRegDLL "$INSTDIR\MyDLL.dll"