We help IT Professionals succeed at work.

Could you point a way (if it's possible) on how to install an automation component (.OCX) during a NULLSOFT instalation?

184 Views
Last Modified: 2017-06-09
Hi Experts


Could you point a way (if it's possible) on how to install an automation component (.OCX) during a NULLSOFT instalation?

For the system correctly work this operation is needed:

REGSVR32  C:\Windows\System32\comdlg32.ocx

Is it possible to make it automatic?

Thanks in advance.
Comment
Watch Question

Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Hi

So accordingly with the NULLSOFT site:

;To Register a DLL
RegDLL "$INSTDIR\MyDLL.dll"

Open in new window


has the same effect than:

REGSVR32  C:\Windows\System32\<component_name>

Isn't it?
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
Yes, and for OCX
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Hi Shaun

It looks very good and practical.
I'm going to test it and return back later....
Eduardo FuerteDeveloper and Analyst

Author

Commented:
After test

I guess a library or macro is needed to perform the operation
img001
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Since I'm using Visual FoxPro - I found a workaround here to register .OCX programatically.


VFP Programatically register OCX
Eduardo FuerteDeveloper and Analyst

Author

Commented:
But going this way is just a workaround for the moment.

After some research in NSIS site, I guess something else like:

Section "Manual" SecDesB
...
 !insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED "${HOME}\Main Program\comdlg32.ocx" "${HOME}\Main Program\comdlg32.ocx" $INSTDIR
...
SectionEnd

Open in new window

Is needed to get the job done.
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
Do you mind posting the messages in English :)
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Sorry, translating  (from Brasilian - Portuguese)

Instalação completa
Complete Instalation


A instalação foi concluida com sucesso.
The instalation was concluded with success.

Não foi possível carregar.
Load had not been posible.
CERTIFIED EXPERT

Commented:
I have to correct myself: comdlg32.dll  does NOT require the registration. The registration is even not possible because this DLL does not contain the DllRegisterServer method.

What needs the registration is comdlg32.ocx which contains the MSComDlg.CommonDialog COM class. (This OCX requires comdlg32.dll.)
Eduardo FuerteDeveloper and Analyst

Author

Commented:
After all I guess that OCX instalation is better done outside NSIS - since it demands administrator login and maybe the user doesn't have it.
CERTIFIED EXPERT

Commented:
Hello Eduardo,

any news with this question? Does the installation work for you?

Thanks
Pavel
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Yes, Pavel.

Sorry the delay.
I did it ouside NSIS by using the  VFP Programatically register OCX - if the DLL is not working I ask the user to install it.
Eduardo FuerteDeveloper and Analyst

Author

Commented:
Thanks for help!

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.