Click here to Skip to main content
11,925,101 members (54,379 online)
Rate this:
Please Sign up or sign in to vote.
See more: VS2008 .NET Visual-Studio msi , +
Hi Experts,

i have developed one application and i need to deploy the same using set up project in VS2008.

my application has two exe files 1) Normal.exe 2) Professional.exe.

while installing, i need to have an option like Normal or Professional (just like existing Installation mode option 'just me' or 'Everyone' in set up file).

if the user selects Normal then normal.exe will be copied to installation folder else professional.exe will be copied.

can any one help me how to do this using .net set up project?
i dont want to go for third part application.

thanks in advance.

Posted 29-Dec-11 2:47am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

0) Right-click the setup project in the solution explorer, and select View | User interface in the context menu.

1) Right-click the Start item in the tree, and select Add Dialog in the context menu.

2) Select the appropriate dialog.

At this point, you'll have to rely on google because I've never added a dialog to a setup project before.
Sanju Sanju 29-Dec-11 8:29am
Thanks John for your responce..

i have added a dialog with two radio buttons. Now i want to determine the exe file to copy based on the client selected value. i dont know how to handle this. i'm Stuck here.

any help is appreciated.
Espen Harlinn 30-Dec-11 6:44am
Good reply :)
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Chcek Visual Studio Installer Deployment[^]

conditions can be placed on any file or folder using the Condition property. This allows you to customize the installation of files based on conditions that exist on a target computer during installation. For example, you might choose to install different files based on the operating system version on the target computer.
For more information have a look there-[Condition Property][^]
But he wants to prompt the user to select an option (according to his question).
RaviRanjankr 29-Dec-11 8:46am
Oops! My bad I was expecting Condition property will work for user requirement.
Sanju Sanju 29-Dec-11 8:56am
Might be but i have no idea how to use conditions. Can you give me an example?
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Rate this: bad
Please Sign up or sign in to vote.

Solution 4

If you've got a delphi license you can try Jordan Russels Inno Setup[^].

It very flexible and easy to use.

Best regards
Espen Harlinn

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151125.3 | Last Updated 30 Dec 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100