我需要从Windows目录中的ini文件中提取DefaultDirName信息,我该怎么做?
I use following code in [code]
section to get string from INI file (in example: [InstallSettings] section, variable name: DefDirName):
[code]
function GetDefDirName(Param: String): String;
begin
Result := GetIniString('InstallSettings', 'DefDirName', '', 'c:\your_app_dir\file_with_info.ini'));
end;
and, at the very top of script in [Setup]
section:
DefaultDirName={code:GetDefDirName}
you can also do.
[Setup]
DefaultDirName={ini:Filename,Section,Key|DefaultValue}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.