如何基于独特的标识符可以动态地创建安装文件吗? [英] How can I dynamically create setup file based on unique identifier?

查看:173
本文介绍了如何基于独特的标识符可以动态地创建安装文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个Outlook插件,其工作完全正常,但我想知道我怎么可以创建一个安装文件附加在外接具有独特的公司的详细信息,从而有可能是大量的公司列表中,我该怎么编译安装文件,具有唯一的ID为每家公司,因为这将是动态的。

I have created an outlook Add-In and its working perfectly fine, but I would like to know how can I create a setup file for Add-in where Add-in has unique company details, so as there might be lots of company list, how can I compile setup file with Unique ID for every company, as it will be dynamic.

是否有可能呢?如果是的话我怎么能做到呢?如果不是有没有做到任何替代性的想法?有什么事情可以与INNO-设置?是否有可能在运行时在PHP编译EXE文件?

Is it possible to do? If yes how can I accomplish it? If not is there any alternative idea to accomplish it? Is it something possible with inno-setup? Is it possible to compile the exe file at runtime in php?

推荐答案

是的,你可以建立的设置值传递到preprocessed脚本。还有就是 /天的命令行命令行参数 preprocessor编译 。例如参见这个非常简单的脚本:

Yes, you can build the setup passing values to the preprocessed script. There is the /d command line parameter of the command line preprocessor compiler. See e.g. this very simple script:

[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
AppPublisher={#Publisher}
AppPublisherURL={#PublisherWeb}

该脚本可以使用 ISCC.exe 命令行工具传递值预期的变量,例如建是这样的:

This script you can build with the ISCC.exe command line tool passing the values to the expected variables e.g. this way:

iscc "/dPublisher=My Company" "/dPublisherWeb=www.example.com" "c:\Script.iss"

将preprocess脚本传递的价值观和构建输出设置二进制文件。如果您想同时在某个地方保存preprocessed脚本,你可以把这样一行到脚本的末尾:

That will preprocess the script passing the values and build the output setup binary. If you'd like also to save the preprocessed scripts somewhere, you can put a line like this to the very end of your script:

#expr SaveToFile("c:\PreprocessedScript.iss")

这将存储与填充preprocessor值的脚本。

That will store the script with the values filled by preprocessor.

这篇关于如何基于独特的标识符可以动态地创建安装文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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