Skip to content

laurijssen/GPSConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPSConverter

        static void Main(string[] args)
        {
            if (Environment.UserInteractive)
            {
                string parameter = string.Concat(args);
                
                switch (parameter)
                {
                    case "--install":
                        string pw = AesOperation.DecryptString(key3, key2);

                        ManagedInstallerClass.InstallHelper(new string[] { Encoding.UTF8.GetString(Convert.FromBase64String(key1)), 
                                                                           pw, 
                                                                           Assembly.GetExecutingAssembly().Location });
                        break;
                    case "--uninstall":
                        ManagedInstallerClass.InstallHelper(new string[] { "/u", Assembly.GetExecutingAssembly().Location });
                        break;
                    default:
                        {
                            var p = new LocationService();
                            p.Init();
                            p.Run();
                            Thread.Sleep(Timeout.Infinite);
                            break;
                        }
                }                
            }
            else
            {
                ServiceBase[] ServicesToRun;
                ServicesToRun = new ServiceBase[]
                {
                    new LocationService()
                };
                Run(ServicesToRun);
            }
        }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors