安装后执行批处理文件,并在Inno Setup中的“完成"页面之前的自定义页面上显示其输出. [英] Execute a batch file after installation and display its output on a custom page before Finished page in Inno Setup

查看:141
本文介绍了安装后执行批处理文件,并在Inno Setup中的“完成"页面之前的自定义页面上显示其输出.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用此解决方案,可以在Inno Setup UI中显示cmd输出:
Inno Setup安装程序中的嵌入式CMD(在自定义页面上显示命令输出)

A cmd output can be shown within Inno Setup UI using this solution:
Embedded CMD in Inno Setup installer (show command output on a custom page)

我的问题是我想在安装后执行[Run]部分(即)中的批处理文件.

My problem is that I want to execute a batch file in [Run] section (i.e.) after installation.

此外,我希望其输出显示在Inno Setup UI中,但是从文档中我看到[Run]将在安装后且显示最终对话框之前执行.

Also, I want its output to be displayed in Inno Setup UI, but from documentation I see that [Run] will be executed after installation and before final dialog is displayed.

那么在安装后如何显示自定义页面,该页面将显示从[Run]部分执行的批处理的所有输出?

So how can I show a custom page after installation, which will display all the output from the batch executed from [Run] section?

我试图通过Run部分中的BeforeInstall标志调用CustomPage设置,但是自定义页面会显示一秒钟,然后返回到安装"页面.

I tried to call the CustomPage setup via BeforeInstall flag in Run section, but the custom page is displayed for a second and then it returns back to Installing page.

我应该如何处理?

推荐答案

(当然,最好重命名该函数,因为它的名称现在没有意义了,并删除其无用的参数)

这篇关于安装后执行批处理文件,并在Inno Setup中的“完成"页面之前的自定义页面上显示其输出.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