09-02-2016 05:07 AM
i want to make installer of my application now the issue is that i am using 3rd party active x control , when using new machine i have to register that control on new computer before running my application , please guide me how to register my active x control.
the thing which is want to achieve is :::
1) when installer starts it runs a command as administrator regsvr32 air.ocx , where air.ocx is my active x control.
2) then it installs my application as normal,
kindly guide me , thanks in advance.
09-06-2016 09:50 AM
Smart Programmer,
Thanks for the question and for the detailed setup of your computer. I did have a few more questions on your issue so we can further narrow the problem.
What version of LabWindows/CVI are you using? This shouldn't make a difference but it is good information to have just in case.
For the registration process, can you go through this process each time?
"From the Tools menu of any LabWindows/CVI window, select Create ActiveX Controller. When you run the wizard in this manner, you need to select the ActiveX server that corresponds to your control."
http://zone.ni.com/reference/en-XX/help/370051T-01/cvi/uiref/cviprogramming_with_activex_control/
What's the setup of the computers that you're installing on a new computer compared to the development machine.
Additionally, could you explain the application to call the DLL. The best course of action moving forward is determining if this is expected behavior or there is a workaround. The above questions should be able to help.
09-19-2016 03:06 AM
thanks alot for the reply,
i am using windows 7 (64 bit) and and LabWindows version 9.0 and LabWindows version 2012.
the reply i recieved from Mr. Ali S. (Applications Engineering, National Instruments) shows that i was unable to explain my question properly.
1st of all i have not said that i want to use 3rd party activex control, my previous post states ""i want to make installer of my application now the issue is that i am using 3rd party active x control , when using new machine i have to register that control on new computer before running my application , please guide me how to register my active x control."" which shows application is working and ok now i have to make installer only so that it can be installed on any new computer with windows.
so sharing link ""Programming with ActiveX Controls"" is totally irrelevent.
kindly guide me how to implement commands in a installer so that a command runs 1st then other installation procedure follows.
09-19-2016 05:03 AM
If you include the ocx inside the files to distribute so that the installer copies it to the correct location in the target PC, then you can select to run your batch file for registering it after the installation of the CVI application.
Mert A. has published a tip on this subject: it seems that registering the activex is already implemented inside the installer
LabWindows/CVI Tip: Often Missed Distribution Options
(disclaimer: I never used this option, I just came across this document while performing other searches on my own)
09-20-2016 02:11 AM
I want to reassure you that your first message was perfectly understandable.
I was able to understand from the first reading, and I'm sure the same was true for Roberto.