Click here to Skip to main content
15,904,877 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# vs. C++ Pin
J. Dunlap22-Jun-03 21:03
J. Dunlap22-Jun-03 21:03 
GeneralRe: C# vs. C++ Pin
untwisted22-Jun-03 21:08
untwisted22-Jun-03 21:08 
GeneralRe: C# vs. C++ Pin
Rocky Moore22-Jun-03 23:47
Rocky Moore22-Jun-03 23:47 
GeneralRe: C# vs. C++ Pin
TigerNinja_23-Jun-03 10:14
TigerNinja_23-Jun-03 10:14 
GeneralRe: C# vs. C++ Pin
Rocky Moore23-Jun-03 22:48
Rocky Moore23-Jun-03 22:48 
Generalinserting into database. Pin
Asim N.22-Jun-03 18:17
Asim N.22-Jun-03 18:17 
GeneralConfiguration file Pin
puppiesLover22-Jun-03 13:24
puppiesLover22-Jun-03 13:24 
GeneralProgram Flow Pin
puppiesLover22-Jun-03 11:09
puppiesLover22-Jun-03 11:09 
GeneralRe: Program Flow Pin
Jon Newman23-Jun-03 4:42
Jon Newman23-Jun-03 4:42 
Generalcreating a single EXE from multiple projects Pin
mikechambers22-Jun-03 6:20
mikechambers22-Jun-03 6:20 
GeneralRe: creating a single EXE from multiple projects Pin
leppie22-Jun-03 11:16
leppie22-Jun-03 11:16 
GeneralRe: creating a single EXE from multiple projects Pin
mikechambers22-Jun-03 11:39
mikechambers22-Jun-03 11:39 
GeneralRe: creating a single EXE from multiple projects Pin
leppie22-Jun-03 11:59
leppie22-Jun-03 11:59 
GeneralRe: creating a single EXE from multiple projects Pin
Rocky Moore22-Jun-03 23:56
Rocky Moore22-Jun-03 23:56 
GeneralRe: creating a single EXE from multiple projects Pin
mikechambers23-Jun-03 6:25
mikechambers23-Jun-03 6:25 
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 

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.