Page 1 of 1

How to deal with dll and ocx that need to be registered

Posted: Tue Dec 30, 2008 9:11 pm
by joby_toss
How do i deal with applications that need some dll or ocx files to be registered on the system for them to launch and function properly ?

I was thinking to give SSuiteOffice a try before BladeRunner will be released as stated by donald here.

For example "WordFormat2.exe" needs "vspell32.ocx" to be registered.

Thanks for the help!

Posted: Wed Dec 31, 2008 9:07 am
by Cornflower
There doesn't seem to be a generic tool that can detect all dlls or ocx files.

If you know, as in the example, the ocx or dll file to be registered, you can:

- manually register it while running regshot or regfromdll
- note its registry locations
- manually unregister it and verify it cleans up

Then in your code, use regsvr32.exe /s filename to register it before running the program which requires it, then regsvr32 /s /u filename afterwards.
(Some apps can be registered by simply tweaking the registry with the results from the manual registration, and hence regsvr32 is not needed.)

I think it is fair to say that the existence of regsvr32.exe can be assumed on most all Windows Computers.

Hope this does help.

Posted: Wed Dec 31, 2008 11:00 pm
by crownixx
Does the jauntePEd Setup (in the 12 Step Program) doesnt work? If we portablize the installer, hopefully all the installation process including registering the dll & ocx will be redirected too

Posted: Thu Jan 01, 2009 6:25 am
by joby_toss
crownixx wrote:Does the jauntePEd Setup (in the 12 Step Program) doesnt work? If we portablize the installer, hopefully all the installation process including registering the dll & ocx will be redirected too
This does not work because
Image

@Cornflower:
I hoped JauntePE could do this by itself somehow ... I'm still hoping!
Is it wrong to make an AutoIt launcher to launch the JauntePE launcher ?
God I have time ... ! :)

Redllar Answers your question... with an App!!!

Posted: Sat Jan 03, 2009 5:44 pm
by Stone Tablet
Joby,

Redllar Wrote an app to address your question...

See JPEregsvr32.zip @ http://www.box.net/shared/4cx4i2k00r

From readme.txt file:

1. Put a copy of the default jauntePE.dll file into this directory
2. Put a copy of your app's jauntePE.reg file into this directory
3. Put a copy of your app's ocx file into this directory
4. Drag and drop your app's ocx file in this directory onto the jperegsvr32.cmd file in this directory
5. Wait for the regsvr32 popup message indicating successful registration
6. Copy the JPE directory and its contents back into your app's launch directory
7. If necessary, modify your app's %appname%_jauntePE.ini config file so that
RegTokens is on, e.g., add the line RegTokens=1 to the [Redirection] section
8. Make sure that your app's %appname%_jauntePE.ini config file includes the
OCXs user application data dir for redirection - it should either not exclude
anything or if it excludes everything you must add the appropriately numbered
line into the FilesystemInclude section, e.g., 1=%26%\OCXs

Posted: Sun Jan 04, 2009 1:41 am
by crownixx
thanks to notice us out about the JPE regsvr32.zip package.
I'm just about to try DLL & OCX Setup 1.0.4 but got error when running it

My plan is to jauntePE'ed the DLL & OCX Setup application so that all the dlls files and ocx files that are register by it will also be redirect since we're using RedirMisc=1.