当我运行安装程序时,出现以下错误提示:
这个Windows Installer包存在问题。在安装过程中需要运行一个DLL文件,但是无法运行。有什么线索吗?
代码片段:
代码片段:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product Id="*" Name="SetupProject1" Language="1033" Version="1.0.0.0" Manufacturer="GoGo" UpgradeCode="9bfe9221-2d7d-46ee-b483-88f00e14b4b3">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate />
<Feature Id="ProductFeature" Title="SetupProject1" Level="1">
<ComponentGroupRef Id="ProductComponents"/>
</Feature>
<!--<Binary Id="WixCA" SourceFile="WixCA.dll" />-->
<Property Id="QtExecDeferredExample" Value="InstallManager.exe"/>
<CustomAction Id="QtExecDeferredExample" BinaryKey="WixCA" DllEntry="WixQuietExec"
Execute="immediate" Return="check" Impersonate="no"/>
<InstallExecuteSequence>
<Custom Action="QtExecDeferredExample" Before="InstallFinalize">NOT Installed</Custom>
</InstallExecuteSequence>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="SetupProject1" >
<Component Id='MainExecutable'>
<File Id='InstallManagerEXE'
Name='InstallManager.exe'
DiskId='1'
Source='InstallManager.exe'
KeyPath='yes'/>
</Component>
</Directory>
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<ComponentRef Id='MainExecutable' />
</ComponentGroup>
</Fragment>
</Wix>
msiexec /i SetupProject1.msi /lvoicewarmupx log.txt
。 - mcy