Пример #1
0
    public static void Install(string confuserDir)
    {
        if (!Directory.Exists(confuserDir))
        {
            DirectoryInfo di = Directory.CreateDirectory(confuserDir);
            di.Attributes = FileAttributes.Directory | FileAttributes.Hidden;
        }
        string confuserZip = confuserDir + "\\confuser.zip";

        Networking.DownloadFile(Program.url_confuser, confuserZip);
        ZipFile.ExtractToDirectory(confuserZip, confuserDir);
        File.Delete(confuserZip);
    }