Level 2

Possible to set DATABASEDIR in command line?

We have an install project that sets up a web application. One of the dialogs asks the user for a data path, and stores that result to DATABSEDIR. That value then gets placed into a section within the app's Web.Config file, via the XML file changes in the install project.

As part of our update service, I need to be able to run this install silently, passing it a data path to store within the web.config file. I've tried something like:

MyInstall.exe /s /v"/qn DATABASEDIR=Mypath"

But that is not working out. Is that property able to be assigned via command line? If not, could someone recommend an idea to accomplish what I need?

Labels (1)
0 Kudos
1 Reply
Level 7

Does this help?

Do you need the /qn inside the double quotes?

0 Kudos