I\'ve recently started using Inno Setup to try and create a simple .exe installer for a game modification.
I\'ve got the installer working fine for the most part, bu
In addition to using [Code]
as answered elsewhere, you can also nest registry constants:
DefaultDirName={reg:HKLM,Software\Vendor1\Application,InstallPath|{reg:HKLM,Software\Vendor2\Application,InstallPath|{pf}\DefaultInstallPath}}
This will use Vendor1's path if it exists; failing that it will try Vendor2's path, and only if it cannot find either of those will it fall back to some default value.