Mailbag: Can the .NET Framework verification tool be run in silent mode?


Question:

I would like to try to automate the instructions for removing and reinstalling the .NET Framework that are described in this blog post.  I saw your previous blog post about running the .NET Framework cleanup tool in silent mode.  Are there also command line switches that I can use to run the .NET Framework setup verification tool in silent mode?

Answer:

Yes, it is possible to run the .NET Framework setup verification tool in silent mode.  To do that, you need to download the .NET Framework setup verification tool, extract the file SetupVerifier_NetfxAll.exe from the zip file, and run it using syntax like the following:

setupverifier_netfxall.exe /q:a /c:”vsverify.exe /q /p <name of product to verify> /l <language of product to verify>”

The values that you pass with the /p switch to replace <name of product to verify> and the /l switch to replace <language of product to verify> in this example must exactly match a product name and language listed in the file vsverify.ini that is included in the self-extracting package for the setup verification tool.

For example, if you would like to run the .NET Framework setup verification tool to silently verify the setup for the .NET Framework v2.0 (x86):

setupverifier_netfxall.exe /q:a /c:”vsverify.exe /q /p .NET Framework v2.0 (x86) /l All”

The .NET Framework setup verification tool returns 0 if verification is successful and non-zero if there are errors.

There is a file named setupverifier_readme.txt included in the .NET Framework setup verification tool zip file that explains in more detail how the setup verifier works and how to run it in silent mode.  The readme includes a complete list of supported product name and language values that can be passed in via the /p and /l command line switches when running the tool in silent mode.

Comments (7)

  1. shoek says:

    Does this tool work on Vista?  I just tried it with no UAC and got:

    10/26/07 14:18:08 Starting setup verification for product: .NET Framework v2.0 (x86) All

    10/26/07 14:18:08 Running filelistgen.exe with command line: "C:TempIXP000.TMPfilelistgen.exe" /out="C:Tempfilelistgen_output.txt" /log="C:Tempfilelistgen_log.txt" /map="C:TempIXP000.TMPv20_urt_std_x86_ixp.sem"

    10/26/07 14:18:09  

    10/26/07 14:18:09  

    10/26/07 14:18:09 ************ Log info from FileListGen.exe ************

    10/26/07 14:18:09

    10/26/07 14:18:09  – Reading Map File…

    10/26/07 14:18:09  – Getting Products Info…

    10/26/07 14:18:09 *** No product was found to analyse!

    10/26/07 14:18:09 ********* End of log info from FileListGen.exe ********

    10/26/07 14:18:09  

    10/26/07 14:18:09  

    10/26/07 14:18:09 ****ERROR**** VerifySetup returned false for parameters v20_urt_std_x86_ixp.sem and E_FILES

    10/26/07 14:18:09 Verification thread is returning 100

  2. Hi Shoek – This verification tool checks the files that are installed as a part of the MSI-based .NET Framework 2.0.  On Windows Vista, the .NET Framework 2.0 is installed as an OS component and the MSI-based package cannot be installed on this OS.  The steps listed at http://blogs.msdn.com/astebner/archive/2007/03/26/how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx can be used to verify the .NET Framework 2.0 (and 3.0) on Windows Vista, and those steps should be used on Vista instead of this tool.

  3. I have posted an updated version of the .NET Framework setup verification tool this weekend. It contains

  4. I have posted an updated version of the .NET Framework setup verification tool this weekend. It contains