Creating Customized dilogue box for for ur installer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shanthsp2002
    New Member
    • Apr 2006
    • 28

    Creating Customized dilogue box for for ur installer

    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 ReadmeDilogueEx tension

    After creating it

    Rightclick on classlibrary project -->AddReference->projects->ReadmeDilogu e

    in calss library project open class file

    write this code


    namespace ReadMeDilogueEx tension
    {
    [RunInstaller(tr ue)]
    public class ReadmeInstaller : Installer
    {
    ReadmeDilogue.R eadmeForm ReadmeForm = new

    public ReadmeInstaller ()
    : base()
    {
    }

    public override void Install(IDictio nary savedState)
    {
    base.Install(sa vedState);


    ReadmeForm.Show Dialog();
    }

    }

    }

    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
    Last edited by shanthsp2002; Apr 10 '06, 10:52 AM.
Working...