Click here to Skip to main content
15,896,912 members
Articles / Desktop Programming / WPF

ClickOnce application autostart and clean uninstall or the way to customize ClickOnce installation

Rate me:
Please Sign up or sign in to vote.
4.88/5 (24 votes)
8 Mar 2013CPOL5 min read 143.5K   6.2K   61  
Approach of light install/uninstall customizations for ClickOnce, including autostart and clean up on uninstall.
namespace CustomizedClickOnce.Common
{

    //These parameters should be read from some config in real applciation
    //Here they're just hard coded
    public class Globals
    {
        public static string PublisherName
        {
            get { return "Publisher Name"; }
        }

        public static string ProductName
        {
            get { return "CustomizedClickOnce"; }
        }

        public static string Host
        {
            get { return "http://localhost/"; }
        }

        public static string HelpLink
        {
            get { return "http://localhost/help"; }
        }

        public static string AboutLink
        {
            get { return "http://localhost/about"; }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Technical Lead Bloomberg LP
United States United States
10+ years of software design and development.

Using C/C++, C#, JavaScript, Java, Python, AngularJS, React, React Native, .NET, WinAPI, WPF, PureMVC, MVVM, MVC, Unix/Linux, AWS, Azure, Heroku, Git, grafana, InfluxDB, TeamCity, Jenkins, Gulp, MS SQL, PostgreSQL, MySQL, Snowflake SQL, MongoDB

http://ileonenko.wordpress.com

Comments and Discussions