我正试图为我的python应用程序组合一个安装文件。我已经创建了安装文件和安装,它是工作的伟大。现在,我想在安装结束时添加一个自定义操作,该操作将在用户首次启动程序之前执行一个文件,该文件将设置我的数据库。以下是我目前为止的代码:
在测试.wxs在<?xml version='1.0' encoding='windows-1252'?>
Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Fake Inc'>
Comments='Fake App is a registered trademark of Acme Ltd.' Manufacturer='Fake Inc'
InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
Name="Fake App"
Description="Fake App shortcut"
Target="[#UIStart.bat]"
WorkingDirectory="INSTALLLOCATION"
Icon ="test.ico"/>
Name="Uninstall Fake App"
Target="[System32Folder]msiexec.exe"
Arguments="/x [ProductCode]"
Description="Uninstalls My Application" />
Root="HKCU"
Key="Software/Fake"
Name="installed"
Type="integer"
Value="1"
KeyPath="yes"/>
Name="TFake App"
Description="Comment field in your shortcut"
Target="[#UIStart.bat]"
WorkingDirectory="INSTALLLOCATION"
Icon ="test.ico"/>
Root="HKCU"
Key="Software/Fake"
Name="installed"
Type="integer"
Value="1"
KeyPath="yes"/>
= "1.6"]]>
当编译并运行此程序时,程序将安装,但我收到以下错误:
安装程序在安装此程序包时遇到意外错误。此程序包可能有问题。错误代码为2762
如何执行UIStart.exe在安装结束时自动?在
谢谢你的帮助