| <画像:btn.gif> | 書式 Check : 関数名 サポート関数以外の関数を指定する場合には、 [Code] セクションで関数を定義します。 |
| <画像:btn.gif> |
記述例:
既に存在している場合には、インストールしない [Files] Source: file.txt; DestDir: {app}; Check: isFileExist [Code] function isFileExist():Boolean; begin Result := FileExists( ExpandConstant('{app}\file.txt') ); end; |
| <画像:btn.gif> | 記述例: インストール先に「db」ディレクトリが存在しなければ作成する [Dirs] Name: {app}\db; Check:isDbDirExist [Code] function isDbDirExist():Boolean; begin Result := DirExists( ExpandConstant('{app}\db') ); end; |