LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Registry key in installer

Solved!
Go to solution

Hi,

 

I am createing an installer for a program. I need to create some entries in the windows registry. One of the values has to be the path to my executable, but I do not know the path when I create my installer. Is there any way I can retrieve the path to my installed executable during installation so that it can be written into the registry, or are there any other solution?

 

Thank you in advance.

0 Kudos
Message 1 of 5
(4,042 Views)

Without testing anything in LV on my own:

Maybe this link helps... 

 

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 5
(4,031 Views)
Solution
Accepted by topic author Svendsen

You could force the installer to run your executable upon finishing, and at that moment write the location of the executable to the registry.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 3 of 5
(4,012 Views)
Thank you for the respons. I will go for the last solution to call my executable upon finish. The only thing I have to try is what happens if windows need restart because of installation of NI drivers. Can I then run my executable upon installation finish.
Message 4 of 5
(3,998 Views)

I have the same problem.

The solution of TCPlomp is a good parade that for the first run of the application, you could use native VI to create the registry key but...

 

In my case, the aim is to not have to run a first time because an additional & optional software could intercept data at any time including firstly in the folder of the application to manage the *.ini file. So, if it's possible, I would have access to the path without first run and read it in the registry base is the smartest way.

 

So, what 'Data' must be written in the Registry window to obtain AppPath?

 

The tool 'Registry' in Installer exists and it will be shame to not use it, no?

 

I use LV 8.5.1.

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