我有一个使用 HM NIS Edit 创建的安装程序。如果我的检查发现它没有安装,我希望能够取消隐藏名为 VDF 的部分。并在安装时隐藏它,也不执行该嵌入安装程序。
我希望我说清楚了。
这是功能:
Function .onInit #Check's wether the installer is in your installation folder. onInit means that it checks for that even before the installer is initialized.
${If} ${FileExists} "$EXEDIR\VDF2012-17.0.22.8.Client.exe"
MessageBox MB_OK "VDF found"
${Else}
MessageBox MB_OK "The Visual DataFlex setup was not found in the installation folder. However the installation of $(^Name) will still continue."
${EndIf}