【问题标题】:Azure Storage Emulator Won't InstallAzure 存储模拟器无法安装
【发布时间】:2014-06-12 00:22:21
【问题描述】:

我无法通过 Web 平台安装程序安装 azure 存储模拟器。

=== Logging started: 4/25/2014  10:34:55 ===
Action start 10:34:55: INSTALL.
Action start 10:34:55: AppSearch.
Action ended 10:34:55: AppSearch. Return value 1.
Action start 10:34:55: FindRelatedProducts.
Action ended 10:34:55: FindRelatedProducts. Return value 1.
Action start 10:34:55: LaunchConditions.
Action ended 10:34:55: LaunchConditions. Return value 1.
Action start 10:34:55: ValidateProductID.
Action ended 10:34:55: ValidateProductID. Return value 1.
Action start 10:34:55: CostInitialize.
Action ended 10:34:55: CostInitialize. Return value 1.
Action start 10:34:55: FileCost.
Action ended 10:34:55: FileCost. Return value 1.
Action start 10:34:55: SetREINSTALLMODE.
Action ended 10:34:55: SetREINSTALLMODE. Return value 1.
Action start 10:34:55: CostFinalize.
Action ended 10:34:55: CostFinalize. Return value 1.
Action start 10:34:55: SetCommandForRunInitialize.
Action ended 10:34:55: SetCommandForRunInitialize. Return value 1.
Action start 10:34:55: InstallValidate.
Action ended 10:34:55: InstallValidate. Return value 1.
Action start 10:34:55: InstallInitialize.
Action ended 10:34:55: InstallInitialize. Return value 1.
Action start 10:34:55: RemoveExistingProducts.
Action ended 10:34:55: RemoveExistingProducts. Return value 1.
Action start 10:34:55: ProcessComponents.
Action ended 10:34:55: ProcessComponents. Return value 1.
Action start 10:34:55: UnpublishFeatures.
Action ended 10:34:55: UnpublishFeatures. Return value 1.
Action start 10:34:55: RemoveRegistryValues.
Action ended 10:34:55: RemoveRegistryValues. Return value 1.
Action start 10:34:55: RemoveShortcuts.
Action ended 10:34:55: RemoveShortcuts. Return value 1.
Action start 10:34:55: RemoveFiles.
Action ended 10:34:55: RemoveFiles. Return value 1.
Action start 10:34:55: InstallFiles.
Action ended 10:34:55: InstallFiles. Return value 1.
Action start 10:34:55: RunInitialize.
Action ended 10:34:55: RunInitialize. Return value 1.
Action start 10:34:55: CreateShortcuts.
Action ended 10:34:55: CreateShortcuts. Return value 1.
Action start 10:34:55: WriteRegistryValues.
Action ended 10:34:55: WriteRegistryValues. Return value 1.
Action start 10:34:55: RegisterUser.
Action ended 10:34:55: RegisterUser. Return value 1.
Action start 10:34:55: RegisterProduct.
Action ended 10:34:55: RegisterProduct. Return value 1.
Action start 10:34:55: PublishFeatures.
Action ended 10:34:55: PublishFeatures. Return value 1.
Action start 10:34:55: PublishProduct.
Action ended 10:34:55: PublishProduct. Return value 1.
Action start 10:34:55: InstallFinalize.
CAQuietExec:  Windows Azure Storage Emulator 3.0.0.0 command line tool
CAQuietExec:  Error: No available SQL Instance was found.
CAQuietExec:  Error 0xfffffff6: Command line returned an error.
CAQuietExec:  Error 0xfffffff6: CAQuietExec Failed
CustomAction RunInitialize returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 10:38:33: InstallFinalize. Return value 3.
Action ended 10:38:34: INSTALL. Return value 3.
Property(S): UpgradeCode = {CF5CD495-AEDE-42DA-B7CF-A70D398D4E6A}
Property(S): RunInitialize = "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator\WAStorageEmulator.exe" init -forcecreate -autodetect
Property(S): DOTNET4FULL = 4.5.51641
Property(S): LOCALDBINSTALLED = C:\Program Files (x86)\Microsoft SQL Server\110\LocalDB\Binn\SqlUserInstance.dll
Property(S): SQLEXPRESSVERSION = 10.0.2531.0
Property(S): TARGETDIR = G:\
Property(S): StorageEmulatorMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Azure\Storage Emulator\
Property(S): STORAGEEMUDIR = C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator\
Property(S): WixUIRMOption = UseRM
Property(S): ALLUSERS = 1
Property(S): ARPNOMODIFY = 1
Property(S): REINSTALLMODE = amus
Property(S): WindowsAzureMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Azure\
Property(S): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
Property(S): WINDOWSAZUREDIR = C:\Program Files (x86)\Microsoft SDKs\Windows Azure\
Property(S): MICROSOFTSDKSDIR = C:\Program Files (x86)\Microsoft SDKs\
Property(S): ProgramFilesFolder = C:\Program Files (x86)\
Property(S): SourceDir = C:\Users\win8\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzureStorageEmulator.3.0\1356EC2B8E2DBE40C737E5555DD11DFA1BE1AB47\
Property(S): MSIRMSHUTDOWN = 1
Property(S): WIXUI_INSTALLDIR = INSTALLDIR
Property(S): ARPSYSTEMCOMPONENT = 1
Property(S): DefaultUIFont = WixUI_Font_Normal
Property(S): WixUI_Mode = Minimal
Property(S): Manufacturer = Microsoft Corporation
Property(S): ProductCode = {6DFDA7BE-32F0-4E6F-B304-3567E656D18C}
Property(S): ProductLanguage = 1033
Property(S): ProductName = Windows Azure Storage Emulator - v3.0
Property(S): ProductVersion = 3.0.6848.39
Property(S): ErrorDialog = ErrorDlg
Property(S): SecureCustomProperties = NEWERVERSIONDETECTED;OLDEMULATORPACKAGEDETECTED;OLDERVERSIONDETECTED
Property(S): WixPdbPath = o:\bttemp\149736\obj.amd64fre\services\xstore\rdpackages\storageemulatorpackage\objfre\amd64\en-us\WindowsAzureStorageEmulator.wixpdb
Property(S): MsiLogFileLocation = C:\Users\win8.hub\AppData\Local\Temp\WindowsAzureStorageEmulator.txt
Property(S): PackageCode = {C5E0C90F-EFDF-4030-8F5D-2A3AF97D8B80}
Property(S): ProductState = -1
Property(S): PackagecodeChanging = 1
Property(S): REBOOT = ReallySuppress
Property(S): CURRENTDIRECTORY = C:\WINDOWS\SysWOW64
Property(S): CLIENTUILEVEL = 3
Property(S): CLIENTPROCESSID = 5180
Property(S): VersionDatabase = 200
Property(S): VersionMsi = 5.00
Property(S): VersionNT = 603
Property(S): VersionNT64 = 603
Property(S): WindowsBuild = 9600
Property(S): ServicePackLevel = 0
Property(S): ServicePackLevelMinor = 0
Property(S): MsiNTProductType = 1
Property(S): WindowsFolder = C:\WINDOWS\
Property(S): WindowsVolume = C:\
Property(S): System64Folder = C:\WINDOWS\system32\
Property(S): SystemFolder = C:\WINDOWS\SysWOW64\
Property(S): RemoteAdminTS = 1
Property(S): TempFolder = C:\Users\win8.hub\AppData\Local\Temp\
Property(S): CommonFilesFolder = C:\Program Files (x86)\Common Files\
Property(S): ProgramFiles64Folder = C:\Program Files\
Property(S): CommonFiles64Folder = C:\Program Files\Common Files\
Property(S): AppDataFolder = C:\Users\win8\AppData\Roaming\
Property(S): FavoritesFolder = C:\Users\win8\Favorites\
Property(S): NetHoodFolder = C:\Users\win8\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
Property(S): PersonalFolder = C:\Users\win8\Documents\
Property(S): PrintHoodFolder = C:\Users\win8\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
Property(S): RecentFolder = C:\Users\win8\AppData\Roaming\Microsoft\Windows\Recent\
Property(S): SendToFolder = C:\Users\win8\AppData\Roaming\Microsoft\Windows\SendTo\
Property(S): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\
Property(S): CommonAppDataFolder = C:\ProgramData\
Property(S): LocalAppDataFolder = C:\Users\win8\AppData\Local\
Property(S): MyPicturesFolder = C:\Users\win8\Pictures\
Property(S): AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
Property(S): StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
Property(S): StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\
Property(S): DesktopFolder = C:\Users\Public\Desktop\
Property(S): FontsFolder = C:\WINDOWS\Fonts\
Property(S): GPTSupport = 1
Property(S): OLEAdvtSupport = 1
Property(S): ShellAdvtSupport = 1
Property(S): MsiAMD64 = 6
Property(S): Msix64 = 6
Property(S): Intel = 6
Property(S): PhysicalMemory = 8142
Property(S): VirtualMemory = 5083
Property(S): AdminUser = 1
Property(S): MsiTrueAdminUser = 1
Property(S): LogonUser = win8
Property(S): UserSID = S-1-5-21-1097169495-1557939910-592522955-27415
Property(S): UserLanguageID = 1033
Property(S): ComputerName = win8
Property(S): SystemLanguageID = 1033
Property(S): ScreenX = 1024
Property(S): ScreenY = 768
Property(S): CaptionHeight = 23
Property(S): BorderTop = 1
Property(S): BorderSide = 1
Property(S): TextHeight = 16
Property(S): TextInternalLeading = 3
Property(S): ColorBits = 32
Property(S): TTCSupport = 1
Property(S): Time = 10:38:34
Property(S): Date = 4/25/2014
Property(S): MsiNetAssemblySupport = 4.0.30319.33440
Property(S): MsiWin32AssemblySupport = 6.3.9600.16384
Property(S): RedirectedDllSupport = 2
Property(S): MsiRunningElevated = 1
Property(S): Privileged = 1
Property(S): USERNAME = win8
Property(S): DATABASE = C:\WINDOWS\Installer\fab232b.msi
Property(S): OriginalDatabase = C:\Users\win8\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzureStorageEmulator.3.0\1356EC2B8E2DBE40C737E5555DD11DFA1BE1AB47\WindowsAzureStorageEmulator.msi
Property(S): UILevel = 2
Property(S): ACTION = INSTALL
Property(S): ROOTDRIVE = G:\
Property(S): CostingComplete = 1
Property(S): OutOfDiskSpace = 0
Property(S): OutOfNoRbDiskSpace = 0
Property(S): PrimaryVolumeSpaceAvailable = 0
Property(S): PrimaryVolumeSpaceRequired = 0
Property(S): PrimaryVolumeSpaceRemaining = 0
Property(S): INSTALLLEVEL = 1
Property(S): SOURCEDIR = C:\Users\win8\AppData\Local\Microsoft\Web Platform Installer\installers\WindowsAzureStorageEmulator.3.0\1356EC2B8E2DBE40C737E5555DD11DFA1BE1AB47\
Property(S): SourcedirProduct = {6DFDA7BE-32F0-4E6F-B304-3567E656D18C}
Property(S): ProductToBeRegistered = 1
MSI (s) (34:88) [10:38:34:039]: Product: Windows Azure Storage Emulator - v3.0 -- Installation failed.

