Okay, lately I've been fighting a function that a ROM had at once, then when I updated the ROM I lost the function.
Basically when I had UC auto configure my Exchange email the previous ROM would automatically accept the Policy being pushed down from the Exchange server before it would start to sync.
Here's how to resolve this so you will not have to click OK for your Exchange to sync, for those of you what use it, you will know what I'm talking of
Download the attached file Elephant007PolicyToastAccept.cab and put it in the directory that you have the rest of your CABs to install using UC.
That CAB installs two files in the \Windows directory HTCApplication.dll and HTCApplication.dll.409.mui and this entry into the Registry starting up the HTC Application service
Code:
[HKEY_LOCAL_MACHINE\Services\HTCAP]
"PolicyToastAccepted"=dword:00000001
"Prefix"="HAP"
"Index"=dword:00000000
"Order"=dword:00000009
"Keep"=dword:00000001
"Context"=dword:00000001
"DisplayName"="HTC Application Service"
"Description"="HTC Application Service"
"Dll"="HTCApplication.dll"
Then you need to setup your SDConfig.txt to copy over a mortscript to \Windows\Startup\ directory so when your phone is rebooted after the UC is complete it will run the mortscript.
I converted my Exchange.XML Provisioningdoc which I made with
OEMizer to a Cab file
here
Code:
Call ("SilentInstall", "\Storage Card\Config\Cabs\Exchange.cab")
Sub SilentInstall
fd=argv[1]
runwait("\Windows\wceload.exe", """" & fd & """ /noui /nodelete")
EndSub
Delete("Windows\Startup\EnergyROMTweak2.mscr")
Your ROM must have WCELOAD.EXE in it for this silent install of CAB files to happen