Hi,

I have solution which as two projects: Project 1: is the the main
project whose outcome it .exe file and Project:2 is the setup project
to install my application(.exe) to machine.

Now when run the setup.msi created from project2  it will install my
application to the path like: "C:\ ProgramFile\Company\Launcher"  and
from where I can go to the system or go to the command prompt and
launch the .exe file that got installed as part of installation.

My Question Is: Now if I have to launch my .exe from the command
prompt and then I will go to the application installation folder and
have to launch my  exe like this  "C:\ ProgramFile\Company
\Launcher>Abc.exe". Instead of this I want to achieve is that
irrespective of going to the application installation directory , from
any path on command prompt I can access my exe. Like just launch the
cmd and then type like: c:\Users\xyz>Abc.exe etc...

To achieve this I came to know that I have to set the environment path
for application folder of  this application so I can access from any
path of the command prompt. So  Can any one please tell me How can I
achieve in programmatically in C# .Net ? How can I get installation
directory path after application is done and then set the environment
path programatically ?

Thanks,
Jigar

Reply via email to