Example #1
0
        //Clean up local folder, then release current upgrade package.
        private static void CleanAndRelease(string zipFilePath, string targetPath)
        {
            //Upgrade package not found, do nothing.
            if (string.IsNullOrEmpty(zipFilePath) || string.IsNullOrEmpty(targetPath))
            {
                return;
            }

            CleanUpgradePackage(targetPath);

            //Unpack the upgrade package zip to USB.
            UpgradePackageUltility.ExtractToDirectory(zipFilePath, targetPath);
        }