well friends i have a small tip here which may be helpfull for u
there may be situations where we need to use a customized dilogue box while doveloping setup and dyployment project, so u can do that simply by using custom actions .
1st create setup and deployment project...
add->new project->windows application name it ReadmeDilogue
now customize Form as per ur requirement
now again
Add->newProject->class librery name it ReadmeDilogueExtension
After creating it
Rightclick on classlibrary project -->AddReference->projects->ReadmeDilogue
in calss library project open class file
write this code
namespace ReadMeDilogueExtension
{
[RunInstaller(true)]
public class ReadmeInstaller : Installer
{
ReadmeDilogue.ReadmeForm ReadmeForm = new
public ReadmeInstaller()
: base()
{
}
public override void Install(IDictionary savedState)
{
base.Install(savedState);
ReadmeForm.ShowDialog();
}
}
}
now select ur setup project in solution explorer, Rightclick--->View--->File System
then in file system editor u have three folders
|
----Application Folder
----Users Desktop
----Users Programm Menu
in this select Application Folder Right click Add--->File-->
in classlibrary project folder --bin--debug we have our class file compiled in to dll , select it , press open button
it will be added to Application folder
Now goto solution explorer select class library project RightClick--->View-->Custom Actions
custom actions window will be appeared
u can see four folders
|
--install
--commit
--rollback
--uninstall
select install rightclick ---->Add Custom Action-->
"Select item in project" Dilogu will appear in that select application folder and in that select the dll added by us
now compile the project and select setup project in solution explorer
rightclick ===>install
now ur customized dilogue box will appear before installation, u can write ur code needed for installation or other methods it depends on ur requirement
oky friends
have a nice day bye