user1295417
user1295417

Reputation: 55

C# .NET 4.0 - windows deployment for multiple applications

I have 2 C# windows applications within a single solution file in .NET 4.0 platform. In a single setup file, I need to first install 1st windows application and after its completion, in a background thread of first application I need to install the second application.

Please guide me on the way to do this.

Upvotes: 0

Views: 420

Answers (1)

ABH
ABH

Reputation: 3439

You can do this by adding Custom Actions to your setup project. For details please have a look on this link.

The idea is to add two different setup projects for both applications. Say we have setup1 and setup2 and setup1 should be finished before setup2. Build setup2 and in "Application Folder" of setup1 add files of setup2 (setup2.msi and setup.exe). Now in the Custom Actions of setup1, assign setup.exe under Commit folder from "Application Folder" (this setup.exe is actually of setup2). To add a custom action right click in the setup1 project in solution explorer and select View -> Custom Actions.

Adding an exe to Custom Actions under Commit means that the exe will run when the setup will finish the installation.

Upvotes: 1

Related Questions