Unable to update to NuGet 1.2

Mar 31, 2011 at 3:13 PM

The problem is uninstalling NuGet 1.1. I am getting an error "Cannot create a file when that file already exists.

The following is VSIX Installer log:

3/31/2011 8:07:56 AM - Microsoft Visual Studio Extension Installer
3/31/2011 8:07:56 AM - -------------------------------------------
3/31/2011 8:07:56 AM - Initializing Install...
3/31/2011 8:07:57 AM - Extension Details...
3/31/2011 8:07:57 AM -  Identifier      : NuPackToolsVsix.Microsoft.67e54e40-0ae3-42c5-a949-fddf5739e7a5
3/31/2011 8:07:57 AM -  Name            : NuGet Package Manager
3/31/2011 8:07:57 AM -  Author          : Microsoft Corporation
3/31/2011 8:07:57 AM -  Version         : 1.2.20325.9034
3/31/2011 8:07:57 AM -  Description     : A collection of tools to automate the process of installing, upgrading, configuring, and removing packages from a VS Project.
3/31/2011 8:07:57 AM -  Locale          : en-US
3/31/2011 8:07:57 AM -  MoreInfoURL     : http://nuget.codeplex.com/documentation
3/31/2011 8:07:57 AM -  InstalledByMSI  : False
3/31/2011 8:07:57 AM -  MinFramework    : 4.0
3/31/2011 8:07:57 AM -  MaxFramework    : 4.0
3/31/2011 8:07:57 AM -
3/31/2011 8:07:57 AM -  Supported Visual Studio Editions :
3/31/2011 8:07:57 AM -   Version : 10.0
3/31/2011 8:07:57 AM -    Pro
3/31/2011 8:07:57 AM -    VWDExpress
3/31/2011 8:07:57 AM -
3/31/2011 8:07:57 AM -  Supported Isolated Shells :
3/31/2011 8:07:57 AM -
3/31/2011 8:07:57 AM -  References      :
3/31/2011 8:07:57 AM -
3/31/2011 8:07:57 AM - The extension will be upgraded from version 1.1.229.160.
3/31/2011 8:08:02 AM - The following target products have been selected...
3/31/2011 8:08:02 AM -  Microsoft Visual Studio 2010 Professional
3/31/2011 8:08:02 AM -
3/31/2011 8:08:02 AM - Verifying matching extension signatures before updating...
Installed Extension Path: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.1.229.160\
Update Extension Path: c:\users\chenl\appdata\local\temp\tmpc22b.tmp
3/31/2011 8:08:02 AM - Uninstalling 'NuGet Package Manager', version 1.1.229.160.
3/31/2011 8:08:02 AM - System.IO.IOException: Cannot create a file when that file already exists.

   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.Uninstall(IInstalledExtension extension)
   at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)
3/31/2011 8:08:02 AM - Install Error : System.IO.IOException: Cannot create a file when that file already exists.

   at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.Uninstall(IInstalledExtension extension)
   at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)

Developer
Mar 31, 2011 at 3:26 PM

Did you try updating directly without uninstalling first? If not and you got this error you need to navigate to:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.1.229.160\

And delete the .deleteme files.

You're hitting a bug in the vsix installer.

Mar 31, 2011 at 3:30 PM

Yes, after I deleted the two .deleteme files in the directory, update worked. Thanks.