Skip to content
⌘ NSIS Forum Archive

Overwrite a OCX

4 posts

fabiochelly#

Overwrite a OCX

How can I overwrote an OCX registered?
Curently, I get an error message.
kichik#
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.
kichik#
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.