如何为WiX安装程序创建日志文件?
我需要在安装在WiX中创建的安装程序期间创建一个日志文件.目前我只知道命令行选项来运行MSI文件并生成日志文件.
但我需要通过正常运行MSI文件(而不是在命令行中)来创建日志文件,并记录安装期间发生的每个进程.
当我尝试运行我在WIX中创建的安装程序时,出现以下错误消息:
"服务'报告生成器服务'(报告生成器服务)无法启动.验证您是否具有足够的权限来启动系统服务".
我已经在这里阅读了一些关于这个的博客,我的代码几乎完全相同,但仍然会出现这个错误.关于这一点的奇怪之处在于,当我第一次使用与下面几乎相同的代码创建此安装程序时,在安装期间不会发生此错误.请帮帮我们,我迷路了...... :(
<File Id="ReportGenerator.exe"
Name="ReportGenerator.exe"
Source="..\ReportGenerator\bin\Release\ReportGenerator.exe"
KeyPath="yes" />
<ServiceInstall Id="ReportGeneratorServiceInstaller"
Name="ReportGeneratorInstaller"
DisplayName="Report Generator Service"
Type="ownProcess"
Start="auto"
ErrorControl="normal"
Description="Generate Reports"
Account="[SERVICEACCOUNT]"
Password="[SERVICEPASSWORD]" />
<ServiceControl Id="StartReportService"
Start="install"
Stop="both"
Remove="uninstall"
Name="ReportGeneratorInstaller"
Wait="yes" />
Run Code Online (Sandbox Code Playgroud) Crystal Report的第一页中不显示详细信息部分
我的水晶报告的结构:
Report Header
Page Header
Group Header
Report Footer - contains 2 subreports
Run Code Online (Sandbox Code Playgroud)
当我的子报表中的记录多于一页时,第一页中的子报表中没有显示数据,子报表数据在第二页中开始.当子报表中的记录很少时(例如:仅1个或2个记录),它将显示在第一页中.
我在这里错过了一些设置吗?我真的不知道该怎么办......请帮忙.