locked
Driving install of standard web install project from command-line RRS feed

  • Question

  • User-1613928585 posted

    I have a VS project (web service) for which I created a standard VS Web Setup project.  That project creates the typical setup.exe and project.msi files.  When run interactively, the setup prompts the user to select an IIS Site, a Virtual directory and the Application Pool.  I'd like to drive this setup silently from a script, passing the necessary args on the command-line such that the user isn't prompted.  I've played some with the args in an attempt to set those three prompts using properties, but without luck.

    Can anyone tell me if there are public properies on the MSI that would allow me to set those prompts via the command-line?

     

     

    Wednesday, February 17, 2010 11:42 AM

Answers

  • User-1613928585 posted

    Using a n MSI Viewer that I found via Bing, I was able to find the public properties that are exposed by the MSI created by the web setup project.  Only two of the three properties I was looking for appear to be exposed:  TARGETSITE and TARGETAPPPOOL.

    So to drive this from the command line...

    msiexec.exe /i MyWebProject.msi /q TARGETAPPPOOL="My App Pool" TARGETSITE="My App Site"

    Hope others find the info useful.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, February 19, 2010 12:15 PM