Mail Archives: djgpp/2003/08/24/22:01:50
> I want that my program tests, whether cwsdpmi or others
> are installed. If not, it shall install cwsdpmi ,
> run the program, and uninstall cwsdpmi after terminating.
This is exactly what the stub prepended to each DJGPP image
already does. It first checks to see if DPMI is present,
and if not it searches for CWSDPMI.EXE in the directory the
image is located in (does not need to be in path, so you
can run by name with full path) - then checks the path, and
finally checks the current directory if all other locations
failed.
It then EXECs CWSDPMI, then continues. CWSDPMI will
automatically unload itself on the image exit.
If you need something custom that the stub doesn't do, then
the source and tools to build it are in djdev203.zip
- Raw text -