Windows Service fails to start on install WiX/IsWix. Verify that you have sufficient privileges. InstallShield to Wix installer(Windows 服务在安装 WiX/IsWix 时无法启动.验证您是否有足够的权限.InstallShield 到 Wix 安装程序)
问题描述
我在尝试使我的 Windows 服务的 WiX 安装程序类似于现有的 InstallShield Limited Edition 2015 安装程序时遇到问题.我尝试使用 IsWiX 图形工具在 WiX 中重现相同的现有 InstallShield 配置,但是在安装生成的安装程序时,我在启动服务时收到错误消息服务启动失败.检查您是否有足够的权限来启动系统服务".我已经尝试了 StackOverFlow 上发布的主题中提出的所有解决方案,但无济于事.我附上了功能性 InstallShield 安装程序的配置图片,以及我正在尝试开发的新 WiX/IsWix 安装程序.P.S : 在当前 InstallShield 安装程序的文档中,我们选中EudoProcessWindowsService.main"的.NET Properties"中的Install Class"框,以允许服务在安装时自动启动.
I have a problem trying to make a WiX installer of my Windows service similar to an existing InstallShield Limited Edition 2015 installer. I tried to reproduce the same existing InstallShield configuration in WiX using the IsWiX graphical tool, but when installing the generated Setup, I get an error message at installation when starting the services "Service start failure. Check that you have sufficient provilèges to start the system services". I have tried all the solutions proposed in the topics posted here on StackOverFlow, but to no avail. I attach pictures of the configuration of the functional InstallShield installer, as well as the new WiX/IsWix installer I'm trying to develop. P.S : In the doc of the current InstallShield installer, we check the "Install Class" box in".NET Properties" of "EudoProcessWindowsService.main" to allow the service to automatically start at installation.
感谢您尽快帮我解决了这个问题,在此先感谢您.
Thank you for helping me to solve this problem as soon as possible, and thank you in advance.
IsWiX 合并模块.wxs:
IsWiX Merge Module.wxs :
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<?define ComponentRules="OneToOne"?>
<!-- SourceDir instructs IsWiX the location of the directory that contains files for this merge module -->
<?define SourceDir=".."?>
<Module Id="EudoProcess" Language="1036" Version="10.017.0">
<Package Id="9c9ee890-0a79-4a13-b23c-d4a423f9068f" Manufacturer="Eudonet" InstallerVersion="200" Comments="contact: support@eudoweb.com" Description="EudoProcess" InstallScope="perMachine" Keywords="Installer,MSI,Database" Languages="1036" Platform="x86" AdminImage="yes" InstallPrivileges="elevated" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="CommonAppDataFolder" Name="CommonAppData" />
<Directory Id="CommonFilesFolder" />
<Directory Id="DesktopFolder" />
<Directory Id="MergeRedirectFolder">
<Directory Id="owd1D6699248764FCC49EB246ECD0E44403" Name="EUDOAGENTS">
<Directory Id="owdEE2A3739AA82DC65970E57F60CAF7295" Name="EudoProcess">
<Component Id="owc9794741B3CDAE241CA82B8CFF01BAB6B" Guid="490f4852-e65a-057e-1cf0-ab0de7b3195c">
<File Id="owf9794741B3CDAE241CA82B8CFF01BAB6B" Source="$(var.SourceDir)EudoProcessIHMinx86ReleaseGlobalConfig.xml" KeyPath="yes" />
</Component>
<Component Id="owc01ADF0244E3B37C95BC26B36A25B51D0" Guid="94a781dd-91a0-7567-3a1e-07e01ea467bf">
<File Id="owf01ADF0244E3B37C95BC26B36A25B51D0" Source="$(var.SourceDir)EudoProcessJobsinReleaseSyncfusion.Core.dll" KeyPath="yes" />
</Component>
<Component Id="owc1038C45AE48BE03D6D3CEA3B903E515D" Guid="40dca09d-a0f4-127a-d847-5900f69b2152">
<File Id="owf1038C45AE48BE03D6D3CEA3B903E515D" Source="$(var.SourceDir)EudoProcessWindowsServiceinDebugEudoProcessIHM.exe" KeyPath="yes">
<Shortcut Id="sc12569F7E6F0BAF648DB8844C871427E5" Name="EudoProcess" Directory="scd6FFE6E625369E4B5D473D7B41E91288D" Show="normal" />
<!--<Shortcut Id="UninstallProduct" Name="Uninstall EudoProcess" Target="[SystemFolder]msiexec.exe" Arguments="/x [ProductCode]" Description="Desinstalle EudoProcess" />-->
<Shortcut Id="sc5EA699B51DA100400CDB2EBCAA34FE93" Name="EudoProcess" Directory="DesktopFolder" Show="normal" />
<Shortcut Id="scDFCB66FC88D3C3FD632F2C7A3056EA10" Name="Uninstall EudoProcess" Directory="scd6FFE6E625369E4B5D473D7B41E91288D" Show="normal" Arguments="/x {9c9ee890-0a79-4a13-b23c-d4a423f9068f}" />
</File>
</Component>
<Component Id="owc67D5EA3C2FC68864C6FBDA0F0A537098" Guid="54ef3994-3549-8def-0453-88c4cd16c338">
<File Id="owf67D5EA3C2FC68864C6FBDA0F0A537098" Source="$(var.SourceDir)EudoProcessWindowsServiceinDebugEudoProcessJobs.pdb" KeyPath="yes" />
</Component>
<Component Id="owc24407607CCAC7813C232018552384AB5" Guid="a2f90958-b6d5-d7d7-b9f0-20f1be664d4e">
<File Id="owf24407607CCAC7813C232018552384AB5" Source="$(var.SourceDir)EudoProcessWindowsServiceinDebugEudoProcessWindowsService.exe" KeyPath="yes" />
<ServiceInstall Id="siF25576763802DAB33AAEE70DC6980648" Name="EudoProcessService" DisplayName="EudoProcess" Description="Service Eudonet gerant l'export, l'e-mailing et les traitements." ErrorControl="normal" Start="auto" Type="ownProcess" />
<ServiceControl Id="scF25576763802DAB33AAEE70DC6980648" Name="EudoProcessService" Stop="both" Remove="both" Wait="yes" Start="install" />
</Component>
<Component Id="owcA934B07A9C1DCF9CA006DD29AA0FF773" Guid="4936461f-24af-44e4-6ea1-b4bea4c8e0e9">
<File Id="owfA934B07A9C1DCF9CA006DD29AA0FF773" Source="$(var.SourceDir)EudoProcessWindowsServiceinDebugEudoProcessWindowsService.vshost.exe" KeyPath="yes" />
</Component>
<Component Id="owc01751399D1CAE5CEB33129290A6D9551" Guid="8b684566-cf4a-7973-b186-6321b457de1f">
<File Id="owf01751399D1CAE5CEB33129290A6D9551" Source="$(var.SourceDir)EudoProcessWindowsServiceinDebugEudoProcessWindowsService.vshost.exe.manifest" KeyPath="yes" />
</Component>
<Component Id="owc7A8276EDB69DFB9E8C1730A2727BDA95" Guid="e0fa0b13-4708-401b-74e8-96b48e2a74c5">
<File Id="owf7A8276EDB69DFB9E8C1730A2727BDA95" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseBouncyCastle.Crypto.dll" KeyPath="yes" />
</Component>
<Component Id="owc6359437F1CA68F5CDE796D8399CE4562" Guid="6e5e3aef-8634-5846-3c69-2c7970bd639c">
<File Id="owf6359437F1CA68F5CDE796D8399CE4562" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseCom.Eudonet.Framework.ORM.Connector.dll" KeyPath="yes" />
</Component>
<Component Id="owc104D844ADA90978FFD6D8A7C43A27295" Guid="0749adbc-6926-d2dd-cddc-71f387a4cc92">
<File Id="owf104D844ADA90978FFD6D8A7C43A27295" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoImport.dll" KeyPath="yes" />
</Component>
<Component Id="owcDC7BB09DA58BAF172B0F1048CF416E10" Guid="7b523f08-8c59-f6eb-cb05-21132204d692">
<File Id="owfDC7BB09DA58BAF172B0F1048CF416E10" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoImport.pdb" KeyPath="yes" />
</Component>
<Component Id="owcBCB7976AB2BADD58BFB56ADBA41FFB59" Guid="669f3fe0-b59c-4f59-8cb8-9ad258c2b686">
<File Id="owfBCB7976AB2BADD58BFB56ADBA41FFB59" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoInternal.dll" KeyPath="yes" />
</Component>
<Component Id="owc9436BEEE545C5F3565E234C922270094" Guid="ffb74359-75b8-8fa4-57c6-40fea93a43ee">
<File Id="owf9436BEEE545C5F3565E234C922270094" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoMailing.dll" KeyPath="yes" />
</Component>
<Component Id="owc12B7884B6EE4639E93DFBD4062FC0CAC" Guid="09d632d9-e7e9-3059-97a5-cf23250a37bc">
<File Id="owf12B7884B6EE4639E93DFBD4062FC0CAC" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoMailing.pdb" KeyPath="yes" />
</Component>
<Component Id="owcD16BE9A4811AEB43A4556CD7EF4BDE1D" Guid="818d130e-4461-09f7-69ef-4237cfac62fc">
<File Id="owfD16BE9A4811AEB43A4556CD7EF4BDE1D" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoProcessConfig.dll" KeyPath="yes" />
</Component>
<Component Id="owcB344082CCD619A26AE71A07E137AEFA4" Guid="2608ecf1-a61e-9a39-7e84-5ce439ad6a83">
<File Id="owfB344082CCD619A26AE71A07E137AEFA4" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoProcessConfig.pdb" KeyPath="yes" />
</Component>
<Component Id="owcC84874FA836DD8B9247B14DC62FA4951" Guid="b842da92-919b-5ed6-f9e5-e075dc9fdfe9">
<File Id="owfC84874FA836DD8B9247B14DC62FA4951" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoProcessIHM.pdb" KeyPath="yes" />
</Component>
<Component Id="owc2C2A9CFD7393AC124850C6E6AD6C7681" Guid="accc8b8e-ea69-7194-20a7-7b902929b5a7">
<File Id="owf2C2A9CFD7393AC124850C6E6AD6C7681" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoProcessInterfaces.dll" KeyPath="yes" />
</Component>
<Component Id="owcFE5944C8B4A786CE300A9649F1AAC4A3" Guid="e965a93b-3ecf-0e26-a074-9a3439bc8638">
<File Id="owfFE5944C8B4A786CE300A9649F1AAC4A3" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoProcessInterfaces.pdb" KeyPath="yes" />
</Component>
<Component Id="owc7777DF7E2F32190F00BC2B14592CF8F9" Guid="583a4dc8-447d-72d1-17c9-ed7284196b7e">
<File Id="owf7777DF7E2F32190F00BC2B14592CF8F9" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoProcessJobs.dll" KeyPath="yes" />
</Component>
<Component Id="owc979C2868D579E2533E9845FA74E338AB" Guid="fb066e71-ac13-1435-fb7f-13378bb2046a">
<File Id="owf979C2868D579E2533E9845FA74E338AB" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoProcessSql.dll" KeyPath="yes" />
</Component>
<Component Id="owc76CF2EA914ED6A453320CC13E9D013A6" Guid="ff522716-37ee-61cf-7b0e-c9c5120fec80">
<File Id="owf76CF2EA914ED6A453320CC13E9D013A6" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoProcessSql.pdb" KeyPath="yes" />
</Component>
<Component Id="owcCEC26FC1721327E531A70DB227F59D96" Guid="29b9a62f-0e1b-e81d-4bc1-8ca8bf4788ac">
<File Id="owfCEC26FC1721327E531A70DB227F59D96" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoProcessWCF.dll" KeyPath="yes" />
</Component>
<Component Id="owc32F770DA664580453F25BA4CE0230102" Guid="c6d6a59e-69fa-d21e-da36-673c7ee3f63e">
<File Id="owf32F770DA664580453F25BA4CE0230102" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoProcessWCF.pdb" KeyPath="yes" />
</Component>
<Component Id="owc9EC867E7C809A5D049C2E77DDDCD60CD" Guid="d9dca57c-8ba3-8908-689a-588ab002f7a7">
<File Id="owf9EC867E7C809A5D049C2E77DDDCD60CD" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoProcessWindowsService.pdb" KeyPath="yes" />
</Component>
<Component Id="owc122805EB065B19D31B8ADD71C3B2C025" Guid="6ddc1ca9-a730-81c7-2376-a3f8c98b043f">
<File Id="owf122805EB065B19D31B8ADD71C3B2C025" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoQuery_DEV.dll" KeyPath="yes" />
</Component>
<Component Id="owcFDB1025F04770FC057BE9E66A643EE86" Guid="d7acfd3f-c1f0-f7e0-97b4-967a6dd6a332">
<File Id="owfFDB1025F04770FC057BE9E66A643EE86" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoQuery_DEV.pdb" KeyPath="yes" />
</Component>
<Component Id="owc4D818B29FCE16664A0A89C85DDC981EF" Guid="ab739cd3-856b-cae8-75bb-ab3f51dd40b1">
<File Id="owf4D818B29FCE16664A0A89C85DDC981EF" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoReport.dll" KeyPath="yes" />
</Component>
<Component Id="owc32A17C9C5AD57723EE2AD05E4246929F" Guid="598fe4a9-e941-83ac-74c6-66e0d4f46e7b">
<File Id="owf32A17C9C5AD57723EE2AD05E4246929F" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoReport.pdb" KeyPath="yes" />
</Component>
<Component Id="owc9B77696C2CEB50F05CFBD72DEE68CACB" Guid="1bbc90f6-8ba4-d9d6-a5ab-2cdde4bede48">
<File Id="owf9B77696C2CEB50F05CFBD72DEE68CACB" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoSynchroExchangeInterface.dll" KeyPath="yes" />
</Component>
<Component Id="owc104017BB067EDAE8D9E48E46F001D553" Guid="8879046b-3850-aec6-595f-93e64a4abd28">
<File Id="owf104017BB067EDAE8D9E48E46F001D553" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoSynchroExchangeInterface.pdb" KeyPath="yes" />
</Component>
<Component Id="owc46BB2C56AF96777AF887AE44BBB8F5A1" Guid="e75fc5cd-acf7-6ad7-2f76-42f9345120f6">
<File Id="owf46BB2C56AF96777AF887AE44BBB8F5A1" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoTreatment.dll" KeyPath="yes" />
</Component>
<Component Id="owc062CFF801EF0019D79A04DBED640D637" Guid="0c267163-e49c-9ee4-6953-61c9e71eeaf1">
<File Id="owf062CFF801EF0019D79A04DBED640D637" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseEudoTreatment.pdb" KeyPath="yes" />
</Component>
<Component Id="owc88B45E168DA243560DA208F964DC753A" Guid="be070774-ec86-09f7-a8f1-cc6266652cd7">
<File Id="owf88B45E168DA243560DA208F964DC753A" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseHtmlAgilityPack.dll" KeyPath="yes" />
</Component>
<Component Id="owcE7798B8FF941AA1BDE582479AC8DDC79" Guid="032bea12-d1d5-42dc-6b8a-56db7f54434e">
<File Id="owfE7798B8FF941AA1BDE582479AC8DDC79" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseICSharpCode.SharpZipLib.dll" KeyPath="yes" />
</Component>
<Component Id="owc2DA2D732A91B6773DE4D2BA4AD1A35CE" Guid="2207c8ed-6fc0-bd8f-9c4f-7db8066b2fab">
<File Id="owf2DA2D732A91B6773DE4D2BA4AD1A35CE" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseMailKit.dll" KeyPath="yes" />
</Component>
<Component Id="owc5CBC0BA2AFED08858BFCBD8FADA090AA" Guid="9888f8ad-6c03-0bd1-7ff1-be58d77bdbfb">
<File Id="owf5CBC0BA2AFED08858BFCBD8FADA090AA" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseMimeKit.dll" KeyPath="yes" />
</Component>
<Component Id="owcEC65F952743814884E18EA2D9354A669" Guid="38d6a9f5-abe4-47e8-0581-a49e317d162e">
<File Id="owfEC65F952743814884E18EA2D9354A669" Source="$(var.SourceDir)EudoProcessWindowsServiceinRelease
Clam.dll" KeyPath="yes" />
</Component>
<Component Id="owc2F797511155AB7F31D86B59C97360B83" Guid="30304bd5-d1b8-5444-507b-f21af4166ed6">
<File Id="owf2F797511155AB7F31D86B59C97360B83" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseNewtonsoft.Json.dll" KeyPath="yes" />
</Component>
<Component Id="owcDC8C6A31CE069531B58628BFDFB438B2" Guid="36bc12f7-10e5-109e-dec7-11e71a6eca4e">
<File Id="owfDC8C6A31CE069531B58628BFDFB438B2" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleasePersits.PDF.dll" KeyPath="yes" />
</Component>
<Component Id="owcAA3E0EDCB901B90EAD57533DCB887358" Guid="0f8d16d5-628b-d3c0-5e4b-9b9aec7023a3">
<File Id="owfAA3E0EDCB901B90EAD57533DCB887358" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseRenci.SshNet.dll" KeyPath="yes" />
</Component>
<Component Id="owc9FB0F335EAC8F020C60EB8D8E7557EC2" Guid="870ebe48-1ef8-7b4e-f6bc-2e0cdf949ec7">
<File Id="owf9FB0F335EAC8F020C60EB8D8E7557EC2" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseSyncfusion.Compression.Base.dll" KeyPath="yes" />
</Component>
<Component Id="owc3CFA12764FA10A0763D34E222C696B52" Guid="75ef6e53-57cb-e72e-c6b0-40c64f4ca167">
<File Id="owf3CFA12764FA10A0763D34E222C696B52" Source="$(var.SourceDir)EudoProcessWindowsServiceinReleaseSyncfusion.XlsIO.Base.dll" KeyPath="yes" />
</Component>
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="scd66D24B92BA19185C0B453DDCBD00E39B" Name="Eudoweb">
<Directory Id="scd6FFE6E625369E4B5D473D7B41E91288D" Name="EudoProcess" />
</Directory>
</Directory>
<Directory Id="SendToFolder" />
<Directory Id="StartMenuFolder" />
<Directory Id="StartupFolder" />
<Directory Id="System64Folder" Name="System64Folder" />
<Directory Id="SystemFolder" Name="SystemFolder" />
</Directory>
<ComponentGroupRef Id="Custom" />
</Module>
</Wix>
EudoProcessInstall2019_IsWiXSetupCodeProduct.wxs:
EudoProcessInstall2019_IsWiXSetupCodeProduct.wxs :
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<!--
MSIProductVersion is defined in EudoProcessInstall2019_IsWiXSetup.wixproj as 0.0.1 for local desktop builds.
You should pass in the MSBuild Property 'MSIProductVersion' to override it during an automated build.
See http://msdn.microsoft.com/en-us/library/windows/desktop/aa370859%28v=vs.85%29.aspx for information on allowable values.
The Product@Id attribute (ProductCode Property) will be a random GUID for each build. This is to support "Major Upgrades" where each install
is a seamless uninstall/reinstall.
-->
<Product Id="*" Name="EudoProcess" Language="1036" Version="$(var.MSIProductVersion)" Manufacturer="Eudonet" UpgradeCode="83d92d93-40cb-4720-ba3c-254798e06e01">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" AdminImage="yes" InstallPrivileges="elevated" Keywords="Installer,MSI,Database" Languages="1036" Manufacturer="Eudonet" Platform="x86" Comments="Installation EudoProcess" Description="Installation EudoProcess" />
<!-- Major Upgrade Rule to disallow downgrades -->
<MajorUpgrade DowngradeErrorMessage="Une version plus récente de [ProductName] est déjà installée." />
<MediaTemplate />
<!--Common Launch Condition-->
<!-- Examples at http://wixtoolset.org/documentation/manual/v3/customactions/wixnetfxextension.html -->
<PropertyRef Id="NETFRAMEWORK40FULL" />
<Condition Message="[ProductName] requiert .NET Framework 4.0.">Installed OR NETFRAMEWORK40FULL</Condition>
<!-- Include User Interface Experience -->
<Icon Id="Icon.ico" SourceFile="Resourcesfavicon.ico" />
<Property Id="ARPPRODUCTICON" Value="favicon.ico" Admin="yes"></Property>
<UIRef Id="UI" />
<!-- Include Features and Directories Fragment -->
<DirectoryRef Id="INSTALLLOCATION" />
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="COMPANYFOLDER" Name="EUDOAGENTS">
<!--<Directory Id="ProgramFilesFolder">-->
<Directory Id="INSTALLFOLDER" Name="EudoProcess" />
</Directory>
</Directory>
</Fragment>
</Wix>
EudoProcessInstall2019_IsWiXSetupCodeFeatures.wxs:
EudoProcessInstall2019_IsWiXSetupCodeFeatures.wxs :
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Fragment>
<!--Content-->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="CompanyFolder" Name="EUDOAGENTS">
<Directory Id="INSTALLLOCATION" Name="EudoProcess">
<Merge Id="EudoProcessInstall2019_IsWiXMM" SourceFile="$(var.EudoProcessInstall2019_IsWiXMM.TargetPath)" DiskId="1" Language="1036" />
</Directory>
</Directory>
</Directory>
<FeatureGroup Id="features">
<Feature Id="EudoProcess" Title="EudoProcess" Description="Installe tous les fichiers nécessaires pour EudoProcess" Level="1" AllowAdvertise="no" ConfigurableDirectory="INSTALLLOCATION" Display="expand" TypicalDefault="install">
<MergeRef Id="EudoProcessInstall2019_IsWiXMM" />
</Feature>
</FeatureGroup>
</Fragment>
</Wix>
EudoProcessInstall2019_IsWiXSetup.wax:
EudoProcessInstall2019_IsWiXSetup.wax :
<?xml version="1.0" encoding="utf-16"?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DeployedProjects>
<string>..EudoImportEudoImportEudoImport.csproj</string>
<string>..EudoMailingEudoMailingEudoMailing.csproj</string>
<string>EudoProcessConfigEudoProcessConfig.csproj</string>
<string>EudoProcessIHMEudoProcessIHM.csproj</string>
<string>EudoProcessInterfacesEudoProcessInterfaces.csproj</string>
<string>EudoProcessSqlEudoProcessSql.csproj</string>
<string>EudoProcessWCFEudoProcessWCF.csproj</string>
<string>EudoProcessWindowsServiceEudoProcessWindowsService.csproj</string>
<string>..EudoQueryEudoQueryEudoQuery.csproj</string>
<string>..EudoReportEudoReportEudoReport.csproj</string>
<string>..EudoSynchroExchangeEudoSynchroExchangeInterfaceEudoSynchroExchangeInterface.csproj</string>
<string>..EudoTreatmentEudoTreatmentEudoTreatment.csproj</string>
</DeployedProjects>
<DirectoryMappings>
<Item Key="" Value="INSTALLLOCATION" />
</DirectoryMappings>
<FileMappings />
<DeploySymbols>false</DeploySymbols>
<DeployLocalizations>true</DeployLocalizations>
<DeployExternalLocalizations>false</DeployExternalLocalizations>
</Configuration>
EudoProcessInstall2019_IsWiXMMcustom.wxs:
EudoProcessInstall2019_IsWiXMMcustom.wxs :
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<!-- Reference Custom Components Below -->
<ComponentGroup Id="Custom">
</ComponentGroup>
<!-- Author Custom Components Below -->
<DirectoryRef Id="MergeRedirectFolder">
</DirectoryRef>
</Fragment>
</Wix>
这是我要复制的当前 InstallShield 安装程序配置:
Here is the current InstallShield installer configuration that I want to replicate:
一般信息:
应用程序文件:
Windows 服务:
Windows Service :
InstallShield 安装程序依赖项:
InstallShield installer dependencies :
推荐答案
安装方法:我猜是检查Install Class"
"EudoProcessWindowsService.main"
的 ".NET Properties"
中的 code> 框会导致 的安装程序方法ServiceProcessInstaller 类 内要运行的程序集?那里的代码实际上做了什么? 在此处查看更多信息.除了通过自定义操作启动 InstallUtil.exe,我不知道在 WiX 中运行安装程序方法的方法.
Install Methods: I guess checking the "Install Class"
box in ".NET Properties"
of "EudoProcessWindowsService.main"
will cause the installer method from the ServiceProcessInstaller Class within the assembly to be run? What does the code there actually do? See more here on this. I don't know of a way in WiX to run installer methods short of kicking off InstallUtil.exe via a custom action.
注意:一般来说,服务安装程序类的使用应保留仅用于开发和测试用途:如何让 MSI 安装程序在卸载服务时运行一些代码.
用于服务安装/控制的内置 MSI 结构 (ServiceInstall 和 ServiceControl 表)应该消除在安装过程中运行自定义代码的需要.
The built-in MSI constructs for service installation / control (ServiceInstall and ServiceControl tables) should eliminate the need to run custom code during installation.
InstallUtil.exe:如果安装后运行InstallUtil.exe
(先卸载再安装服务) 那么它会起作用吗?
InstallUtil.exe: If you run InstallUtil.exe
after installation (first uninstall and then install service) does it then work?
调试资源:关于调试服务和应用程序启动问题,我已有几个答案:
Debugging Resources: I have a couple of pre-existing answers on debugging services and application launch issues:
- 检查清单:在客户端系统中安装后无法打开桌面应用程序
- 检查清单(旧):Windows 应用程序启动错误异常代码:0xe0434352
- 依赖扫描:哪些winform项目文件应该打包到安装程序中
一些链接:
- MSVS 安装程序和自定义操作
- WiX 工具集 PermissionEx 问题 -安装后应用不运行
- https://www.coretechnologies.com/WindowsServices/FAQ.html
- 有可能吗使用带有 ServiceInstall wix 元素的外部 exe?
这篇关于Windows 服务在安装 WiX/IsWix 时无法启动.验证您是否有足够的权限.InstallShield 到 Wix 安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Windows 服务在安装 WiX/IsWix 时无法启动.验证您是否有足够的权限.InstallShield 到 Wix 安装程序
基础教程推荐
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- 如何激活MC67中的红灯 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- rabbitmq 的 REST API 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- c# Math.Sqrt 实现 2022-01-01