CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Join Date
    May 2009
    Posts
    16

    [RESOLVED] Use ActiveX DLL without installing an application

    Hello!
    Is it possible to use ActiveX controls and dynamic libraries without installing an application, by simply running EXE file?

    Thank you!

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Use ActiveX DLL without installing an application

    Sure, if the ActiveX controls and/or libraries are already present (and registered) on the system.

  3. #3
    Join Date
    May 2009
    Posts
    16

    Re: Use ActiveX DLL without installing an application

    An if there are not? I want my application, which uses DLL and ActiveX consists only from one EXE

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Use ActiveX DLL without installing an application

    Are you trying to bypass installation security by trying combine the dll, ActiveX control into the exe and then someone split this out and register the components without requiring admin permissions?

    Can you clarify what you are trying to accomplish?

  5. #5
    Join Date
    May 2009
    Posts
    16

    Re: Use ActiveX DLL without installing an application

    Actually in case of this application security itself may be a problem. If there is no permissions application may not be able to create temporary files, and may not be able to be installed, but still need to be run.

  6. #6
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Use ActiveX DLL without installing an application

    In order to register an ActiveX control, you'll need permissions to install at a minimum.

  7. #7
    Join Date
    Mar 2009
    Posts
    51

    Re: Use ActiveX DLL without installing an application

    You could include the ActiveX DLL in your EXE as a resource. At runtime you extract the DLL to a folder, register it, and then create the ActiveX control.

  8. #8
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Use ActiveX DLL without installing an application

    Quote Originally Posted by Zaccheus@Work View Post
    You could include the ActiveX DLL in your EXE as a resource. At runtime you extract the DLL to a folder, register it, and then create the ActiveX control.
    You'll still need permissions to make registry entries.

    To the OP... why all the secretism? Why not just create a setup program and install the app the normal (and recommended) way?

  9. #9
    Join Date
    Nov 2002
    Location
    .NET 3.5 VS2008
    Posts
    1,039

    Re: Use ActiveX DLL without installing an application

    Quote Originally Posted by GGJohn View Post
    Actually in case of this application security itself may be a problem. If there is no permissions application may not be able to create temporary files, and may not be able to be installed, but still need to be run.
    Maybe I'm missing something here...but are you saying the application may not be able to be installed but still it needs to be run? I don't see how that would work...

  10. #10
    Join Date
    Mar 2009
    Posts
    51

    Re: Use ActiveX DLL without installing an application

    Quote Originally Posted by Arjay View Post
    You'll still need permissions to make registry entries.
    Yes, of course you would.

  11. #11
    Join Date
    May 2009
    Posts
    16

    Re: Use ActiveX DLL without installing an application

    Yesterday I found BoxedApp Packer. This utility helps to create an app, which using ActiveX controls and DLLs directly from memory buffer without extracting it to temp directory, so there is no install permissions needed. Looks like the problem is solved.

  12. #12
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Use ActiveX DLL without installing an application

    Quote Originally Posted by GGJohn View Post
    Yesterday I found BoxedApp Packer. This utility helps to create an app, which using ActiveX controls and DLLs directly from memory buffer without extracting it to temp directory, so there is no install permissions needed. Looks like the problem is solved.
    So why can't you just install the app and its dependencies the normal way using a setup program?

  13. #13
    Join Date
    May 2009
    Posts
    16

    Re: [RESOLVED] Use ActiveX DLL without installing an application

    There may be no permission for installation of the app. But I still needed to run it anyway

  14. #14
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: [RESOLVED] Use ActiveX DLL without installing an application

    Without the proper permissions, you won't be able to write to the registry so that means you won't be able to register the ActiveX controls. And without registration, COM won't be able to load the ActiveX object, so even if BoxedApp can combine the components into one exe, it still won't work.

    Why some folks spent so much time circumventing security is beyond me.

  15. #15
    Join Date
    Aug 2004
    Posts
    17

    Re: [RESOLVED] Use ActiveX DLL without installing an application

    Quote Originally Posted by Arjay View Post
    Without the proper permissions, you won't be able to write to the registry so that means you won't be able to register the ActiveX controls. And without registration, COM won't be able to load the ActiveX object, so even if BoxedApp can combine the components into one exe, it still won't work.
    BoxedApp writes registry settings into memory, not real registry. Please read the product's description carefully.

    Quote Originally Posted by Arjay View Post
    Why some folks spent so much time circumventing security is beyond me.

Page 1 of 2 12 LastLast

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

Featured