-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: _Saurabh_DotNet_
Message 3 in Discussion
Dear Vipul,
If you are using VS.NET 2003. Then just go ahead and opt for Setup Wizard. Setup
Wizard will take of checking the existance of .NET Framework on the deployment machine.
One thing to note is that by default VS.NET does'nt include .NET Redistributables with
the installer. For including it select the dotnetfxredist_x86.msm file and change the
exclude property to false from the property tab.
And you asked something for customizing the installer class :
To accomplish these steps, you need to create a custom installer class that can run
from the Windows Installer process created by the setup project. To create a custom
installer class, first create a class library project and include a reference in that
project to the System.Configuration.Install.dll library. Then, add a class to the
project that derives from the Installer class. You need to place a RunInstaller
attribute on this class as well; The Installer base class includes the virtual
methods Install, Uninstall, Commit, and Rollback, which correspond to the parts of a
Windows Installer process. You can override these methods to add custom installation
steps to be executed during the overall installation process. The code of the same is
given below :[RunInstaller(true)] public class DBInstaller : Installer { public
override void Install(IDictionary stateSaver) { base.Install(stateSaver);
CreateDatabase(); ImportData(); UpdateConfigConnStr(); } public
override void Uninstall(IDictionary stateSaver) { // Remove resources as
necessary } }
Hope this helps you out. If in case not, you can revert me back on the same.
take care...
Regards,
Saurabh Verma
Senior Technical Consultant
([EMAIL PROTECTED])
_________________________________________
MachroTech Offshore Outsourcing Delivered�
http://www.machrotech.com/
Microsoft India Community Star
MCT.NET, MCSD.NET (EA), MCAD.NET, MCDBA
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]