Archive: Overwrite a OCX


Overwrite a OCX
How can I overwrote an OCX registered?
Curently, I get an error message.


Use the UpgradeDLL macro. It does the job for you, replacing after reboot if needed. Use:

!include UpgradeDLL.nsh

Open Include\UpgradeDLL.nsh or Appendix B for more details about using UpgradeDLL.


What do I have to enter as the third parameter (the temp file)?


Using the directory where you want to put the file itself should be good enough.

; TEMPBASEDIR - Directory on the user's system to store a temporary file when the system has
; to be rebooted.
; For Win9x support, this should be on the same volume as the DESTFILE!
; The Windows temp directory could be located on any volume, so you cannot use
; this directory.