developerx
2011-02-03T10:35:57Z
Hello,

I bought IGRID and it is a really nice and works as expected.

I am trying to register the IGRID460_10TEC.OCX on win7 and get this error:

error 8000405

Win7 machine
1. Compiled VB& EXE = OK
2. Register DLLs (chilkat) = OK
3. OCX (10Tec) = Error

so i can the run my application developed with vb6 + chilkat Dll components on win7 but
IGRID OCX i simply cant register (is there a easy solution how to manage the OCX to get registered?)


Regards
Developerx
developerx
2011-02-03T10:42:55Z
Update:

1. EXE vb6 compiled on win7 run ok
2. EXE vb6 compiled on win7 + iGrid not ok since i cant register OCX

RegSvr32 iGrid460_10Tec.ocx

The module "iGrid460_10Tec.ocx" was loaded bu the call to DLLRegisterServer Failed with
error code 0x80004005.

Regards
Developerx
developerx
2011-02-03T11:57:05Z
Hi again,

I managed to register the IGRID OCX on win7. Problem is Win7 not 10tec OCX

The problem was that since i was logged in as admin i could use cmd.exe and regsvr32

Anyway i did following:

1. create a shortcut to c:\windows\system32\cmd.exe
2. copy the shortcut to desktop
3. rightclick on the shortcut and choose "Run as administrator"

So, my next question is how to deploy using innosetup is there a register ocx option there anyone?

regards
a happy developerx (but i am too old for this shit)
Igor/10Tec
2011-02-03T15:17:31Z
Originally Posted by: developerx 


I managed to register the IGRID OCX on win7. Problem is Win7 not 10tec OCX

The problem was that since i was logged in as admin i could use cmd.exe and regsvr32

Anyway i did following:

1. create a shortcut to c:\windows\system32\cmd.exe
2. copy the shortcut to desktop
3. rightclick on the shortcut and choose "Run as administrator"



Yes, that's right. We confirm that to register any OCX (not only iGrid) in Win7/Vista you need to launch cmd.exe and regsvr32 from it using the admin rights. Even if you logged in as administrator, you also need to run cmd.exe with the admin rights explicitly.

Originally Posted by: developerx 


So, my next question is how to deploy using innosetup is there a register ocx option there anyone?



Yes, the answer is positive again. We use InnoSetup (BTW, an excellent tool) to build our demo installations, and it allows you to register OCX's automatically. here is the corresponding line from the setup script:

Source: ..\OCX\Demo\iGrid460_10Tec.ocx; DestDir: {app}\OCXs_and_Help; Flags: regserver

As you can see, you just need to use the 'regserver' flag.

When you launch the setup package built with InnoSetup, the rights are elevated (and you see the corresponding UAC request), and after that the installation process has the admin rights and registers the OCX's without any problems.