07-23-2010 02:39 AM
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 ?
Solved! Go to Solution.
07-23-2010 03:59 AM
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,
07-26-2010 02:18 AM
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...
07-26-2010 03:05 AM
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,
07-26-2010 11:40 AM
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
07-26-2010 10:30 PM
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