![]() ![]() Once published with the profile you created in the previous tutorial, the executable will be in the publish directory. Right-click the project in the Solution Explorer, and then select Publish. To test the installer, publish the App.WindowsService project. With these updates, the setup project has been configured to delegate its Install and Uninstall actions to call into the Windows Service app with appropriate arguments. Once you've done both, you should see the following: Follow these same steps for Uninstall, adding /Uninstall to the Arguments. Right-click the added Publish Items from App.WindowsService (Active) node under Install, then select Properties.Īdd /Install to the Arguments. with Application Folder selected), and select Publish Items from App.WindowsService (Active). Right-click the project in the Solution Explorer, and then select View > Custom Actions.įrom the Custom Actions window, select Install > Add Custom Action.ĭouble-click the Application Folder (or select Add Output. The installer project needs to define two custom actions for installation behavior. You can configure the app's "add" and "remove" icons, author, manufacturer, product name, title, target platform, and so on. Select F4 to open the project properties pane. To configure the installer project, select the project in the Solution Explorer. When you build the project, the output is an MSI file that can be used to install and uninstall the service. Open the file in the editor, and then replace the contents with the following: Your project should now include a ProjectReference element, similar to the following: Īfter the project reference has been added, configure the Package.wxs file. Delete these, files leaving only the Package.wxs file. The template includes example component and localization files. Right-click the setup project in the Solution Explorer, and then select Add > Project Reference. ![]() To configure the setup project, you first must add a reference to the App.WindowsService project. When no installation switches are present, the app behaves as it did before, but it now includes installation functionality.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |