I currently have a functioning program that simply launches a separate .exe file by clicking a button. The installer I've created asks where they want to install which by default is in fodler C:\Program Files\PRHA
.
The code that launches the programs looks like this
private void ivClick(object sender, RoutedEventArgs e)
{
Process.Start("C:/Program Files/PRHA/IV/IV.exe");
}
How can I have Process.Start
find the path of the running application, so if the user decides to install in another directory, Process.Start
will still work.