[comp.windows.ms] Running MS Windows from windows

a752@mindlink.UUCP (Bruce Dunn) (09/11/90)

> gwunix00@seas.gwu.edu writes:
> 
> I'd like to run a real-mode version of Windows 3.0 within enhanced-mode
> Windows.  In other words, while running Windows 3.0 in enhanced mode,
> I'd like to run Windows (real-mode) as an application.  This works
> normally.  However, I'd like the real-mode version to run with
> different configuration files.  Any clues? Thanx in advance.


     When Windows fires up, it appears to read a number of *.ini files for its
initialization.  Briefly, the *.ini files appear to specify the following:

control.ini    - desktop colors and patterns
progman.ini   - definition of program manager groups etc.
system.ini    - video drivers etc.
win.ini       - programs to be loaded on startup, fonts, printer etc.
winfile.ini   - startup configuration of File Manager

     To run a differently defined Windows session from within Windows do the
following:  Make a copy of your *.ini files to a subdirectory called (for
example) "INIT-1".  Modify your existing copy of Windows until it fires up as
you want it (by changing options, editing ini files, installing new video
drivers etc.).  Save the modified *.ini files into a subdirectory called
"INIT-2".  Write a batch file called WIN-1.BAT which copies all the *.ini files
from the INIT-1 subdirectory to your Windows subdirectory.  Write a similar
batch file to copy the *.ini files from INIT-2 to Windows (call it WIN-2.BAT).
Now each time you run WIN-1.BAT you will get the version of Windows which is
defined by the *.ini files in INIT-1 and running WIN-2.BAT with get you the
other version.  If you know that only one of the *.ini files is involved in the
change (for example the system.ini file if you are changing video modes) then
you only need to copy this.
     Using this scheme, you for example can fire up Windows with a version 1
system.ini file which runs in 640x480 VGA, and a version 2 system.ini file
which runs in 800x600 VGA.  If you run one batch file from within Windows, the
new Windows will initiate according the the files that you just copied.  When
you quit the real mode secondary Windows session, the first version will
reappear in its original configuration (even though current *.ini files have
been changed).
     A little complicated to describe and set up, but it works well.  I have
used it to run an 800x600 Windows session inside a normal Windows session just
to get the higher resolution for WinWord.  Mind you, you need lots of RAM or
swapfile space to keep track of everything, and things can get sluggish.
      On reading the above, I just noticed that I forgot to say that it is most
convenient to get your WIN-1.BAT and WIN-2.BAT files to start Windows
immediately after copying the *.ini files.
--
Bruce Dunn   Vancouver, Canada    a752@mindlink.UUCP

gwunix00@seas.gwu.edu (Timur Tabi) (09/11/90)

I'd like to run a real-mode version of Windows 3.0 within enhanced-mode
Windows.  In other words, while running Windows 3.0 in enhanced mode,
I'd like to run Windows (real-mode) as an application.  This works 
normally.  However, I'd like the real-mode version to run with 
different configuration files.  Any clues? Thanx in advance.

gyugyi@portia.Stanford.EDU (Paul Gyugyi) (09/12/90)

In article <2109@sparko.gwu.edu> gwunix00@seas.gwu.edu () writes:
>I'd like to run a real-mode version of Windows 3.0 within enhanced-mode
>Windows.  In other words, while running Windows 3.0 in enhanced mode,
>I'd like to run Windows (real-mode) as an application.  This works 
>normally.  However, I'd like the real-mode version to run with 
>different configuration files.  Any clues? Thanx in advance.

If you have the disk space, this might work:
Install a second copy of Win 3.0 in a directory not on your path.
Change it's *.ini files to how you want.  Start up a dos window
from you original version of Win 3.0.  Change the PATH variable
to include the new Win 3.0 directory and not the old.  Then start
up the new one.

I havn't tried this, but the prospect of running a CGA version of
Win3.0 in a window is just too neat to pass up.

Any comments on if this will work?

Paul Gyugyi
gyugyi@rascals.stanford.edu
 

adnan@screech.rice.edu (Sarmad Adnan) (09/12/90)

>> I'd like to run a real-mode version of Windows 3.0 within enhanced-mode
>> Windows.  In other words, while running Windows 3.0 in enhanced mode,
>> I'd like to run Windows (real-mode) as an application.  This works
>> normally.  However, I'd like the real-mode version to run with
>> different configuration files.  Any clues? Thanx in advance.


>     When Windows fires up, it appears to read a number of *.ini files for its
>initialization.  Briefly, the *.ini files appear to specify the following:

>control.ini    - desktop colors and patterns
>progman.ini   - definition of program manager groups etc.
>system.ini    - video drivers etc.
>win.ini       - programs to be loaded on startup, fonts, printer etc.
>winfile.ini   - startup configuration of File Manager

I have three different setups for windows on my computer. 
The trick is to keep each set of setup files in a different directory 
and have a batch file modify the path envoirnment variable so as to bring 
the required path name for the setup file directory ahead of the windows
directory pathname. A dir listing of one of the setup directory contains 
the following files---mostly ini & grp files but a couple of others too.

