ActiveX Dll Component Register: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.)
(UnRegDLL call fixed (changing "R" hightcase from "r" lowercase))
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{PageAuthor|Lorien}}
== 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>


Page author: [[User:Lorien|Lorien]]
[[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"