Results 1 to 16 of 16

Thread: Distibute an EXE without OCX issues

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2018
    Posts
    57

    Thumbs up 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.

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,734

    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

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    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.

  4. #4
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Distibute an EXE without OCX issues

    The generic terminology is "isolated applications and private assemblies"

  5. #5
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    3,560

    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.

  6. #6
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    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.

  7. #7
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    3,560

    Re: Distibute an EXE without OCX issues

    That's quite an interesting approach.

  8. #8
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Distibute an EXE without OCX issues

    It also creates a mess and violates the VB6 license agreement.

  9. #9
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,734

    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.

    Quote Originally Posted by dilettante View Post
    It also creates a mess and violates the VB6 license agreement.
    Huh??
    Why is this against the VB6 license???

  10. #10
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    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.

  11. #11
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    3,560

    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!

  12. #12
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Distibute an EXE without OCX issues

    You could, but that would be piracy.

    You may as well be using CPoorServer.

  13. #13
    PowerPoster yereverluvinuncleber's Avatar
    Join Date
    Feb 2014
    Location
    Norfolk UK (inbred)
    Posts
    3,560

    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.

  14. #14
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,892

    Re: Distibute an EXE without OCX issues

    Quote Originally Posted by dilettante View Post
    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.

  15. #15

    Thread Starter
    Member
    Join Date
    Feb 2018
    Posts
    57

    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.

  16. #16
    Lively Member
    Join Date
    Jun 2016
    Posts
    109

    Re: Distibute an EXE without OCX issues

    Quote Originally Posted by Tobyy View Post
    ....
    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
  •  



Click Here to Expand Forum to Full Width