|
-
Mar 31st, 2021, 12:51 AM
#1
Thread Starter
Member
Distibute an EXE without OCX issues
Hello,
I have been having a serious issue for 2 days now. I have an OCX that works perfectly fine on my project but users are complaining of not been able to use software because of "Active X Registration" issues when the form is launched.
Is there a way to have an OCX in a project, compile the software and yet distribute it to the users without having to register the OCX on each of the users systems ?
I want them to run the EXE and not have to do anything else and yet the component should work as fine as it should.
-
Mar 31st, 2021, 01:50 AM
#2
Re: Distibute an EXE without OCX issues
An ActiveX needs to be registered on a computer before it can be used.
Nowadays SxS is used often.
Read this for a start:
https://www.vbforums.com/showthread....ial-Any-Takers
-
Mar 31st, 2021, 10:06 AM
#3
Re: Distibute an EXE without OCX issues
The obvious course is to use either the legacy Package and Deployment Wizard or else Windows Installer based Visual Studio 6.0 Installer 1.1 which largely replaced the PDW in 1999. There are also 3rd party tools for creating legacy scripted setup packages and Windows Installer databases (MSI packages).
People often use the term "side by side" when they are really referring to using Window Fusion Activation Contexts (ActCtx) to redirect bindings to COM servers and typelibs. This is a different function of Fusion from SxS assemblies. There is a lot of cargo-culting around this because so few studied the documentation released back in the early years of Windows XP. There is no standard tooling for creating Fusion manifests for VB6 programs. This is now a murky topic that has devolved into lore in the twilight years of VB6.
Wikipedia has a lot of hilariously incorrect information about it.
-
Mar 31st, 2021, 10:18 AM
#4
Re: Distibute an EXE without OCX issues
The generic terminology is "isolated applications and private assemblies"
-
Mar 31st, 2021, 12:20 PM
#5
Re: Distibute an EXE without OCX issues
Just tell us which OCX you are bundling and what it does and perhaps there is an alternative route to get what you want.
-
Apr 1st, 2021, 12:41 AM
#6
Re: Distibute an EXE without OCX issues
I don't have a lot of dependencies, but have about 6
I create a project, which includes the controls, and has no code.
I use the P&D Wizard to create an EXE, and get the user to run it once.
If I then create any EXE's (which have source code), I just make the EXE, and give it to the user.
They do not install those, they just place it into say C:\ClipBuddy\ folder, and it just runs.
They can go for 100 years without running any installers.
-
Apr 1st, 2021, 04:01 AM
#7
Re: Distibute an EXE without OCX issues
That's quite an interesting approach.
-
Apr 1st, 2021, 06:46 AM
#8
Re: Distibute an EXE without OCX issues
It also creates a mess and violates the VB6 license agreement.
-
Apr 1st, 2021, 07:18 AM
#9
Re: Distibute an EXE without OCX issues
..
If I then create any EXE's (which have source code), I just make the EXE, and give it to the user.
They do not install those, they just place it into say C:\ClipBuddy\ folder, and it just runs.
They can go for 100 years without running any installers.
I have the same.
I have created a setup package (MSI) for only the OCX and DLLs.
The (updates of the) application is delivered as a ZIP archive and can be placed wherever the customers like.
 Originally Posted by dilettante
It also creates a mess and violates the VB6 license agreement.
Huh??
Why is this against the VB6 license???
-
Apr 1st, 2021, 07:51 AM
#10
Re: Distibute an EXE without OCX issues
There is a requirement that a program using any of the supplied controls "add sufficient functionality" to them. This was added to discourage people making thin wrapper OCXs to get around licensing requirements to use MSComm, etc. in VBA.
-
Apr 1st, 2021, 08:29 AM
#11
Re: Distibute an EXE without OCX issues
So you can create a mini-installer with an OK button and some text, perhaps a logo image and something that displays system and version information. You are done!
-
Apr 1st, 2021, 08:49 AM
#12
Re: Distibute an EXE without OCX issues
You could, but that would be piracy.
You may as well be using CPoorServer.
-
Apr 1st, 2021, 08:59 AM
#13
Re: Distibute an EXE without OCX issues
Well, you'd be adding "sufficient functionality"... a slider, a control or two and some tests for OCX versions, you'd have a tool that provided sufficient functionality.
-
Apr 1st, 2021, 09:53 AM
#14
Re: Distibute an EXE without OCX issues
 Originally Posted by dilettante
There is a requirement that a program using any of the supplied controls "add sufficient functionality" to them. This was added to discourage people making thin wrapper OCXs to get around licensing requirements to use MSComm, etc. in VBA.
I understand why the "add sufficient functionality" requirement would prevent people distributing wrappers around OCXs that require licensing, but it doesn't make sense that it would apply to distributing the OCXs that your projects use - properly licensed of course - without a wrapper to expose their functionality to unlicensed developers. What's the difference between delivering a single installer with an EXE + OCXs, vs. distributing an installer with just the OCXs (no wrappers, no .lic files, no circumvention of the license to provide access to the OCXs functionality to other developers) and a separate .EXE file that users can save/run from wherever they like? Back in the day you'd see this done fairly often because download times were so long - a large "one-time" prerequisites installer with all of the main app dependencies, and a separate and much smaller application installer that would be periodically updated with new features/bug fixes for re-download/installation.
-
Apr 7th, 2021, 09:32 AM
#15
Thread Starter
Member
Re: Distibute an EXE without OCX issues
@All,
Thanks so much.
I had to painstakingly decode all the bugs encountered when i added User Control directly into my code. It worked eventually and i was about to build .EXE and distribute without user having to install anything again.
It was tough but the best way to go about it.
-
Apr 9th, 2021, 07:59 AM
#16
Lively Member
Re: Distibute an EXE without OCX issues
 Originally Posted by Tobyy
....
I want them to run the EXE and not have to do anything else and yet the component should work as fine as it should.
...well, I use EnigmaVB (VirtualBox) for this. It's free and just works. And has the additional benefit which of any additional files and whatnot you want to expose to the user.
Super easy! (up to now I don't know of any downsides?)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|