Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VS2008 .NET msi setup
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 29-Dec-11 2:47am
Rate this: bad
good
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.
  Permalink  
Comments
Sanju Sanju at 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 at 30-Dec-11 6:44am
   
Good reply :)
Rate this: bad
good
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][^]
  Permalink  
v2
Comments
   
But he wants to prompt the user to select an option (according to his question).
RaviRanjankr at 29-Dec-11 8:46am
   
Oops! My bad I was expecting Condition property will work for user requirement.
Sanju Sanju at 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
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
Rate this: bad
good
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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 255
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 174
0 OriginalGriff 7,660
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,665


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 30 Dec 2011
Copyright © CodeProject, 1999-2014
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