Generally speaking, there are only two kinds, one is stored in the configuration file, and the other is stored in the registry. The location of the configuration file is uncertain, which may be a file under the software installation directory or a directory on the system disk. You can open the software, do only one operation that affects history, close the software, and then search all the files in the software installation directory to find the one with the latest modification time. If it looks like a text file, open it with a notepad or something to see if there are any related records. If it is in the system disk or registry, in order to locate, individuals usually use Process Monitor (equivalent to the previous filemon and regmon), which can monitor the operation of the registry and files at the same time. Similarly, perform an operation that affects the history, and then check the registry and file writing changes in the process monitor.
Of course, if it is not a relatively unpopular special software, you can use Baidu or Google to search for relevant information online first.
Of course, there is another situation. If it is software with a database (whether it is a network database such as mssql or a desktop database such as access/sqlite), history may also exist in the database, and the desktop database will be regarded as the previous configuration file. If it is found that the database is really affected, open the database with the corresponding management software.