使用C#安装应用程序安装后打开内容文件

问题描述:

我使用VS 2013中的安装向导创建了一个安装项目。



安装程序可以很好地安装程序,但它没有提供任何反馈关于启动或配置应用程序的用户。



我希望安装程序在安装完成后打开帮助文件。帮助文件在项目的构建操作中列为内容文件,并将其复制到应用程序目录中。



我尝试过使用项目>查看>自定义操作菜单,但是当我添加自定义操作时,我看不到应用程序文件夹中的内容文件。我已将组合框更改为显示所有文件(*。*)并且文件未显示。我尝试点击添加输出...按钮并选择内容文件但没有显示在应用程序文件夹中。



非常感谢任何帮助!

I have created a Setup Project using the "Setup Wizard" in VS 2013.

The installer works well to install the program but it does not provide any feedback to the user about launching or configuring the application.

I would like to have the installer open a help file when the installation is complete. The help file is listed as a Content file in the project's Build Action and it is being copied into the application directory.

I have tried using the Project > View > Custom Actions menu, but when I add a custom action I do not see the content files in the Application Folder. I have changed the combobox to show "All Files (*.*)" and the files do not appear. I tried clicking the "Add Output..." button and selecting "Content Files" but nothing shows up in the Application Folder.

Any help is greatly appreciated!

你所要求的是可能的,但可能没有被简单的安装创建者暴露



自定义操作 [ ^ ]



类型50,53或54可能是合适的,它必须是延期 [ ^ ]



创作MSI并非无足轻重 - 请查看 Wix [ ^ ],它由编写Windows安装程序的同一个开发团队编写
what you're asking for is possible, but probably not exposed by the simple install creator

Custom Actions[^]

A type 50, 53 or 54 may be appropriate, and it would have to be Deferred[^]

authoring MSIs is not trivial - have a look at Wix[^], it's written by the same dev team that wrote windows installer