Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
428 views
in Technique[技术] by (71.8m points)

windows - Can't Install Asp.net MVC 3

I tried with both the web install platform and manually but both don't work.

I am trying to first install AspNetMVC3ToolsUpdateSetup.exe yet it always fails with a fatal error

OS Version = 6.1.7601, Platform 2, Service Pack 1
OS Description = Windows 7 - x64 Enterprise Edition Service Pack 1
CommandLine = c:empext27692setup.exe
TimeZone = Pacific Daylight Time
Initial LCID = 1033
Using Simultaneous Download and Install mechanism
Operation: Installing
Package Name = Microsoft ASP.NET MVC 3 Tools Update
Package Version = 3.0.20406.0
User Experience Data Collection Policy: AlwaysUploaded
Number of applicable items: 5
MSI (c:empext27692AspNetWebPages.msi) Installation succeeded. Msi Log: Microsoft ASP.NET MVC 3 Tools Update_20120618_145125927-MSI_AspNetWebPages.msi.txt
MSI (c:empext27692AspNetWebPagesVS2010Tools.msi) Installation succeeded. Msi Log: Microsoft ASP.NET MVC 3 Tools Update_20120618_145125927-MSI_AspNetWebPagesVS2010Tools.msi.txt
MSI (c:empext27692AspNetMVC3.msi) Installation succeeded. Msi Log: Microsoft ASP.NET MVC 3 Tools Update_20120618_145125927-MSI_AspNetMVC3.msi.txt
MSI (c:empext27692AspNetMVC3VS2010Tools.msi) Installation succeeded. Msi Log: Microsoft ASP.NET MVC 3 Tools Update_20120618_145125927-MSI_AspNetMVC3VS2010Tools.msi.txt
MSI (c:empext27692NuGet.msi) Installation failed. Msi Log: Microsoft ASP.NET MVC 3 Tools Update_20120618_145125927-MSI_NuGet.msi.txt
MSI (c:empext27692AspNetMVC3VS2010Tools.msi) Uninstall succeeded. Msi Log: Microsoft ASP.NET MVC 3 Tools Update_20120618_145125927-MSI_AspNetMVC3VS2010Tools.msi.txt
MSI (c:empext27692AspNetMVC3.msi) Uninstall succeeded. Msi Log: Microsoft ASP.NET MVC 3 Tools Update_20120618_145125927-MSI_AspNetMVC3.msi.txt
MSI (c:empext27692AspNetWebPagesVS2010Tools.msi) Uninstall succeeded. Msi Log: Microsoft ASP.NET MVC 3 Tools Update_20120618_145125927-MSI_AspNetWebPagesVS2010Tools.msi.txt
MSI (c:empext27692AspNetWebPages.msi) Uninstall succeeded. Msi Log: Microsoft ASP.NET MVC 3 Tools Update_20120618_145125927-MSI_AspNetWebPages.msi.txt
Final Result: Installation failed with error code: (0x80070643), "Fatal error during installation. " (Elapsed time: 0 00:14:10).

I tried to do the fix here but it is not working for me.

Progress of installer

I get a bit further than what you see in the above screenshot as it seems to hit what I think is nuget and then instantly rollbacks. It happens so fast I can't get a good look.

I do have Visual Studios 2010 SP1 installed.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

How I got mine to work:

  1. Downloaded and ran the AspNetMVC3ToolsUpdateSetup.exe, let it extract the files but do not accept the license terms and click install
  2. This created the folder C:empext27692 and within this folder are all the required installation files and configuration used in the installation. If you view the contents of the folder you'll notice there is a nuget.msi installation file. Note, VS on your computer already has the latest version so no need to install this.
  3. Quickly make a copy of the folder C:empext27692, while execution in point 1 is still running and then click Cancel. This will rollback and delete what it created.
  4. Within the copy of the C:empext27692 you made in point 3, locate the file parameterinfo.xml and open it using a text editor
  5. Locate the following lines within the opened parameterinfo.xml file and delete them

    <MSI CanonicalTargetName="NuGet"
         DownloadSize="756736"
         EstimatedInstallTime="849920"
         HashValue="74F464AC4E7220775472D5DF08CE7842958BC53FB8B569E0917CEAEEFB82209C"
         InstalledProductSize="838144"
         Name="NuGet.msi"
         ProductCode="{A5630CB0-6D3C-4C93-9A51-03BEB835A982}"
         Rollback="true"
         SystemDriveSize="100">
        <IsPresent>
            <Exists>
                <MsiProductVersion ProductCode="Self" />
            </Exists>
        </IsPresent>
        <ApplicableIf>
            <Or>
                <Or>
                    <Or>
                        <LessThanOrEqualTo LeftHandSide="30319.01" BoolWhenNonExistent="false">
                            <RegKeyValue Location="HKLMSoftwareMicrosoftDevDivVSServicing10.0vstscoreVersion"/>
                        </LessThanOrEqualTo>
                        <LessThanOrEqualTo LeftHandSide="30319.01" BoolWhenNonExistent="false">
                            <RegKeyValue Location="HKLMSoftwareMicrosoftDevDivVSServicing10.0vstdcoreVersion"/>
                        </LessThanOrEqualTo>
                    </Or>
                    <LessThanOrEqualTo LeftHandSide="30319.01" BoolWhenNonExistent="false">
                        <RegKeyValue Location="HKLMSoftwareMicrosoftDevDivVSServicing10.0procoreVersion"/>
                    </LessThanOrEqualTo>
                </Or>
                <LessThanOrEqualTo LeftHandSide="30319.01" BoolWhenNonExistent="false">
                    <RegKeyValue Location="HKLMSoftwareMicrosoftDevDivvnsServicing10.0xcorVersion"/>
                </LessThanOrEqualTo>
            </Or>
        </ApplicableIf>
        <ActionTable>
            <InstallAction IfPresent="noop" IfAbsent="install" />
            <UninstallAction IfPresent="uninstall" IfAbsent="noop" />
            <RepairAction IfPresent="repair" IfAbsent="install" />
        </ActionTable>
    </MSI>
    
  6. Save the parameterinfo.xml

  7. Within the copy of the C:empext27692 you made, now locate the file setup.exe and execute it.

This will install MVC3 but not the old version of the NuGet.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...