<commit_before>#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, RegEx

; Uninstall any previous versions...
ProgramFilesX86 := A_ProgramFiles . (A_PtrSize=8 ? " (x86)" : "")
truecryptUninstaller = %A_ProgramFiles%\TrueCrypt\TrueCrypt Setup.exe
truecryptUninstallerx86 = %ProgramFilesX86%\TrueCrypt\TrueCrypt Setup.exe

IfExist, %truecryptUninstaller%
{
    Sleep, 1000
	Run, "%truecryptUninstaller%" /u
	installed = 1
}

IfExist, %truecryptUninstallerx86%
{
    Sleep, 1000
	Run, "%truecryptUninstallerx86%" /u
	installed = 1
}

if (installed = 1)
{
	WinWait, TrueCrypt Setup,, 30
	IfWinExist
	{
		BlockInput, On
		Sleep, 250
		WinActivate
		Send, {ALTDOWN}r{ALTUP}{ALTDOWN}u{ALTUP}
		BlockInput, Off
	}

    WinWaitActive, TrueCrypt Setup, successfully uninstalled, 30
    IfWinExist 
    {
        BlockInput, On
        Sleep, 250
        WinActivate
        Send, {Enter}
		Sleep, 250
		Send, {ENTER}
        BlockInput, Off
    }
}

; Install WinPcap
truecryptInstaller = %A_Temp%\chocolatey\truecrypt\TrueCrypt Setup 7.1a.exe
Sleep, 1000
Run, %truecryptInstaller%

WinWait, TrueCrypt Setup [\d\.\w]+,, 30

IfWinExist TrueCrypt Setup [\d\.\w]+
{
    WinActivate<commit_msg>I was using the wrong file name for the installer that was downloaded for the truecrypt package.<commit_after>#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, RegEx

; Uninstall any previous versions...
ProgramFilesX86 := A_ProgramFiles . (A_PtrSize=8 ? " (x86)" : "")
truecryptUninstaller = %A_ProgramFiles%\TrueCrypt\TrueCrypt Setup.exe
truecryptUninstallerx86 = %ProgramFilesX86%\TrueCrypt\TrueCrypt Setup.exe

IfExist, %truecryptUninstaller%
{
    Sleep, 1000
	Run, "%truecryptUninstaller%" /u
	installed = 1
}

IfExist, %truecryptUninstallerx86%
{
    Sleep, 1000
	Run, "%truecryptUninstallerx86%" /u
	installed = 1
}

if (installed = 1)
{
	WinWait, TrueCrypt Setup,, 30
	IfWinExist
	{
		BlockInput, On
		Sleep, 250
		WinActivate
		Send, {ALTDOWN}r{ALTUP}{ALTDOWN}u{ALTUP}
		BlockInput, Off
	}

    WinWaitActive, TrueCrypt Setup, successfully uninstalled, 30
    IfWinExist 
    {
        BlockInput, On
        Sleep, 250
        WinActivate
        Send, {Enter}
		Sleep, 250
		Send, {ENTER}
        BlockInput, Off
    }
}

; Install
truecryptInstaller = %A_Temp%\chocolatey\truecrypt\truecryptInstall.exe
Sleep, 1000
Run, %truecryptInstaller%

WinWait, TrueCrypt Setup [\d\.\w]+,, 30

IfWinExist TrueCrypt Setup [\d\.\w]+
{
    WinActivate
{'fraction_non_alphanumeric': 0.10620186461289015, 'fraction_numerical': 0.0356708552898257, 'mean_word_length': 3.9163346613545817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6584377', 'n_tokens_mistral': 1033, 'n_tokens_neox': 866, 'n_words': 204}