Код ошибки установщика Wix 2343
Я пытаюсь создать установщик wix для службы окон. Но получаю следующую ошибку.
Установщик обнаружил неожиданную ошибку при установке пакета. Это может указывать на проблему с этим пакетом. Код ошибки-2343.
Что я делаю неправильно. Пожалуйста, кто-нибудь поправит меня, где я ошибся.
заранее спасибо.
Что я уже пробовал:
продукта.wxs:
<?xml version="1.0" encoding="UTF-8"?> <?define Name = "ESS_VillageMateIntegrtion" ?> <?define Manufacturer = "IRIZ ID TECH" ?> <?define VersionNumber = "1.0.0.0" ?> <?define UpgradeCode = "{FF9D7B21-A4FE-4DEB-A2FE-E77228F95831}" ?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*" UpgradeCode="$(var.UpgradeCode)" Version="$(var.VersionNumber)" Language="1033" Name="$(var.Name)" Manufacturer="$(var.Manufacturer)"> <Package InstallerVersion="300" Compressed="yes" InstallScope="perMachine" /> <!--<Media Id="1" EmbedCab="yes"/>--> <!-- Allow upgrades and prevent downgrades --> <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> <WixVariable Id="WixUILicenseRtf" Value="$(var.SolutionDir)\LicenceAgreement.rtf"/> <WixVariable Id="WixUIDialogBmp" Value="$(var.SolutionDir)\Dialog.bmp"/> <WixVariable Id="WixUIBannerBmp" Value="$(var.SolutionDir)\BannerBitMap.bmp"/> <!--Adding a User Interface--> <!--<UIRef Id="WixUI_Minimal" /> <UIRef Id="WixUI_Advanced"/>--> <UIRef Id="WixUI_InstallDir"/> <Icon Id="ESS.ico" SourceFile="$(var.SolutionDir)\ESS.ico" /> <Property Id="ApplicationFolderName" Value="My Application Folder"/> <Property Id="WixAppFolder" Value="WixPerMachineFolder"/> <Property Id="WIXUI_INSTALLDIR" Value="TESTFILEPRODUCTDIR"/> <!--<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER"/>--> </Product> <Fragment> <!-- Define the directory structure --> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="ROOTDIRECTORY" Name="$(var.Manufacturer)"> <Directory Id="INSTALLFOLDER" Name="$(var.Name)" /> <Directory Id="APPLICATIONFOLDER" Name="My Application Folder"/> <Directory Id="TESTFILEPRODUCTDIR" Name="My Program"/> </Directory> </Directory> </Directory> </Fragment> <Fragment> <ComponentGroup Id="DllsComponent" Directory="INSTALLFOLDER"> <Component Id="IRIZID.CryptoAPI.dll" Guid="{471726D2-42C5-4A1A-9425-337ABC39FD02}"> <File Id="IRIZID.CryptoAPI.dll" Source="$(var.ESS_VillageMateService.TargetDir)IRIZID.CryptoAPI.dll" KeyPath="yes"></File> </Component> <Component Id="IRIZID.DataLib.dll" Guid="{E6022A29-75FA-4928-8CCA-C693CED4376B}"> <File Id="IRIZID.DataLib.dll" Source="$(var.ESS_VillageMateService.TargetDir)IRIZID.DataLib.dll" KeyPath="yes"></File> </Component> <Component Id="IRIZID.Utility.dll" Guid="{5D5EC99B-A274-4C8B-B63C-A2B511DA2BB1}"> <File Id="IRIZID.Utility.dll" Source="$(var.ESS_VillageMateService.TargetDir)IRIZID.Utility.dll" KeyPath="yes"></File> </Component> <Component Id="Microsoft.Practices.EnterpriseLibrary.Common.dll" Guid="{7931ADE8-0517-4C4C-95FA-BF0E7871C979}"> <File Id="Microsoft.Practices.EnterpriseLibrary.Common.dll" Source="$(var.ESS_VillageMateService.TargetDir)Microsoft.Practices.EnterpriseLibrary.Common.dll" KeyPath="yes"></File> </Component> <Component Id="Microsoft.Practices.EnterpriseLibrary.Data.dll" Guid="{8DDAE310-23E6-4274-B400-7714A2805FD3}"> <File Id="Microsoft.Practices.EnterpriseLibrary.Data.dll" Source="$(var.ESS_VillageMateService.TargetDir)Microsoft.Practices.EnterpriseLibrary.Data.dll" KeyPath="yes"></File> </Component> <Component Id="Microsoft.Practices.ObjectBuilder.dll" Guid="{597A8921-39E3-4341-A554-E7F9A4EAFF06}"> <File Id="Microsoft.Practices.ObjectBuilder.dll" Source="$(var.ESS_VillageMateService.TargetDir)Microsoft.Practices.ObjectBuilder.dll" KeyPath="yes"></File> </Component> <Component Id="Newtonsoft.Json.dll" Guid="{E67D3722-A61F-42E2-BD66-2AD4C95636D1}"> <File Id="Newtonsoft.Json.dll" Source="$(var.ESS_VillageMateService.TargetDir)Newtonsoft.Json.dll" KeyPath="yes"></File> </Component> <Component Id="ESS_VillageMateIntegrtionServiceConfig.exe" Guid="{D13FEF04-091E-4BD0-B5C9-0C158A39D3DE}"> <File Id="ESS_VillageMateIntegrtionServiceConfig.exe" Source="$(var.ESS_VillageMateIntegrationTray.TargetDir)\ESS_VillageMateIntegrtionServiceConfig.exe" DiskId="1" KeyPath="yes"/> </Component> <Component Id="ESS_VillageMateIntegrationTray.exe" Guid="{A9CAABD5-76E8-4AA4-B410-7FB7675BC9E0}"> <File Id="ESS_VillageMateIntegrationTray.exe" Source="$(var.ESS_VillageMateIntegrationTray.TargetDir)\ESS_VillageMateIntegrationTray.exe" DiskId="1" KeyPath="yes" /> </Component> </ComponentGroup> <!-- Add files to your installer package --> <DirectoryRef Id="INSTALLFOLDER"> <Component Id="ESS_VillageMateIntegrtion.exe" Guid="{74F81CB9-8DD5-4604-87CA-47D205CE2537}"> <File Id="ESS_VillageMateIntegrtion.exe" Source="$(var.ESS_VillageMateIntegrtion.TargetDir)\ESS_VillageMateIntegrtion.exe" DiskId="1" KeyPath="yes" /> <!-- Remove the log file on uninstall --> <RemoveFile Id="log" Name="*.txt" On="both" /> <!-- Tell WiX to install the Service --> <ServiceInstall Id="ServiceInstaller" Type="ownProcess" Vital="yes" Name="ESS_VillageMateIntegrtion" DisplayName="ESS_VillageMateIntegrtion Service" Description="Write Data one DB to another DB" Start="auto" Account="LocalSystem" ErrorControl="normal" /> <!--Tell WiX to start the Service--> <ServiceControl Id="StartService" Start="install" Stop="both" Remove="uninstall" Name="ESS_VillageMateIntegrtion" Wait="yes" /> </Component> </DirectoryRef> <Feature Id="MainApplication" Title="Main Application" Level="1"> <ComponentRef Id="ESS_VillageMateIntegrtion.exe"/> <ComponentRef Id="DllsComponent"/> </Feature> </Fragment> </Wix>