Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Good day everyone, and thank you for your interest to my question. Okay lets be direct, so I've just finished my Final Defense for my senior project (Municipality Project Management System), everything went well and graduation for me is inches away, but I had some recommendations.

They want me to create an install that much check if mysql is available,
then installs mysql,then creates the database for the system automatically and last run the program.

I only know how to create a simple install from the VS2010 but that has many limitations. Yes I already did a lot of googling, with no success of finding a tutorial. I even wonder if this is possible to do.

Can you guys help me? this is really important for me and I will be delighted of your help. This is the key for my graduation next March OSmile :D
Posted
Comments
luisnike19 7-Oct-11 11:56am    
Why don't you use InstallShield?
mrpotatohead 8-Oct-11 10:17am    
i will try installshield...but my VISUAL STUDIO wont let me download it. :/ In the other forum one suggested me clickonce...is that good?

1 solution

C#
[RunInstaller(true)]
public class MyInstaller : Installer
{
    public HelloInstaller()
        : base()
    {
    }

    public override void Commit(IDictionary mySavedState)
    {
        base.Commit(mySavedState);
        System.IO.File.CreateText("Commit.txt");
    }

    public override void Install(IDictionary stateSaver)
    {
        base.Install(stateSaver);
        System.IO.File.CreateText("Install.txt");
    }

    public override void Uninstall(IDictionary savedState)
    {
        base.Uninstall(savedState);
        File.Delete("Commit.txt");
        File.Delete("Install.txt");
    }

    public override void Rollback(IDictionary savedState)
    {
        base.Rollback(savedState);
        File.Delete("Install.txt");
    }
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900