Click to See Complete Forum and Search --> : [RESOLVED] Use ActiveX DLL without installing an application


GGJohn
May 15th, 2009, 11:00 PM
Hello!
Is it possible to use ActiveX controls and dynamic libraries without installing an application, by simply running EXE file?

Thank you!

Arjay
May 15th, 2009, 11:36 PM
Sure, if the ActiveX controls and/or libraries are already present (and registered) on the system.

GGJohn
May 17th, 2009, 10:09 PM
An if there are not? I want my application, which uses DLL and ActiveX consists only from one EXE

Arjay
May 18th, 2009, 12:11 AM
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?

GGJohn
May 19th, 2009, 10:02 PM
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.

Arjay
May 19th, 2009, 11:46 PM
In order to register an ActiveX control, you'll need permissions to install at a minimum.

Zaccheus@Work
May 20th, 2009, 05:09 AM
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.

Arjay
May 20th, 2009, 09:13 AM
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?

nelo
May 20th, 2009, 09:56 AM
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...

Zaccheus@Work
May 21st, 2009, 04:00 AM
You'll still need permissions to make registry entries.
Yes, of course you would.

GGJohn
May 21st, 2009, 10:08 PM
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.

Arjay
May 22nd, 2009, 12:59 AM
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?

GGJohn
May 22nd, 2009, 09:28 PM
There may be no permission for installation of the app. But I still needed to run it anyway :)

Arjay
May 22nd, 2009, 09:59 PM
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.

_UE_
May 25th, 2009, 03:03 AM
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.

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

;)

Arjay
May 25th, 2009, 09:46 AM
BoxedApp writes registry settings into memory, not real registry.So you are saying that this app can fool the COM subsystem into thinking that an ActiveX control has been registered properly?

_UE_
June 1st, 2009, 09:10 AM
So you are saying that this app can fool the COM subsystem into thinking that an ActiveX control has been registered properly?

Yes, exactly.

Thank you.