LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Registry: Key 'InstallLocation' stays empty with project build with application builder

Hi there,
 
I need to find the install location of some programs on a PC. The reason for that is to start some sub-programs from one main program (all LabVIEW projects). 
In Key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall I only can find the InstallSource, but InstallLocation qlway stays empty...
 
Is there any configuration in AppBuilder that I havn`t found yet?! Or any other possibility to find the location of the 'sub-programs'?
 
 
I'm using LV7.1 +Application Builder
 
 
0 Kudos
Message 1 of 5
(4,810 Views)
Hi avr

there is no additional configuration in application builder. For writing something into InstallLocation you can check in advanced installer settings 'run executable after installation' and run ca DOS batch program or a C program that modifies the registry. But in Labview 8.0 and later you can create additional registry keys in installer settings as shown in the attached screenshot.

Regards
DianaS
0 Kudos
Message 2 of 5
(4,784 Views)
I think I'll do this with LV VI's while app startup.  But with it comes another problem: How is it possible to find the correct registry entry? The hive looks as follow for example:
 
Software\Microsoft\Windows\CurrentVersion\Uninstall\{20447C5-8A0F-4A77-97BE-7FCC6812BA21}
 
Under the code {20447C5-8A0F-4A77-97BE-7FCC6812BA21} the entry InstallLocation, DisplaName and so on is found. But to insert a key I need to know the regnumber! Is there an easy way to get it?
 
Of cause it is possible to open every single key and search for "DisplayName" in a FOR loop. But this takes some time in program.... Maybe there is an easier way to get it?
0 Kudos
Message 3 of 5
(4,761 Views)
Hi _avr_
in this thread a post a script which can do this. I think it need little changes for you, but it should help.
 
Mike
0 Kudos
Message 4 of 5
(4,758 Views)
The key number is stored inside your lvproj file!
Unfortunatly it's not shonw in the installer creation (as was the case in LV 7.x)

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!
0 Kudos
Message 5 of 5
(4,744 Views)