#region - Powertoys install script - (MSI)
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

$group = 'Powertoys'

RunWait('msiexec /i PowerToysXPandNET.msi /qn')

; Change working directory to startmenu programs.
If FileChangeDir(@ProgramsDir) And FileExists($group) Then
    ; Copy shortcut folder to catagory, then remove old folder.
    FileCopy($group & '\*.*', 'Shell\', 9)
    DirRemove($group, 1)
EndIf

Exit
#endregion