Previous | Contents | Next

B.3 Library Uninstallation

B.3.1 Introduction

The UnInstallLib macro allows you to uninstall a library. It sets the error flag if something went wrong during library removal.

B.3.2 Parameters

libtype shared uninstall file

libtype

The type of the library

DLL - Dynamic link library (DLL)
REGDLL - DLL that has to be unregistered
REGEXE - EXE COM server that has to be unregistered using /unregserver
TLB - Type library or DLL that contains a type library
REGDLLTLB - DLL that has to be unregistered and contains a type library

shared

Specify whether the library is shared with other applications

NOTSHARED - The library is not shared
SHARED - The library is shared and should be removed if the shared library count indicates that the file is not in use anymore..

uninstall

Specify the uninstallation method

NOREMOVE

REBOOT_PROTECTED

NOREBOOT_PROTECTED

REBOOT_NOTPROTECTED

NOREBOOT_NOTPROTECTED

file

Location of the library

B.3.3 Options

Define any of the following before inserting the UnInstallLib macro to modify its behavior as specified.

B.3.3.1 LIBRARY_X64

B.3.3.2 LIBRARY_SHELL_EXTENSION

B.3.3.3 LIBRARY_COM

B.3.4 Example

 !insertmacro UnInstallLib REGDLL SHARED REBOOT_NOTPROTECTED $SYSDIR\dllname.dll

Previous | Contents | Next