LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

add .reg file to installer (Registry section)

Solved!
Go to solution

Hi!

My application needs some pieces of infromations placed in the Windows register. When developping my app, I built by myself the registry architecture that I need and extracted it in a .reg file. When I need to modify some keys, I modify the .reg file and then doucle-click it to deply the update.

 

I'm currently building an installer in order to distribute my application. Is there any way to import my .reg file / registry architecture in the "Registry" section of the INstaller builder instead of rewritting everything in this interface ?

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 6
(4,787 Views)

Hi,

 

I do not believe there is a method of importing the .reg file into the installer registry section.  Might be worth a product suggestion!

 

An alternative would be to create a script file that runs after the installer (In the advanced tab).  You could include a batch file that uses the Windows command prompt to install the file.  The command is 'REG import foo.reg' where foo is the name of your file (from here).

 

Hope this helps, 

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com
0 Kudos
Message 2 of 6
(4,777 Views)

Hi James !

Yes that we be a great idea that NI develops such functionnality ! Thank you for the link, it might be a solution.

Nevertheless, in the advanced tab you can only set one extra ".exe" to be launched (I don't even know if another extension is allowed), and I already have another tool to install by this way...

 

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 3 of 6
(4,751 Views)
Solution
Accepted by topic author CyGa

Hi Zyl7,

 

It does also allow .bat files that allow you to script the windows command prompt and so could be used to start a number of additional executables.  There are a number of websites that can show you how to do this including http://www.computerhope.com/batch.htm.  With this you should be able to use the command to add the registry keys and then launch another executable.  These are a handy way around the single executable problem.

 

Regards,

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com
Message 4 of 6
(4,745 Views)

the .lvproj file is a xml file, and as such it's easily editable. If you edit some registry values in there you can easily see how they affect the file. Thus you can make an importer of your .reg to the lvproj.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 5 of 6
(4,728 Views)

Hi,

 

LabVIEW does not have an option to import .reg file. But you can create the registry structure that your project needs in the "Registry" section of the Installer configuration window.  For few applications i have used this option to create the registry structure i required.  it works.

 

With regards,

J karthikeyan

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 6 of 6
(4,712 Views)