install4j 我们可以自定义用户输入的存储位置吗
install4j can we customizing the location of storage of user inputs
我在更新安装的 install4j 中看到,用户会看到他们在全新安装期间提供的 options/data。
安装程序从哪里获取这些数据?(它是从 response.varfile 中获取的)
有什么方法可以让我们自定义 file/location 安装程序从哪里获取这些信息? (我读到它可以存储在不同的文件中。我担心的是安装程序是否会在 re-run/update 上选择新位置)
用户能否修改此数据,安装程序会根据修改执行操作吗?
如何存储受保护的数据(如密码)?
Is there way that we can customize the file/location from where installer will pickup this information?
默认情况下,文件始终位于 .install4j/response.varfile
下。您可以在安装程序和卸载程序中的 "Load a response file" 操作中指定另一个响应文件路径,但是您必须在 "Finish" 屏幕上添加一个 "Create a response file" 操作以将其保存到该文件.无论如何都会写入默认响应文件。
另外,您可以在命令行指定-varfile [file]
来读取另一个响应文件。
Can the user modify this data and will the installer act according to the modifications?
是的。
How is the protected data (like passwords) stored?
仅存储响应文件变量。它们必须绑定以形成组件,或者您显式调用 context.registerResponseFileVariable(...)
作为变量名。
要防止变量被记录在任何地方,请调用 context.registerHiddenVariable(...)
获取变量名称。
如果您在 "Installer" 节点的 "Installer variables" 选项卡上预定义安装程序变量,这些设置也可以在 GUI 中使用。
"Password"表单组件默认不会将其绑定变量写入响应文件,它还会自动将该变量配置为隐藏变量。如果您 select "Password" 表单组件的 "Write encoded value to response file" 属性 一个混淆但不安全的值被写入响应文件。
有关响应文件的更多信息,请参阅 documentation。
我在更新安装的 install4j 中看到,用户会看到他们在全新安装期间提供的 options/data。
安装程序从哪里获取这些数据?(它是从 response.varfile 中获取的)
有什么方法可以让我们自定义 file/location 安装程序从哪里获取这些信息? (我读到它可以存储在不同的文件中。我担心的是安装程序是否会在 re-run/update 上选择新位置)
用户能否修改此数据,安装程序会根据修改执行操作吗?
如何存储受保护的数据(如密码)?
Is there way that we can customize the file/location from where installer will pickup this information?
默认情况下,文件始终位于 .install4j/response.varfile
下。您可以在安装程序和卸载程序中的 "Load a response file" 操作中指定另一个响应文件路径,但是您必须在 "Finish" 屏幕上添加一个 "Create a response file" 操作以将其保存到该文件.无论如何都会写入默认响应文件。
另外,您可以在命令行指定-varfile [file]
来读取另一个响应文件。
Can the user modify this data and will the installer act according to the modifications?
是的。
How is the protected data (like passwords) stored?
仅存储响应文件变量。它们必须绑定以形成组件,或者您显式调用 context.registerResponseFileVariable(...)
作为变量名。
要防止变量被记录在任何地方,请调用 context.registerHiddenVariable(...)
获取变量名称。
如果您在 "Installer" 节点的 "Installer variables" 选项卡上预定义安装程序变量,这些设置也可以在 GUI 中使用。
"Password"表单组件默认不会将其绑定变量写入响应文件,它还会自动将该变量配置为隐藏变量。如果您 select "Password" 表单组件的 "Write encoded value to response file" 属性 一个混淆但不安全的值被写入响应文件。
有关响应文件的更多信息,请参阅 documentation。