Inno Setup - Setting DefaultDir using wildcard registry entry?

前端 未结 2 1253
礼貌的吻别
礼貌的吻别 2021-01-20 00:02

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

2条回答
  •  深忆病人
    2021-01-20 00:55

    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.

提交回复
热议问题