Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Setup Project Questions
 

Setup Project Questions

I have created a setup project for an application I am writing and have a few questions.

1) I need to create an event log for my application and want to do this as part of the installation. How to I get the installer to run C# code I have written to do this? I do not see anywhere that code can be entered for any of the forms (default forms or custom forms). I thought this was done through custom actions, but was incorrect n that assumption.

2) I want to add a Launch condition that check to see if the Reportviewer components are installed. AT first the intalle wanted to just copy the ReportViewer dll's to the bin directory, but I removed that dependency and then checked ReportViewer as a pre-requisite. I'd like it be to a Launch condition, the same as .Net is but cannot see how to do this.

3) I want to gather some registration information and then store it. How can I do this? I assume that I would use a dialog box and a customized action, but it is not clear how to do this?

4) Is there a way to create your own dialog templates so you can create additional templates above what comes with VS.Net.

5) Is the VS.Net 2005 installer a good program to use or is there a better installation creator that is better, while still being free. I am already familiar with InstallShield and Wise Installer. Is there is a better alternative, please post here with why you think it is a better option for creating installation for applications.

Any help will be appreciated.

S. Shawn Mehaffie
PC Resources, LLC
smehaffie  Friday, July 06, 2007 3:48 AM
Wow - lots of questions! Here are a few answers:

1. The following article details how to install an Event Log Component
http://msdn2.microsoft.com/en-us/library/f5dcf6h3(VS.80).aspx

2. I would use the Bootstrapper to do this. If you include the ReportViewer as a prerequisite it will download and install on the client machine if it doesn't exist. I believe there is already an existing package for the ReportViewer.

3. Add a dialog using the User Interface editor, and you will be able to pass the values entered to a Custom Action that will be able to save the registration data.

4. This is not possible using the User Interface editor. Once the setup is created it can be edited using Orca but any changes will be overwritten if you re-build the project in Visual Studio.
Matt Smith MSFT  Saturday, July 07, 2007 4:04 AM
5) depends on your requirements. Visual Studio setups are not fully-featured when compared with InstallShield or Wise. For example, if you want to design your own dialogs, separate your setup into features, run custom actions anywhere (such as in the the UI sequence) then Visual Studio is not for you.
PhilWilson  Saturday, July 07, 2007 5:32 PM
Wow - lots of questions! Here are a few answers:

1. The following article details how to install an Event Log Component
http://msdn2.microsoft.com/en-us/library/f5dcf6h3(VS.80).aspx

2. I would use the Bootstrapper to do this. If you include the ReportViewer as a prerequisite it will download and install on the client machine if it doesn't exist. I believe there is already an existing package for the ReportViewer.

3. Add a dialog using the User Interface editor, and you will be able to pass the values entered to a Custom Action that will be able to save the registration data.

4. This is not possible using the User Interface editor. Once the setup is created it can be edited using Orca but any changes will be overwritten if you re-build the project in Visual Studio.
Matt Smith MSFT  Saturday, July 07, 2007 4:04 AM
5) depends on your requirements. Visual Studio setups are not fully-featured when compared with InstallShield or Wise. For example, if you want to design your own dialogs, separate your setup into features, run custom actions anywhere (such as in the the UI sequence) then Visual Studio is not for you.
PhilWilson  Saturday, July 07, 2007 5:32 PM
Can u please tell me how to create custom dialogs in Setup and Deployment project.Is possible to insert custom dialogs in the sequence of installation wizards.
Anula  Tuesday, July 10, 2007 10:08 AM
No it's not. Visual Studio has some optional canned dialogs to cover several options with text boxes, buttons, etc, but it doesn't let you design your own dialogs to add into the standard UI sequence.
PhilWilson  Tuesday, July 10, 2007 8:39 PM

Thank You so much Wilson.I would also like to know about the6 editors in Setup and Deployment Project in depth, like the, Installer class in Custon action editor,Adding values into the Registry Editor etc.

Anula  Wednesday, July 11, 2007 3:57 AM


I want to create custom dialogs in the sequence of Installation Wizard.I think Orca will be the One of the best solutions for that.I downloaded orca and working on that.But i'm confused about the features it has and how to use them.Does anyone have any such documentation that helps to learn Orca and work on that.

Thank you in Advance,
Regards,
Surekha.Smile

Anula  Thursday, July 12, 2007 6:05 AM

You can use google to search for other answers

Custom Search

More Threads

• Problem installing app over https.
• Custom Deployment Scenario
• Deploying VB.NET with reference to Excel 9.0 Lib
• App crashes when run from default install location
• How do i deploy application and driver in Visual Studio?
• Deploy Windows Application using Visual Studio 2008 and N-Tier
• IsUpdateRequired manifest entry
• Installer for more than one msi
• Creating Shortcut as sub-menu in User's Program Menu using Windows Installer
• bringing my program to the web