Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.

Regards,
Sanju
Posted

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.
 
Share this answer
 
Comments
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 :)
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][^]
 
Share this answer
 
v2
Comments
#realJSOP 29-Dec-11 8:05am    
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?
 
Share this answer
 
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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900