LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to implement a command in a installer

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.

0 Kudos
Message 1 of 5
(3,527 Views)

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.

Regards,

Ali S.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 5
(3,466 Views)

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.

 
0 Kudos
Message 3 of 5
(3,376 Views)

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)



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 5
(3,371 Views)

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.

 

 

Carlo A.
Megaris




0 Kudos
Message 5 of 5
(3,343 Views)