如何创建 1 个可以在多个环境中运行的 InnoSetup 脚本?

发布于 2024-09-04 00:47:52 字数 117 浏览 1 评论 0原文

我的程序在开发、质量保证和生产之间只有一些区别。

我希望能够为每个环境使用相同的编译文件,并包含一个包含特定于环境的设置的小配置文件。

有谁知道我怎样才能做到这一点?

谢谢

I have a program that has only a few differences between Development, QA and Production.

I'd like to be able to use the same compiled file for each environment and include a small configuration file containing the settings which are environment specific.

Does anyone know how I can accomplish this?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

等待我真够勒 2024-09-11 00:47:52

Inno Setup 能够接受命令行参数。然后,您可以使用这些参数来决定安装什么或如何配置设置。然后,您可以执行一些操作,例如调用安装程序“Setup.exe -QA”以使用 QA 设置进行安装,或调用“Setup.exe -PROD”以使用生产设置进行安装。

查看 Inno Setup 帮助文件,了解有关如何在安装程序中使用命令行参数的文档。

Inno Setup is capable of accepting command line parameters. You could then use those parameters to make decisions about what gets installed or how settings are configured. Then you can do something like call the installation program "Setup.exe -QA" to install with the QA settings, or "Setup.exe -PROD" to install with the Production Settings.

Have a look in the Inno Setup help files for documentation on how to use command line parameters in your installer.

尽揽少女心 2024-09-11 00:47:52

你能不能只在 InnoSetup 中添加一个私有变量或常量来指示它应该创建哪个构建并在 InnoSetup 中针对此进行编码?

Can you not just add a private variable or constant within InnoSetup that indicates which build it should create and code against this within InnoSetup?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文