#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_Description=UNENTENDET Parameter #AutoIt3Wrapper_Res_Fileversion=3.0.0.1 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ;#include ;#include Opt('MustDeclareVars', 1) ;Opt('TrayIconHide', 2) Global $PowerShell = 'Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | Where-Object -FilterScript { $_.GetValue("DisplayName") -like "SMI*"} | ForEach-Object -Process {$_.GetValue("DisplayName"), $_.GetValue("DisplayVersion"), $_.GetValue("UninstallString") } | Out-File "d:\recorded data\install_log\uninstallstring.txt"' Run('C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe') Sleep(5000) _WinWaitActivate("Administrator: C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe","") Sleep(100) Send($PowerShell) Sleep(1000) Send("{ENTER}") Sleep(100) Send("exit") Sleep(100) Send("{ENTER}") #region --- Internal functions Au3Recorder Start --- Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc #endregion --- Internal functions Au3Recorder End --- #endregion --- Au3Recorder generated code End ---