3
我有一個Inno Setup的腳本,查找一個文件作爲預處理步驟:Inno Setup的:如何擴大預處理器變量在#error指令消息
#define a_path GetEnv("INSTALLER_FILES")
#define install_file FindFirst(a_path + "\pattern*.*")
當沒有找到install_file
,我想發出一個錯誤:
#if install_file == 0
#error No installer found at {#a_path}
#endif
但ISPP僅寫在彙編字面源極線:
> script.iss: [ISPP] No installer found at {#a_path}
是否可以在#error
指令中擴展預處理器變量?