06-23-2009 04:17 AM
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.
Solved! Go to Solution.
06-23-2009 04:49 AM
Without testing anything in LV on my own:
Maybe this link helps...
Norbert
06-23-2009 08:18 AM
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
06-24-2009 01:49 AM
12-23-2009 03:22 AM
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.