.NET Framework Developer Center > .NET Development Forums > .NET StockTrader Sample Application > Silent install or other scripted install options?
Ask a questionAsk a question
 

QuestionSilent install or other scripted install options?

  • Wednesday, September 09, 2009 5:01 PMGUnderwood Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Is there a way to do a silent install?   Or  MSBuild or other batch scripts to deploy?   I.e.,  some way to copy the assemblies and provide the database details without requiring interacting with the GUI installer

All Replies

  • Tuesday, September 15, 2009 4:32 PMGregory Leake Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Not in the current release; you do need to interact with UI to provide DB location details.

    I will look into this option for the next release which is targeting VS10 and .NET/CLR 4.0.

    The key reason the installer must be run on each computer is the encryption of the connection string info; which is machine key dependent; meaning only the machine that encrypts the info can decrypt it at runtime.

    The installer also sets all conn string/db locations in config files; and creates/loads databases; and creates the IIS app/vdirs and application pools for IIS.

    -Greg
    Greg Leake, Microsoft