As part of my installer I ask teh user to specify the type of system they are installing my application on. These values are typicall "SQL Server", "Exchange Server", "Citrix Management" plus a few more. When a user selects a certain type i need to provide an addiotnal configuration file.
For example, I have this set at the moment so when the system type = "SQL Server" then download "sqlconfig.conf" which works as expected. I've looked at building in the SQL Server connection details using the SQL dialog and would like to take the information from this dialog and fill in the new config.
The config is a template
Code: Select all
# Read metrics from Microsoft SQL Server
[[inputs.sqlserver]]
servers = [
"Server=xxx.xxx.xxx.xxx;Port=1433;User Id=<user>;Password=<pw>;app name=aplication;log=1;",
]
1) be directed to the SQL Connect dialog and enter their details.
2) The installer goes off and does its thing, installs my application and downloads the sqlconfig.conf file from my server.
3) The information the user entered is inserted into the config file.
Can we do this?
FOLLOW US
Get the latest news in Application Packaging