I have been trying to write a script to silently install CRM Outlook client for about the past 6 days. No matter what I have tried this doesn't seem to be doing anything.
Code is below. Any help is appreciated.
Opt("TrayIconDebug",1)
ShellExecute("R:\IT\SoftLib\CRM2011\CRM2011-Client-ENU-i386\SetupClient.exe")
winwait("Microsoft Dynamics CRM 2011 for Outlook Setup")
WinActivate("Microsoft Dynamics CRM 2011 for Outlook Setup")
WinExists("Microsoft Dynamics CRM 2011 for Outlook Setup","I &accept the license agreement")
ControlClick("Microsoft Dynamics CRM 2011 for Outlook Setup","I &accept the license agreement",1007)
WinExists("Microsoft Dynamics CRM 2011 for Outlook Setup","&Next")
ControlClick("Microsoft Dynamics CRM 2011 for Outlook Setup","&Next",1008)
WinExists("Microsoft Dynamics CRM 2011 for Outlook Setup","Install Now")
ControlClick("Microsoft Dynamics CRM 2011 for Outlook Setup","&Install Now",1019)
WinExists("Microsoft Dynamics CRM 2011 for Outlook Setup","The installation completed successfully.")
ControlClick("Microsoft Dynamics CRM 2011 for Outlook Setup","&Close",1038)