我试图在Wix中使用下面的代码.
但是在安装时,安装程序在状态下冻结了3分钟:启动服务,然后我收到此消息"Service Jobservice无法启动.验证您是否具有足够的权限来启动系统服务".我的代码有什么问题吗?我可以要求用户在安装过程中输入Windows系统用户名和密码以获得"权限"吗?
非常感谢!
<File Id='JobServiceEXE' Name='JobService.exe' DiskId='1'
Source='JobService.exe' Vital='yes' KeyPath='yes'/>
<ServiceInstall Id="ServiceInstaller" Type="ownProcess" Vital="yes"
Name="JobService" DisplayName="123 Co. JobService"
Description="Monitoring and management Jobs" Start="auto"
Account="LocalSystem" ErrorControl="ignore" Interactive="no" />
<ServiceControl Id="StartService" Stop="both" Remove="uninstall"
Name="JobService" Wait="yes" />
</Component>
Run Code Online (Sandbox Code Playgroud) 在完成WIX教程后,我仍然不知道如何将installdir添加到Windows系统变量的PATH中.
我试着用
Environment Id='UpdatePath' Action='create' Name='PATH' System='yes' Value='[INSTALLDIR]'
Run Code Online (Sandbox Code Playgroud)
但是我安装程序后路径没有变化.我几乎找不到任何WIX的示例代码.请帮帮我,非常感谢!
我们需要将Windows服务的启动类型从"自动"修改为"自动延迟启动".我该怎么做呢?
我的代码是这样的:
<ServiceInstall
Id="WinServiceInstall"
Name="ServiceManager"
DisplayName="ServiceManager"
Type="ownProcess"
Start="auto"
ErrorControl="normal"
Vital ='yes'
Description ='Monitoring and running the jobs'
Account="[SERVICEACCOUNT]"
Password="[SERVICEPASSWORD]">
<util:ServiceConfig
FirstFailureActionType="restart"
SecondFailureActionType="restart"
ThirdFailureActionType ="restart"
cRestartServiceDelayInSeconds ="10" />
</ServiceInstall>
Run Code Online (Sandbox Code Playgroud)
如何设置重启服务时间?如果失败,我想在2分钟后设置重启服务.
我正在使用WIX开发MSI安装程序,我可以在桌面上为一个用户创建快捷方式.现在我该怎么做才能为机器上的所有用户创建快捷方式?请指教.谢谢.
<Shortcut Id="desktopshortcut" Directory="DesktopFolder" Name="test"
WorkingDirectory='INSTALLDIR' Advertise="yes" />
Run Code Online (Sandbox Code Playgroud) 我正在开发一个Windows安装程序项目.现在我只希望软件只能安装在Windows 7或Windows Server 2008 R2系统上,我试着用这个:
<Condition Message='Windows Server 2008 R2 or Windows 7 is required'>(VersionNT = 600 AND ServicePackLevel = 1) OR VersionNT = 601 </Condition>
Run Code Online (Sandbox Code Playgroud)
但它仍然可以安装在Windows Vista上.请帮忙!
谢谢!
我正在尝试创建一个wix安装程序来安装和启动NetworkService帐户下的Windows服务,但是失败了,我得到的是"Service"()无法安装.验证您是否具有足够的权限来安装系统服务."
请指教,我的代码如下:
<Component Id="service" Guid='myguid'>
<File Id='JobServiceEXE' Name='JobService.exe' DiskId='1' Source='mypath\JobService.exe' KeyPath='yes' />
<ServiceControl Id="JobService" Name="[SERVICEID]" Stop="uninstall" Remove="uninstall" Wait="yes" />
<ServiceInstall
Id="JobService" Name="[SERVICEID]" DisplayName="[SERVICENAME]" Type="ownProcess" Start="auto" ErrorControl="normal" Vital ='yes'
Account="NT Authority\NetworkService"
Description="Job Service" />
</Component>
Run Code Online (Sandbox Code Playgroud)
谢谢!
我试图通过使用Windows命令行从文本文件中读取一些信息,并将其保存到变量,就像"set info = 1234"
下面是txt文件的内容,实际上我只需要修订版号,它的位置总是相同的第5行,从第11列到第15行.在示例中它是1234,我想知道是否有办法将其保存到Dos命令行中的变量.
非常感谢!
svninfo.txt:
Path: .
URL: https://www.abc.com
Repository Root: https://www.abc.com/svn
Repository UUID: 12345678-8b61-fa43-97dc-123456789
Revision: 1234
Node Kind: directory
Schedule: normal
Last Changed Author: abc
Last Changed Rev: 1234
Last Changed Date: 2010-04-01 18:19:54 -0700 (Thu, 01 Apr 2010)
Run Code Online (Sandbox Code Playgroud) 我已经从http://www.tramontana.co.hu/wix/更改了wix教程代码以制作我自己的安装程序.
运行安装程序来设置我的应用程序时没有问题.但当我再次运行安装程序时,一个窗口跳出来说"已经安装了此产品的另一个版本......"
但是在示例中,在安装程序后运行安装程序时,应该有一个维护模式,"更改,修复或删除安装"对话框.
我正在使用WixUI_Mondo,我认为它自动提供维护模式,任何想法如何启动它?
wix ×7
installer ×5
service ×2
windows ×2
autostart ×1
batch-file ×1
command-line ×1
dos ×1
environment ×1
path ×1
repair ×1
shortcut ×1
system ×1