ACCESSOR GRP     10468 09-08-90   1:56p
COMMAND  PIF       545 06-13-90   3:43p
CONTROL  INI      1645 07-18-90  10:26p
GAMES    GRP     10213 09-08-90  11:51a
MAIN     GRP      5767 09-08-90  11:51a
NONWINDO GRP      2960 09-08-90  11:51a
PROGMAN  INI       231 09-08-90  10:12p
SMARTDRV SYS      6866 05-01-90   3:00a
SYSTEM   INI      1115 08-01-90  11:38p
WIN      COM     19358 07-16-90   8:18p
WIN      INI      2992 09-08-90  10:13p
WIN      SYD      3041 07-10-90   3:24p
WINFILE  INI       220 09-08-90  10:13p
WINHELP  BMK        63 07-11-90   2:21a
WINVER   EXE      8704 05-01-90   3:00a

I had initially setup using the instructions for the network installation
but found out that just copying and modifying these files also works fine.

--

                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  Sarmad Adnan (adnan@rice.edu)
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

pjh@mccc.uucp (Pete Holsberg) (09/17/90)

How would that go if I wanted to run Windows 2.x under Windows 3.0?

Thanks,
Pete
-- 
Prof. Peter J. Holsberg      Mercer County Community College
Voice: 609-586-4800          Engineering Technology, Computers and Math
UUCP:...!princeton!mccc!pjh  1200 Old Trenton Road, Trenton, NJ 08690
Internet: pjh@mccc.edu	     Trenton Computer Festival -- 4/20-21/91

pnl@hpfinote.HP.COM (Peter Lim) (09/19/90)

> How would that go if I wanted to run Windows 2.x under Windows 3.0?
> 
Very simple. Make sure that Windows 2.x is still installed on your
system. Start a DOS session under Windows 3.0 and run your Windows 2.x
in that DOS session.

Everything works fine except that I lost the mouse when I close Windows 2.x
and return to Windows 3.0.


Regards,                       ## Life is fast enough as it is ........
Peter Lim.                     ## .... DON'T PUSH IT !!          >>>-------,
                               ########################################### :
E-mail:  plim@hpsgwg.HP.COM     Snail-mail:  Hewlett Packard Singapore,    :
Tel:     (065)-279-2289                      (ICDS, ICS)                   |
Telnet:        520-2289                      1150 Depot Road,           __\@/__
  ... also at: pnl@hpfipnl.HP.COM            Singapore   0410.           SPLAT !


#include <standard_disclaimer.hpp>

spolsky-joel@cs.yale.edu (Joel Spolsky) (09/21/90)

In article <18950028@hpfinote.HP.COM> pnl@hpfinote.HP.COM (Peter Lim) writes:
>Start a DOS session under Windows 3.0 and run your Windows 2.x
>in that DOS session.
>Everything works fine except that I lost the mouse when I close Windows 2.x
>and return to Windows 3.0.

yah, this is a known bug.

Well there's always Windows 4.0....

Joel Spolsky
spolsky@cs.yale.edu                                     Silence = Death

rspangle@jarthur.Claremont.EDU (Randy Spangler) (09/22/90)

In article <18950028@hpfinote.HP.COM> pnl@hpfinote.HP.COM (Peter Lim) writes:
>> How would that go if I wanted to run Windows 2.x under Windows 3.0?
>> 
>Very simple. Make sure that Windows 2.x is still installed on your
>system. Start a DOS session under Windows 3.0 and run your Windows 2.x
>in that DOS session.
>
>Everything works fine except that I lost the mouse when I close Windows 2.x
>and return to Windows 3.0.

The solution to this is to minimize your Win 2.x window under Win 3.0
instead of quitting.  Then click on the icon and bring up the settings
menu, and terminate the application.  Kludgy, but it works on my system.

Suggestion for Win 3.1:

	Have the PIF files include space for a user-definable icon, so
that when you minimize one that you've run, you can set your own icon 
instead of the *^*&^* DOS icon.

f
o
d
d
e
r

-- 
 --------------------------------------------------------------------------
|    Randy Spangler                    |    The less things change, the    |
|    rspangle@jarthur.claremont.edu    |    more they remain the same      |
 --------------------------------------------------------------------------

pnl@hpfinote.HP.COM (Peter Lim) (09/25/90)

Want more improvement suggestion ? Here's one ....

Do not let Program Manager re-arrange program group icon position at will.
This is very exasperating. The icon kept running around every time you
open and close them and every time you exit Windows and save. How am I
supposed to find the bloody icon if they keep running ? It is like having
a desktop where your calculator, notebook, pen, etc. etc. play hide and
seek with you !  :-(  :-).

Should be like the Mac; keep them where they are until you re-arrange them
specifically.


Regards,                       ## Life is fast enough as it is ........
Peter Lim.                     ## .... DON'T PUSH IT !!          >>>-------,
                               ########################################### :
E-mail:  plim@hpsgwg.HP.COM     Snail-mail:  Hewlett Packard Singapore,    :
Tel:     (065)-279-2289                      (ICDS, ICS)                   |
Telnet:        520-2289                      1150 Depot Road,           __\@/__
  ... also at: pnl@hpfipnl.HP.COM            Singapore   0410.           SPLAT !


#include <standard_disclaimer.hpp>