private void CleanUpPackages(Version latestVersion)
        {
            var packagesDirectory = InstallDirectory.GetDirectories("packages", SearchOption.TopDirectoryOnly).FirstOrDefault();

            if (packagesDirectory == null)
            {
                return;
            }

            var packages = packagesDirectory.GetFiles("*.nupkg", SearchOption.TopDirectoryOnly);
        }
        public void StartClient()
        {
            // Find the latest client executable
            var directories = new SortedDictionary <Version, string>();

            InstallDirectory.GetDirectories(SquirrelAppDirectoriesSearchPattern)
            .ToList()
            .ForEach(d => { directories.Add(GetVersionFromAppFolder(d), d.FullName); });
            string latestClient = Directory.GetFiles(directories.Last().Value, ClientExeName).FirstOrDefault();

            // Clean up application directories as needed.
            CleanUpAppDirectory(directories.Values.ToArray());

            // Clean up the packages folder as needed.
            CleanUpPackages(directories.Last().Key);

            // Start the client in a new process and kill the bootstrap process.
            Process.Start(latestClient, JsonConvert.SerializeObject(""));
            Process.GetCurrentProcess().Kill();
        }