English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to execute a program using C# located at C:\documents and settings\[user]\local settings. Plz tell me.

I know this can be done with:

Process.start(@"filePath");

but I don't know how to get the path of current user's profile folder.


I'm creating a installation setup, plz also, tell me how to make the setup to run my program when the setup is completed.

2007-06-26 07:05:27 · 1 answers · asked by Parv 2 in Computers & Internet Programming & Design

Thanks for replying, I want to do all this using C#

2007-06-26 07:36:29 · update #1

1 answers

The program you want to execute - are you actually installing it or does it already exist in the user's machine?

If you are installing it then just add a custom action to your installer which executes the program.

If the program you want to execute already exists and you're 100% sure that program lives in a special folder ("my documents" or something similar) you can still add a custom action to run the program. The installer offers a list of "special folders" you can include in the path to the program you're trying to run.

2007-06-26 07:22:56 · answer #1 · answered by Matt 3 · 0 0

fedest.com, questions and answers