Jump to content
Sign in to follow this  

gimagex_com.dll + WinPE, cannot create object

Recommended Posts


Im not sure what I'm doing wrong here. I use regsvr32.exe to register the gimagex_com.dll file and it doesn't work, cause when I'm trying to create the gimagex.ctrl object it fails. Can you use it with WinPE at all?

Here is my code:

runwait("regsvr32.exe" & " x:\program files\osd\gimagex_com.dll" & " /s")
if @error then msgbox(0x10, "OSDGUI", "Unable to launch process: 'regsvr32.exe gimagex_com.dll'", 0, $osdgui)

The above doesn't send back any error, so it's being registered.

When I try to create the COM object is fails:

global $wim_object = objcreate("GImageX.GImageXCtrl")
if not isobj($wim_object) then msgbox(0x10, "OSDGUI", "Unable to load COM object", 0, $osdgui)

I get the msgbox displaying the error


I'm pretty sure that the code is right, any suggestions?

Thanks in advance

Edited by doestergaard

Share this post

Link to post
Share on other sites

OK, i found out why. gimagex_com.dll needs to be in system32 folder

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.