我正在使用WiX SDK创建安装程序。安装程序完成后,我想使用下面的代码打开Excel文件(.xls)。我可以在安装文件夹中看到该文件。不幸的是安装结束后没有任何反应。安装WIX后打开Excel文件
<Property Id="WixShellExecTarget" Value="[#test.xls]" />
<CustomAction Id="LaunchFile"
BinaryKey="WixCA"
DllEntry="WixShellExec"
Impersonate="yes" />
<InstallExecuteSequence>
<Custom Action='LaunchFile' After='InstallFinalize'>NOT Installed</Custom>
</InstallExecuteSequence>