I read your post twice and it could be that you were trying to install Windows 98 on some machine. But you didn't share what that machine was, why you were installing the OS, if there was remains of an OS on the drive and more.
This Tip may help you share enough information:
"If you are asking for help to troubleshoot a computer-related problem, please be sure to include all the necessary information (ie: operating system, model number, hardware, software, etc) that will help others identify your problem for a speedy resolution."
When my windows 98 setup is at its last updating process during installation, its showing an error n the application is closed!