Archive: Best place to install an OCX?


Best place to install an OCX?
If I've got to distribute an ocx file with my app, where is the best place to put it? In the System directory or in the same directory as my app.

The OCX I'm distributing is a commercial one, so its possible (but very unlikely) users will already have it on their computer.

If I put it in my application directory, do I need the line;
RegDLL "$INSTDIR\MyThing.ocx"
instead of;
RegDLL "$SYSDIR\MyThing.ocx"
(where MyThing is my ocx file).

Thanks


Re: Best place to install an OCX?
I think you should use the UpgradeDLL macro which first reads the Registry to check if this OCX is already installed; if not, or if yours is more recent, it will upgrade it, and leave it alone otherwise.

Personally, I put system OCX's in $SYSDIR, and my very own OCX's in the app's directory.

Fred.