delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/16/12:17:51

From: "Campbell, Rolf [SKY:1U32:EXCH]" <moscoop AT americasm01 DOT nt DOT com>
Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer
Subject: Re: Detecting Windows and Windows directory from DOS
Date: Thu, 16 Mar 2000 11:16:35 -0500
Organization: Nortel Networks
Lines: 15
Message-ID: <38D108E3.D9821E3B@americasm01.nt.com>
References: <8am5ub$o0v$1 AT news6 DOT svr DOT pol DOT co DOT uk>
NNTP-Posting-Host: wmerh0tk.ca.nortel.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.72 [en] (X11; I; HP-UX B.10.20 9000/785)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie 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.

--
(\/) Rolf Campbell (\/)



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019