【发布时间】:2013-08-30 00:17:26
【问题描述】:
我使用 NSIS 脚本为我的应用程序创建了 Exe 文件。在我的脚本中,我检查了所选目录的可用空间。
1.如果所选目录没有所需空间,则用户想要更改目录。
2.在目录页面中再次更改目录后要检查可用空间。因此,当所选目录所需的空间可用时,请仅继续下一页。 所以它会在循环语句下。我试过下面的脚本
page custom checking
Function checking
Push "\"
push $InstallDir
Call SplitFirstStrPart
pop $R0
${DriveSpace} $R0 "/D=F /S=G" $R0
${While} $R0 <= 2
MessageBox MB_OK "Expected free space is not availble"
call directory
${EndWhile}
Function directory
--Here i want to define directory page--
[page directory] we cant use this here
call checking
FunctionEnd
1.如何创建用户自定义目录页面?
2.是否可以多次调用页面目录或MUI_PAGE_DIRECTORY?
谢谢
【问题讨论】:
标签: nsis