LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

getting installation directory

Solved!
Go to solution

I am going to be installing a program (program A) then running a separate exe or batch file (program B) at the end of installation to move files around if necessary. My question is, how can I get the path to Program A after it is installed? Is writing a key to the registry the best option? The problem I see with this is I don't know how I can get the path for program A in order to write the registry key, unless I set my application to run after install and write the key value within my app. But, then I can't tell Program B to run after install. It seems to be somewhat of a catch 22.

 

Has anyone needed to do something like this in the past, and how did you resolve it? I could just copy the files via application A itself at startup, but let's just say I am motivated to do it from the installer/batch file.

0 Kudos
Message 1 of 2
(2,296 Views)
Solution
Accepted by topic author GregFreeman

So...you have to put the exe that you want to run after the installation on the computer anyways. It is installed to the same place as the program I will be running. Therefore, I can just use get application directory to find the files since both executables are in the same location.

 

 

 

 

 

 

0 Kudos
Message 2 of 2
(2,287 Views)