11-11-2011 02:51 PM
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.
Solved! Go to Solution.
11-11-2011 05:14 PM
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.