AutoIT Sample scripts
//Hide tray Icon
Opt("TrayIconHide", 1)
// Add Registry Value
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\ABC", "abc", "REG_DWORD", "0")
// For Sleep/Wait/Pause time
Sleep(60000)
// Running a program .msi or .exe with switches
RunWait("msiexec /i abc.msi ALLUSERS=1 /qn /norestart")
// For registry file or .exe/.msi
ShellExecuteWait("Regedit.exe", "/s abc.reg", "", "", @SW_HIDE)
Sample Script
Opt("TrayIconHide", 1)
RunWait("msiexec /i abc.msi ALLUSERS=1 /qn /norestart")
Sleep(60000)
ShellExecuteWait("Regedit.exe", "/s abc.reg", "", "", @SW_HIDE)
RunWait("abc.bat")
Exit
No comments:
Post a Comment