예제 #1
0
        public override void Execute()
        {
            Backup(Package.ExecutionInfo.BackupGroup);

            PackageUtility.ClearIconCache();

            Boolean result = NativeMethods.SystemParametersInfo(SpiAction.SetIcons, 0, IntPtr.Zero);

            if (!result)
            {
                String error = NativeMethods.GetLastErrorString();

                String args = SpiAction.SetIcons.ToString() + "," + 0.ToStringInvariant() + "," + 0.ToStringInvariant();

                Package.Log.Add(LogSeverity.Error, "SystemParametersInfo(" + args + ") failed: " + error);
            }
        }