出于某种原因,在将Windows安装程序类添加到我的Windows服务项目后,我在设计模式下打开它并右键单击,但是没有选项可以添加服务安装程序或服务进程安装程序.有谁知道为什么会这样?
我正在使用Wix来安装Windows服务.该服务需要在用户设置的非系统/服务帐户下运行.
是否可以让它提示服务登录的用户名/密码?
我正在构建Windows服务并遵循此MSDN文章,但我仍然坚持在"创建安装程序"下的第3步.我找不到它所指的"Add Installer"链接.我点击了所有地方,包括完全按照它给出的说明,但我似乎无法找到它.Google上的一些人遇到了同样的问题,但从未找到过解决方案(除了添加ServiceInstaller对象并手动配置).
有没有其他人有这个问题,并找到了原因?我正在使用VS2008并且如果重要的话,目标是.Net 2.0.
windows-services service-installer visual-studio-2008 .net-2.0
这是否有区别(嵌套安装程序)
ServiceInstaller si = new ServiceInstaller();
si.ServiceName = "MyService";
ServiceProcessInstaller spi = new ServiceProcessInstaller();
spi.Account = ServiceAccount.LocalSystem;
spi.Installers.Add(si);
this.Installers.Add(spi);
Run Code Online (Sandbox Code Playgroud)
还有这个?(TransactedInstaller)
TransactedInstaller ti = new TransactedInstaller();
ServiceInstaller si = new ServiceInstaller();
si.ServiceName = "MyService";
ti.Installers.Add(si);
ServiceProcessInstaller spi = new ServiceProcessInstaller();
spi.Account = ServiceAccount.LocalSystem;
ti.Installers.Add(spi);
this.Installers.Add(ti);
Run Code Online (Sandbox Code Playgroud)
嵌套安装程序是否默认处理?应该选择哪种款式?
我有一个java应用程序。我已经制作了一个scansol-agent-app.exe文件,我需要使用 WiX 制作安装程序。下面是scansol-agent.wxs文件的代码。我需要将此应用程序安装为 Windows 服务。Servise 安装良好,但无法启动。Windows 显示错误: \xe2\x80\x9cService 无法启动 - 验证您是否有足够的权限来启动系统服务\xe2\x80\x9d \n我尝试了所有可以找到的变体,但没有任何结果。我怎样才能启动这项服务?
\n\n <?xml version="1.0"?>\n<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">\n <Product Id="*" \n UpgradeCode="{EB6B8302-C06E-4bec-ADAC-932C68A3A98D}" \n Name="Scansol Agent Application Service" \n Version="0.0.1" \n Manufacturer="ScienceSoft" \n Language="1033">\n\n <Package InstallerVersion="200" Compressed="yes" Comments="Windows Installer Package" Manufacturer="ScienceSoft"/>\n <Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>\n\n <Property Id="WHSLogo">1</Property>\n\n <WixVariable Id="WixUILicenseRtf" Value="license.rtf" />\n\n <UI> \n <Property Id="ApplicationFolderName" Value="WiX Demo" />\n <Property Id="WixAppFolder" Value="WiXxperMachineFolder" />\n <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />\n <UIRef Id="WixUI_InstallDir" />\n <!-- Skip license dialog -->\n <Publish Dialog="WelcomeDlg"\n Control="Next"\n Event="NewDialog"\n Value="InstallDirDlg"\n …
Run Code Online (Sandbox Code Playgroud)