MSI (s) (34:88) [10:38:34:039]: Windows Installer installed the product. Product Name: Windows Azure Storage Emulator - v3.0. Product Version: 3.0.6848.39. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.

=== Logging stopped: 4/25/2014  10:38:34 ===

我看到了this answer,但不明白他的意思

我只是手动删除了它们。重新创建了 v11.0:

sqllocaldb stop v11.0
sqllocaldb delete v11.0
sqllocaldb create v11.0

然后重新安装...

我看到了这两个文件

WAStorageEmulatorDb30.mdf
WAStorageEmulatorDb30_log.ldf

但它仍然无法安装。

编辑 2

这是我看到的错误

Log Name:      Application
Source:        SQLLocalDB 11.0
Date:          5/5/2014 9:44:32 AM
Event ID:      267
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      chobo2
Description:
LocalDB instance is corrupted. See the Windows Application event log for error details.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="SQLLocalDB 11.0" />
    <EventID Qualifiers="35269">267</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-05-05T16:44:32.000000000Z" />
    <EventRecordID>74923</EventRecordID>
    <Channel>Application</Channel>
    <Computer>chobo2</Computer>
    <Security />
  </System>
  <EventData>
  </EventData>
</Event>


Log Name:      Application
Source:        SQLLocalDB 11.0
Date:          5/5/2014 9:44:32 AM
Event ID:      261
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      chobo2
Description:
Cannot access LocalDB instance folder: %%LOCALAPPDATA%%\Microsoft\Microsoft SQL Server Local DB\Instances\<instance name>.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="SQLLocalDB 11.0" />
    <EventID Qualifiers="35269">261</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-05-05T16:44:32.000000000Z" />
    <EventRecordID>74922</EventRecordID>
    <Channel>Application</Channel>
    <Computer>chobo2</Computer>
    <Security />
  </System>
  <EventData>
  </EventData>
