Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Script ran through SCCM 2012 doesn't finish

$
0
0

Hi people,

 

       I'm new to both SCCM 2012 and autoit scripts. My aim is to install and activate a program called MapInfo. I am installing MapInfo using a command wrapped in a batch file. I have created and compiled a script which opens MapInfo then selects the options to activate over the internet. My batch file is;

 

 
"%~dp0setup.exe" /s /v"/qb INSTALLDIR=\"C:\Program Files\MapInfo\MapInfoPro\" USERNAME=\"Central Services\" COMPANYNAME=\"Some Council\" PIDKEY=MINWES12345678 ACCD=123456 ACTLIC=True"
 
 
"%~dp0licenceScript.exe"            <<<<<----------------compiled script
 
When the batch is ran by double clicking, MapInfo installs and my script opens MapInfo selects the option to successfully activate MapInfo over the internet.
 
Problem is when i run the same batch file through SCCM 2012, MapInfo installs, the script activates MapInfo, however in Software Center, installed software tab on the client pc i just see "Installing" with the thingwy to the right just around and around forever until I log off or restart. 
 
 
My script is;
 
#region ---Au3Recorder generated code Start (v3.3.7.0)  ---
 
#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
EndFunc
 
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
 
_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---
 
 
Run('"C:\Program Files\MapInfo\MapInfoPro\MapInfow.exe"')
_WinWaitActivate("MapInfo Professional Activation","")
Send("{TAB}{TAB}{ENTER}{TAB}{TAB}{TAB}{TAB}{ENTER}")
_WinWaitActivate("Pitney Bowes Software Activation","")
Send("{ENTER}")
#endregion --- Au3Recorder generated code End ---
 
 
Any help would be appreciated 

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles