Archive: Question on inner workings of InstallLib


Question on inner workings of InstallLib
Say I do the following:


<!------------------Snip------------------>
Section "Install"
;Install Files
SetOutPath $INSTDIR
SetCompress Auto
SetOverwrite IfNewer
File /r ".\myDll.dll"

;un and re Register DLL's...
IfFileExists "$INSTDIR\myDll.dll" 0 +2
StrCpy $ALREADY_INSTALLED 1

!insertmacro InstallLib REGDLL $ALREADY_INSTALLED NOREBOOT_NOTPROTECTED .\myDll.dll $INSTDIR\myDll.dll %TEMP%

SectionEnd
<!----------------End Snip------------------>

First, "File /r" will write over the VB6 dll that's already there. Next InstallLib will come around and try to unregister and register the dll that I've put in his place. Is InstallLib able to uninstall (regsvr32 /u) a dll that's already been deleted? Am I doing this wrong?

Thanks Much,
Eric


InstallLib both extracts and registers the DLL. You shouldn't extract it on your own before calling InstallLib.


Cool, thanks!