Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Creating setup Project with selected files to be installed
 

Creating setup Project with selected files to be installed

Hi,
    I created setup project with two exe files added . what i need in my setup project has while installing user has the option to install only one it should be selected.
Any idea.
  • Moved byKarel ZikmundMSFTTuesday, October 06, 2009 4:32 PMSetup project Q (From:Building Development and Diagnostic Tools for .Net)
  •  
Dheeraj pk  Tuesday, October 06, 2009 6:34 AM
Check out setup project tutorials on the web (e.g. This one). You can add custom dialogs (e.g. with check boxes) which will allow you to achieve what you need.

-Karel
Karel Zikmund  Tuesday, October 06, 2009 4:31 PM
Thanks for your reply but the link u specified not up to the mark as i questioned, Could u pls help me to reach my requirements.
Dheeraj pk  Wednesday, October 07, 2009 12:26 PM
Did you try to look for other tutorials on the internet? Did you try adding custom dialog to the setup project as I mentioned? Did you read the previous link, specifically #11 - "You can also customize the user interface"?

If this doesn't solve your problem, then please explain why and what is different in your scenario that you need.
-Karel
Karel Zikmund  Wednesday, October 07, 2009 4:26 PM

Hi Dheeraj,

 

Based on my understanding, you need more explaination and detail steps about how to do what Karel said, These are the detail steps:

1.    Right Click the Setup Project and select View->User Interface.

2.    Add a Radio Buttons dialog to the Start node. We often put this just after Confirm Installation dialog. The dialog can have 2,3 or 4 buttons. If the install files can be divided into 2 groups and one one group of them would be installed, you can select a dialog with 2 buttons. If the groups are more, please select a dialog with more buttons.

3.    Right click the added dialog to open the properties dialog. Set the buttonlabe to the group text you want the user to see and group value you would use later. For example, we can set Button1Label to “group1” and set Button1Value to “1”. You can also set other properties to custom the dialog user interface.

4.    Richt click the Setup Project and select View->File System.

5.    Right click the Application Folder and select Add. If you want to add all the output files of one project, please select Project Output. If you want to add some files, please select File. Then follow the guide to add install files to the project.

6.    Right click the file in the first group to open the properties dialog. Set the Condition property to the Button1Value we added just now, such as 1. To the files in the second group, we can follow the similar way.

 

With all the steps done, you can build the project. When you install the generated msi, you would find that a dialog would show in one step to allow you to select a group of file to install. After the installation finished, you would find only one group of files are installed.

 

Regards,
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  21 hours 49 minutes ago

Thanks for helping, But  still i getting all files to be installed,I follwed as per u written above.could you pls help me to solve this issue.

Dheeraj pk  21 hours 8 minutes ago
Hi Dheeraj pk,

Could you send your setup project to me via this email: alala666888@ hotmail.com. Ignore the blank between '@' and 'h' in the email.

Regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  21 hours 5 minutes ago
Hi Dheeraj,

I have tested your project and it works fine: only one file is installed.  You need to remove the old files or uninstall the program before you install it again. If it still cannot work, please provide more information about the issue you met.

Regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  19 hours 15 minutes ago
I uninstall the program and installed still it intsalled XSDvallidation only when i select Removekeys.
  • Edited byDheeraj pk 18 hours 51 minutes agoNot completed
  •  
Dheeraj pk  18 hours 53 minutes ago
Hi Dheeraj,

Sorry for not getting the key issue in my last reply. I have check the setup project again and found the root cause:
The Condition property of each file is set incorrectly. You need to set the Condition of RemoveKeyLogs.exe to BUTTON=2 and another to BUTTON=1.
The button value of the dialog ought to be consistent with the Condition of the file.

Regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  2 hours 25 minutes ago
Hi Aland,
            Could you please send me the Corrected setupproject to my mail(EMAIL GONE) So i can better to get idea.
Dheeraj pk  15 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• VS 2008 Install Project Unknown Error on one machine
• Has ClickOnce been fixed in VS2008?
• Add menu items to ClickOnce Application
• Changing property values based on condition
• Localized Deployment, localized .NET installer
• where can I find the publishing wizard
• How do I start Windows service from VS2005 Setup/Install project
• Error starting Click-Once app. Application cannot be started. Contact the vendor.
• Protocol used for downloading clickonce files
• create setup file??????????