Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
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 
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 
Mike,

I'd recommend that you don't modify the PATH variable at all - the path has a limited size and a lot of installers edit the PATH unnecessarily. Instead, setup a registry subkey under the App Paths key:

[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths]

Easy to delete at uninstall time too.

You set the key name to your .exe name (no path) and set the default unnamed value to the full path to the .exe; optionally you can also set a Path value containing the extra directories needed by that executable (really useful for multiple applications that refer to common libraries).

Beware though that if your executable name is something obvious that may have been used by someone else (e.g. "msdev.exe") you may end up overwriting the existing key.

BTW, I'd also recommend that if you do install shared libraries somewhere then store that path in the registry (under HKLM) to allow other installers to find them, rather than hardcoding installation folders.

Regards,

John Bates.
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 
GeneralRe: "out keyword" in COM interop Pin
Burt Harris21-Jun-03 12:14
Burt Harris21-Jun-03 12:14 
GeneralRe: "out keyword" in COM interop Pin
slnarasimhan22-Jun-03 18:03
slnarasimhan22-Jun-03 18:03 
Generalmatrix algebra Pin
Anonymous20-Jun-03 14:17
Anonymous20-Jun-03 14:17 
GeneralRe: matrix algebra Pin
Jim Stewart20-Jun-03 15:36
Jim Stewart20-Jun-03 15:36 
GeneralControls question Pin
Mike Osbahr20-Jun-03 12:44
Mike Osbahr20-Jun-03 12:44 

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.