VS 2010 Bootstrapper包

时间:2013-12-17 12:40:57

标签: visual-studio-2010 bootstrapper prerequisites

我正在尝试为Visual Studio 2010创建bootstrapper包。它已出现在先决条件窗口中。这是我的product.xml

<?xml version="1.0" encoding="utf-8"?>
<Product ProductCode="FaroLS" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
<PackageFiles CopyAllPackageFiles="true">
<PackageFile Name="faro ls 5.2.0.35213 x64 setup.exe" />
<PackageFile Name="example.faro.ls.exe.manifest" />
<PackageFile Name="faro.ls_5.2.0.35213.msi" />
<PackageFile Name="farolsdemoscans.zip" />
<PackageFile Name="faroopendemoapp.zip" />
<PackageFile Name="farosdkdemoapp.zip" />
<PackageFile Name="unins000.dat" />
<PackageFile Name="unins000.exe" />
<PackageFile Name="vcredist_x64.exe" />
<PackageFile Name="vcredist_x64_90.exe" />
</PackageFiles>
<InstallChecks>
   <RegistryCheck Property="IsInstalled" Key="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FARO LS_is1\" Value="Inno Setup: Setup Version"/>
</InstallChecks>
<Commands Reboot="Defer">
  <Command PackageFile="faro ls 5.2.0.35213 x64 setup.exe">
   <InstallConditions>
    <BypassIf Property="IsInstalled" Compare="VersionGreaterThanOrEqualTo" Value="5.1.6" />
   </InstallConditions>
   <ExitCodes>
    <DefaultExitCode Result="Fail" String="Anunexpectedexitcodewasr" FormatMessageFromSystem="true" />
   </ExitCodes>
 </Command>
</Commands>
</Product>

文件example.faro.ls.exe.manifest

<?xml version="1.0" encoding="utf-8"?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
 <dependency>
 <dependentAssembly>
   <assemblyIdentity type='win32' name='FARO.LS' version='1.1.502.0' processorArchitecture='amd64' publicKeyToken="1d23f5635ba800ab"/>
   </dependentAssembly>
 </dependency>
</assembly>

要确定我是否已安装此产品,我正在检查注册表项

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FARO LS_is1\Inno Setup: Setup Version

现在是坏事。注册表检查不起作用。每次我启动产品设置时,它都会要求我安装其他组件,即使它已经安装完毕。 安装开始时我得到错误:

Setup has detected that the file 'C:\Users\user\AppData\Local\Temp\VSD1F0C.tmp\FaroLS\faro ls 5.2.0.35213 x64 setup.exe' 
has either changed since it was initially published or may be corrupt.

See the setup log file located at 
'C:\Users\user\AppData\Local\Temp\VSD1F0C.tmp\install.log' for more information.

我在stackoverflow上发现了一些类似的主题,其中.net 4.5导致了这个问题。但我没有安装。 文件faro ls 5.2.0.35213 x64 setup.exe没有数字签名。它会导致错误吗?有什么方法可以让它发挥作用吗?

0 个答案:

没有答案