PostCompile部分中的Inno安装程序副本OutputBaseFileName [英] Inno Setup copy OutputBaseFileName in PostCompile section

查看:148
本文介绍了PostCompile部分中的Inno安装程序副本OutputBaseFileName的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要在Inno Setup脚本编译完成后将副本OutputBaseFileName存档.

I want copy OutputBaseFileName to archive after Inno Setup script compiling is finished.

我准备了此脚本,但是它不起作用.

I prepared this script but it doesn't work.

[PostCompile]
Name: CopyFile({#OutputBaseFilename}, '\\Bckserver\Source\'{#OutputBaseFilename});

推荐答案

我猜您想让编译器将生成的安装程序复制到另一个目录(\\Bckserver\Source).

I will guess that you want to have the compiler copy the generated installer to yet another directory (\\Bckserver\Source).

这有效:

Name: "C:\Windows\System32\cmd.exe"; Parameters: "/c copy C:\path\setup.exe \\Bckserver\Source"

我认为没有更好的解决方案,因为Inno Setup Studio在PostCompile部分中不支持预处理器,因此您只能通过硬编码来引用OutputBaseFilename或系统目录.

I do not think there's better solution, as Inno Setup Studio does not support preprocessor in the PostCompile section, so you cannot refer to OutputBaseFilename or system directory other than by hard-coding them.

这篇关于PostCompile部分中的Inno安装程序副本OutputBaseFileName的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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