#region - TaskSwitchXP install script - (Nullsoft) #include <Common_Functions.au3> Opt('TrayIconDebug', 1) Break(False) If @OSVersion = 'WIN_VISTA' Then $scriptname = StringTrimRight(StringReplace(@ScriptName, '_', ' '), 4) SplashTextOn('AutoIt', $scriptname & @CRLF & 'is not for Windows Vista', 200, 80, Default, Default, 32) Sleep(3000) SplashOff() Exit EndIf ; Installer. $executable = 'TaskSwitchXP 2.0.11.exe' ; Default group folder in startmenu. $group = 'TaskSwitchXP' ; Installation folder in Program Files. $directory = '' ; Run the installer. $pid = _Nullsoft() ProcessWaitClose($pid) ; Remove shortcuts. If _Programs('TaskSwitchXP.lnk') Then FileMove($group & '\TaskSwitchXP.lnk', 'Shell\', 9) FileMove($group & '\TaskSwitchXP Configuration', 'Shell\', 9) DirRemove($group, 1) EndIf ; Hmmm... RegWrite('HKCU\Software\Alexander Avdonin\TaskSwitchXP\2.0', 'Flags', 'Reg_DWord', 69338879) ; Remove Microsoft Powertoy Switcher key if exists. RegDelete('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'CoolSwitch') Exit #endregion