Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
GeneralRe: creating a single EXE from multiple projects Pin
Rocky Moore23-Jun-03 8:50
Rocky Moore23-Jun-03 8:50 
GeneralRe: creating a single EXE from multiple projects Pin
mikechambers23-Jun-03 15:33
mikechambers23-Jun-03 15:33 
GeneralPretty sticky problem to me... Pin
Weiye Chen22-Jun-03 2:32
Weiye Chen22-Jun-03 2:32 
Generalsomeone clear my mind please Pin
wingcom22-Jun-03 0:29
wingcom22-Jun-03 0:29 
GeneralRe: someone clear my mind please Pin
leppie22-Jun-03 11:23
leppie22-Jun-03 11:23 
GeneralDataGrid Navigation "+" Pin
vladmihai22-Jun-03 0:02
vladmihai22-Jun-03 0:02 
GeneralOutlook interop Pin
WillemM21-Jun-03 23:56
WillemM21-Jun-03 23:56 
QuestionSetting environment variables from installer? Pin
mikechambers21-Jun-03 12:01
mikechambers21-Jun-03 12:01 
I am creating a msi installer for a command line program I have
written in c#.

I would like the user to be able to just type the program name from
anywhere on the file system, and have the program run.

Basically, I need to alter the PATH environment variable to include
the installation directory. I have spent some time looking for
solutions, and I haven't been able to find any thing definitive.

Options I have found include:

-Editing the registry from the installer: requires reboot, and deletes
entire path variable on uninstall.

-calling a Custom Action DLL to edit the path. DLL must be written in
c++ (is that correct?). Can't uninstall?

-write a vbs script to be run by the installer and set the path. (I
don't know VBS script)

-provide instructions to the user to tell them how to edit their path
: not very user friendly.

However, none of these seem like good options. I understand some of
the reasons why setting an environment variable is not really a good
idea, but surely this is something that needs to be done quite often.

So, any suggestions or ideas?

mike c
AnswerRe: Setting environment variables from installer? Pin
Burt Harris21-Jun-03 12:36
Burt Harris21-Jun-03 12:36 
GeneralRe: Setting environment variables from installer? Pin
mikechambers21-Jun-03 14:55
mikechambers21-Jun-03 14:55 
GeneralRe: Setting environment variables from installer? Pin
J. Dunlap21-Jun-03 16:45
J. Dunlap21-Jun-03 16:45 
GeneralRe: Setting environment variables from installer? Pin
mikechambers21-Jun-03 18:10
mikechambers21-Jun-03 18:10 
AnswerRe: Setting environment variables from installer? Pin
jlb1-Jul-03 14:27
jlb1-Jul-03 14:27 
GeneralRe: Setting environment variables from installer? Pin
mikechambers1-Jul-03 15:26
mikechambers1-Jul-03 15:26 
Generalvideo overlay screen grab Pin
grv57521-Jun-03 4:38
grv57521-Jun-03 4:38 
Generalsending meeting request Pin
jbreiding21-Jun-03 2:09
jbreiding21-Jun-03 2:09 
GeneralObjectOutputStream. (Java vs C#) Pin
Uploader21-Jun-03 1:58
Uploader21-Jun-03 1:58 
GeneralRe: ObjectOutputStream. (Java vs C#) Pin
leppie21-Jun-03 4:27
leppie21-Jun-03 4:27 
GeneralRe: ObjectOutputStream. (Java vs C#) Pin
Uploader21-Jun-03 8:04
Uploader21-Jun-03 8:04 
GeneralGUI for desktop application Pin
abdelaal198221-Jun-03 1:35
abdelaal198221-Jun-03 1:35 
GeneralRe: GUI for desktop application Pin
Burt Harris21-Jun-03 12:40
Burt Harris21-Jun-03 12:40 
Questionretrieving from a html table in a form and inserting into a database? Pin
Asim N.21-Jun-03 0:14
Asim N.21-Jun-03 0:14 
GeneralRSA File Encryption Pin
yccheok20-Jun-03 23:25
yccheok20-Jun-03 23:25 
GeneralRe: RSA File Encryption Pin
Burt Harris21-Jun-03 12:23
Burt Harris21-Jun-03 12:23 
General"out keyword" in COM interop Pin
slnarasimhan20-Jun-03 21:56
slnarasimhan20-Jun-03 21:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.