Inno Setup: read source path from a registry on compile time
问题 Reading a registry value from the [Code] section is quite easy. But if I have to read the value of a registry (an installation path) to be used in the [Files] section in order to copy files from a source folder the the install/destination folder I tried: Source: "{reg:HKLM\SOFTWARE\MyApp,InstallDir|DefaultDirName}\*"; DestDir: "{app}\Mydestination"; AfterInstall: AfterInstallProc receiving the error "unknown filename prefix 'reg:'". Or is there a possibility to read a registry value at the