Kepware Knowledge Base: Solution
Creating a Setup Project to Deploy ClientAce Applications in Licensed Mode
Last Update: 11/12/2018
Users must add the ClientAce .lic file to the setup project and then set the project dependencies so that a current .lic file will be generated everytime the setup project is built. For information on creating a Visual Studio setup project so that a ClientAce application will be deployed in Licensed Mode, refer to the instructions below.
Note: These steps only need to be completed once for each ClientAce project.
- To start, sign the ClientAce EXE project. Then, build it to generate a .lic file.
- Next, add the setup project to the Visual Studio solution that contains the EXE project. In the Solution Explorer, right-click on the solution and then click Add | New Project. Alternatively, select the solution or project in the Solution Explorer and then click File | Add... | New Project in the Visual Studio menu.
- In Add New Project, select Other Project Types | Setup and Deployment | Setup Project.
- In the Solution Explorer, right-click on the setup project and then select Add | Project Output.
- In Add Project Output Group, locate the Project field and then select the ClientAce EXE project.
- In the list box located in the middle of the dialog, ensure that at least "Primary output" is selected. Then, click OK.
- Next, right-click on the setup project and select Add | File.
- In Add Files, browse to the "bin\Release\" subfolder of the ClientAce EXE project (or other subfolder according to the build configuration that will be deployed). Then, select the .lic file.
- In the Project Explorer, right-click on the solution and select Project Dependencies.
- Next, locate the Dependencies tab and then select the setup project.
- In the list located in the middle of the dialog, check the ClientAce EXE project checkbox. Then, click OK.
- Next, right-click on the solution and select Configuration Manager. In the list located at the upper-left corner, select the configuration that will be built.
- Locate the setup project in the table in the middle of the dialog, and check the Build checkbox. Then, click OK.
Note: When users build and deploy the setup project, the *.lic file will be included with the *.EXE. This will run the application in Licensed Mode.
Note: The instructions above have been tested with a Windows Application project in Visual Studio 2005. The steps should be the same or similar for other types of projects.
©
2022
PTC Inc. All Rights Reserved.