First post, by Mercury048
Mercury048
Offline
Rank
Newbie
This is not the only way to get FreeDOS tools working, but I found it the most elegant. It took me some time to figure this out, so I made this guide in the hope it may be useful to others.
This process allows you to use the FDIMPLES package manager to install and remove FreeDOS packages directly from within the DOSBox environment.
- Set up the following environment variables; you may adjust the paths to your liking.
REM The main directory for FreeDOS utilities:
SET DOSDIR=C:\FDOS
REM A temporary directory used to kickstart the installation process
SET TEMP=C:\TEMP
SET FDNPKG.CFG=%TEMP%\FDNPKG.CFG
- Extract the following files from the FreeDOS CD into the %TEMP% directory:
- FD13LIVE.ISO\packages\util\fdnpkg.zip\BIN\FDNPKG.EXE
- FD13LIVE.ISO\packages\util\fdnpkg.zip\BIN\FDNPKG.CFG
- Mount FD13LIVE.ISO within DOSBox (if you haven't yet). You can use any available drive letter.
IMGMOUNT E /data/images/FD13LIVE.ISO -t cdrom
- Use (the temporary) FDNPKG to properly install itself into %DOSDIR%.
Adjust paths as necessary. Note that you cannot use the %TEMP% variable directly on the command line (it only works in batch files); you must invoke the entire path literally.
C:\TEMP\FDNPKG.EXE INSTALL E:\PACKAGES\UTIL\FDNPKG.ZIP
- After the installation completes successfully, remove the temp files and unset the CFG variable. It may confuse FDIMPLES if you keep it set, so this step should be considered mandatory.
DEL C:\TEMP\*.*
SET FDNPKG.CFG=
- Install FDIMPLES using (the now properly-installed) FDNPKG:
C:\FDOS\BIN\FDNPKG.EXE INSTALL E:\PACKAGES\APPS\FDIMPLES.ZIP
- If there were no errors up to this point, you're done! You can invoke FDIMPLES, which is now correctly installed:
If the FD13LIVE.ISO image is still mounted, FDIMPLES will recognize it and provide you with a list of packages to install. Notably FDNPKG and FDIMPLES itself will be shown as already installed.
C:\FDOS\BIN\FDIMPLES.EXE
You can swap the mounted image for FD13BNS.ISO to install the Bonus packages also.
This process results in a clean installation of FDIMPLES which can manage all FreeDOS packages from this point on. In the future, you only need to mount the appropriate FreeDOS ISO image and have the %DOSDIR% variable set. FDIMPLES will "just work".