NSIS 确认路径

Function .onVerifyInstDir
IfFileExists $INSTDIR\Winamp.exe PathGood
Abort ; 如果 $INSTDIR 不是 Winamp 路径,则不让用户安装在这里
PathGood:
FunctionEnd Function .onVerifyInstDir
IfFileExists '$INSTDIR\CpuIdle.exe' +3
MessageBox MB_OK "目录不对!"
Abort
FunctionEnd
© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容