I've got an application that asks for a couple of values during the installation process and writes them to the app.config file. Does anyone know a way that I can pass these values during an unattended command-line install?
The values are normally captured in a "Textboxes (A)" dialog box that was added to the "User Interface" of the deployment project. The primary output in the "Install" node of the "Custom Actions" is configured with CustomActionData like this: /Param1="[EDITA1]" /Param2="[EDITA2]". Using various methods I thought that I could pass values for Param1 and Param2 via the command-line, but nothing has worked so far. The method I like the most is using the Windows Management Instrumentation Command-line (WMIC). Using the following command, I can install the product with the default values without the user even being aware that anything has happened:
The downside is that I then have to go into the users' application directory and modify the "MyApplication.exe.config" file manually. From what I understand, I should be able to enter the parameter names and values where the double-quotes are (between "true" and the application path), but no variation I've tried has worked so far.
Can anyone tell me what I'm doing wrong or at least give me some ideas as to what to check? If you can show me how to accomplish the same goal with something other than WMIC, I'm open to that as well.
The values are normally captured in a "Textboxes (A)" dialog box that was added to the "User Interface" of the deployment project. The primary output in the "Install" node of the "Custom Actions" is configured with CustomActionData like this: /Param1="[EDITA1]" /Param2="[EDITA2]". Using various methods I thought that I could pass values for Param1 and Param2 via the command-line, but nothing has worked so far. The method I like the most is using the Windows Management Instrumentation Command-line (WMIC). Using the following command, I can install the product with the default values without the user even being aware that anything has happened:
Code:
/node:(computer name) product call install true,"","C:\Temp\ApplicationDirectory\MyApplication.msi"
Can anyone tell me what I'm doing wrong or at least give me some ideas as to what to check? If you can show me how to accomplish the same goal with something other than WMIC, I'm open to that as well.