Home > Software engineering >  MFC ocx control cannot be automatically registered
MFC ocx control cannot be automatically registered

Time:10-08

Got a MFC controls, changed the item, a methods of writing inf into cab package, cannot be automatically register ocx after installation, after using regsvr32 manually, can be normal use, use the same method to pack unmodified ocx, after installation will automatically register, inquire,

CodePudding user response:

Ocx is written by yourself?

The same ocx modified does not automatically register?

CodePudding user response:

Write a batch script file, called directly under the batch installation search you have ready the controls of the batch file package called when it is ok to if it is a serial port control of batch I have

CodePudding user response:

refer to the original poster immense response:
found a MFC controls, changed the moment one way below, write the inf into cab package, cannot be automatically register ocx after installation, after using regsvr32 manually, can be normal use, use the same method to pack unmodified ocx, after installation will automatically register, inquire,


Yes, the same ocx

CodePudding user response:

refer to the second floor SWWLLX response:
write a batch script file, called directly under the batch installation search you that controls have ready-made batch file package called when it is ok to if it is a serial port control of batch I have


Manual registration, deposit is in ocx directory, use the administrator to run, regsvr32 XXXX. Ocx, specific how to call?

CodePudding user response:

packaged software the scripting language itself inside add code calls your batch you look at the script code see it will know how to call

CodePudding user response:

In a 64 - bit Windows:
64 exe and DLL in the directory c: \ Windows \ sys tem32 directory.
32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory.
So pay attention to:
In win64 system registered under 32-bit ocx DLL to 32 ocx or copy the DLL to the c: \ Windows \ syswow64 \ directory,
And registered to c: \ Windows \ syswow64 \ regsvr32 XXXXXXX ocx or DLL

CodePudding user response:

Automatic registration also need to set the browser, you can write a go register to reduce the installation package to install ie level allows the active site if there is one particular browsing website and trust

CodePudding user response:

1. The version number, of your ocx inf inside the version number, and version number of the object to be consistent, and higher than your local file will register
2. You have a problem.inf file is written
  • Related