</Event>

【问题讨论】:

  • 你能检查二进制文件是否已安装吗?它们通常位于 C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator\
  • 看不到 Storage Emulator 文件夹。

标签: azure


【解决方案1】:

我注意到您的转储中混合了驱动器号(C:\、G:\、O;)。请注意,代码 1603 可能来自尝试从某些位置(如共享驱动器或网络驱动器)安装。我建议尝试向后工作-也许尝试从本地驱动器上的已知位置重新安装 WebPI,并确保它不会尝试将内容转储到其他地方。您是否以已提升(管理员)权限的用户身份运行此程序?

【讨论】:

    【解决方案2】:

    您引用的解决方案也应该对您有用,我们可以使用命令清理那些有问题的文件。

    那篇文章告诉您使用 powershell 执行这些命令。以管理员身份打开 powershell(或在 admin cmd.exe 提示符下输入 powershell)并输入以下内容:

    sqllocaldb stop v11.0
    sqllocaldb delete v11.0
    del %UserProfile%\WAStorageEmulatorDb30*.*
    sqllocaldb create v11.0
    

    【讨论】:

    • delete 应该是 delwin8 应该是 {username}。这完美无缺。关键部分是删除 WAStorageEmulatorDB30 文件。
    • @Matt Davies 我没有 WaStorageEmulator,我卸载了所有天蓝色的东西,现在我有了这些文件,模拟器似乎也安装了,但是当我运行它时,cmd 行窗口启动并执行命令,但它似乎挂起(只看到一个闪烁的破折号)并且没有任何反应。
    • @Bart 感谢有关 del 的提示 - 已修复。根据 chobo2 的早期日志,我在示例中使用 win8 作为用户名。
    • @chobo2 您能否粘贴“C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\csrun.exe”/devstore:start 的输出以及在事件查看器中可以找到的任何相关内容。我看看能不能帮你找出问题。
    • 好的,我将发布错误(似乎是 db 的问题),我想知道它是否有问题,因为我的计算机上同时有 VS 2012 和 Vs 2013,我需要安装来自网络平台的 2 个不同版本。
    【解决方案3】:

    我在更新到 v2.5 时遇到了类似的问题。我尝试了各种博客和 technet 论坛中概述的所有内容,但没有成功,但似乎给出的建议是正确的,只是对我的情况略有不同。

    • 卸载所有以前版本的 azure sdks
      • 可选,可能与解决我的问题无关。我卸载了所有 azure sdk、创作工具、用于 VS 的 azure 工具、用于 .Net 的 azure 库、存储模拟器和计算模拟器。
    • 删除 WAStorageEmulatorDb 文件
      • 接下来是清理所有以前的 WAStorageEmulator 数据库文件。对于大多数用户来说,这些似乎保存在c:\users\{user}\WAStorageEmulatorDb*.* 中。
        • sqllocaldb stop v11.0
        • sqllocaldb delete v11.0
        • 手动删除 c:\users\{user}\WAStorageEmulatorDb*.*
        • sqllocaldb create v11.0
    • 此时通过 Web 平台安装程序重新安装 Azure SDK 2.5 安装失败,并出现以下错误。
      • CAQuietExec: Windows Azure Storage Emulator 3.0.0.0 command line tool CAQuietExec: Error: Cannot create database. CAQuietExec: Error 0xfffffff3: Command line returned an error. CAQuietExec: Error 0xfffffff3: CAQuietExec Failed
    • 这是我注意到我的环境不同的地方。运行 sqllocaldb info 我注意到我有 4 个实例,V11.0,两个托管个人数据库的实例和第四个名为 MSSQLLocalDB 的实例。如果您在 Visual Studio - SQL Server 对象资源管理器中打开 (localdb)\MSSQLLocalDB,您应该会看到 WAStorageEmulatorDb。我的问题是我的 WAStorageEmulatorDb 没有像其他人那样存储在 v11.0 中,因此删除 v11.0 并没有帮助。
    • 再次删除 WAStorageEmulatorDb 文件。所以现在我知道我的 WAStorageEmulatorDb 在哪里,我重新运行了以下
      • sqllocaldb stop MSSQLLocalDB
      • sqllocaldb delete MSSQLLocalDB
      • sqllocaldb create MSSQLLocalDB
    • 通过 Web 平台安装程序重新安装 Azure SDK 2.5 已成功完成。
    • 最后,运行c:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\WAStorageEmulator.exe init 后跟c:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\WAStorageEmulator.exe start 成功启动。
      • 为了验证您还应该有新的c:\users\{user}\WAStorageEmulatorDb34.* 文件。

    【讨论】:

    • 我在使用 Azure Storage Emulator 4.0 更新到 v2.6 时遇到了同样的问题,但无法正常工作。删除MSSQLLocalDB 是关键。
    • 这里也一样。删除 MSSQLLocalDB 后安装顺利。
    • 我还必须删除 c:\users\{user}\AzureStorageEmulatorDB*.* 才能使其正常工作。
    • 这也解决了我的问题,但有一个重要区别:MSSQLLocalDB 在 SQL Server 对象资源管理器中不可见,但在我运行“sqllocaldb info”时确实出现了。无论哪种方式,删除 MSSQLLocalDb 并重新创建它都对我有用。
    • 您不需要重新创建 MSSQLLocalDB(无论如何,它在命令行上对我来说失败了),我只是再次运行安装程序,它为我创建了数据库。此外,正如 Oliver 所说,您需要从用户目录中删除 AzureStorageEmulatorDB
    【解决方案4】:

    我在安装到全新的 Windows 8.1 安装时遇到了同样的问题。 Matt Davies 的解决方案无法正常工作,因为 sqllocaldb 实例从未启动,但仍然让我走上了正确的道路。

    只需打开 C:\Users\{myuser} 并删除所有名为 WAStorageEmulatorDb3* 的文件即可解决问题。在我的例子中,冲突文件是WAStorageEmulatorDb34.*,但在未来的版本中可能会更高。

    【讨论】:

    • 删除 C:\Users\{myuser} 中的 AzureStorageEmulatorDb41* 文件修复了我在全新 Windows 10 安装 Storage Emulator 4.1 时遇到的安装失败问题。
    【解决方案5】:

    什么对我有用:

    • 转到 Windows 的“卸载/更改程序”
    • 选择 Microsoft Visual Studio 并点击 change
    • 然后选择 Web Developer 工具和 SQL Server Data Tools 并安装。

    如果我然后重新运行 Azure SDK 安装,一切都很好。

    【讨论】:

      【解决方案6】:

      我在使用 web 平台安装程序的 v2.95 SDK 时遇到了这个问题。我在安装了 SQL 2016 express 的 Windows 10 上。这是我在开发机器上修复它的方法:

      在提升的 cmd 提示符下运行以获取所有 localdb 实例的列表: sqllocaldb.exe info

      然后对于上面显示的每个实例,运行以下命令来删除它们: sqllocaldb.exe delete 'instanceName'

      现在杀死所有 sqlserver.exe 进程 (Get-Process sqlservr | Stop-Process)

      删除此位置下的所有内容: C:\Users\username\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances

      我还在注册表中列出了多个孤立实例(感谢 procmon)。删除所有在实例 GUID 下没有配置任何数据的那些。您应该会看到数据目录、实例名称和有关每个实例的其他信息。如果你不这样做,那么删除它。 HKEY_CURRENT_USER\SOFTWARE\Microsoft\Microsoft SQL Server\UserInstances

      最后,创建一个新的 localdb 实例: sqllocaldb.exe create

      SDK 终于安装好了!

      【讨论】:

      • 也为我工作
      【解决方案7】:

      我遇到了同样的问题,但解决方法是删除%UserProfile%\AzureStorageEmulatorDb*文件,然后重新运行安装

      【讨论】:

        猜你喜欢
        • 2015-10-26
        • 2014-11-30
        • 1970-01-01
        • 2014-10-20
        • 2014-05-18
        • 2014-09-09
        • 2021-09-12
        • 2018-12-28
        相关资源
        最近更新 更多