From: "Ben Davis" Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer Subject: Re: Detecting Windows and Windows directory from DOS Date: Thu, 16 Mar 2000 17:41:43 -0000 Organization: Customer of Planet Online Lines: 25 Message-ID: <8arkm8$m3h$1@newsg2.svr.pol.co.uk> References: <8am5ub$o0v$1 AT news6 DOT svr DOT pol DOT co DOT uk> <38D108E3 DOT D9821E3B AT americasm01 DOT nt DOT com> NNTP-Posting-Host: modem-15.deagol.dialup.pol.co.uk X-Trace: newsg2.svr.pol.co.uk 953243144 22641 62.136.152.143 (16 Mar 2000 21:45:44 GMT) NNTP-Posting-Date: 16 Mar 2000 21:45:44 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Campbell, Rolf [SKY:1U32:EXCH] wrote in message <38D108E3 DOT D9821E3B AT americasm01 DOT nt DOT com>... >Ben Davis wrote: > >> I need to write an installation program for my DOS game. I want to design it >> so that if it detects Windows 95 or higher it puts the game in the Start >> Menu. > >You can get the windows directory in the 'windir' environment variable, but the >location of the Start Menu is stored in the windows registry, so if somebody >moves their Start Menu, then your program would fail to add to it. All right. How do I read the Windows registry from a DOS program (if it's possible)? What part of the registry should I read? Anyway, how would you move the Start Menu? Wouldn't Windows itself lose track of it -- or is it more intelligent than that?! :-) Ben Davis