I recently started using Inno Setup to try to create a simple .exe installer to modify the game.
I have an installer that works fine for the most part, but it is a bit basic at the moment. What I really would like to do to the installer is to automatically find the game installation directory in which the mod is designed for (Dawn of War - Dark Crusade), so the user does not need to view it manually.
I read that the Inno installer can install DefaultDir according to the registry entry. However, while the game βtargetβ creates a registry entry containing its installation directory, the game can be purchased either digitally (via Steam) or physically, and it creates various registry entries depending on the format in which it is bought it. My mod works with either format, but I do not know how to install DefaultDir if there is more than one possible registry key format.
Is there any "wilcard" function that will return the game installation directory from its registry entry without my entering the exact full value of the registry key (i.e. any kind of registry)? Or to search for two possible values ββthat he could have, and then default to {src} if he doesn't find any?
source share