sounddoc
Posts: 41
Score: 0 Joined: 11/15/2007 Status: offline
|
Good to know - just updated the Application store to 4.52 today. The way I handle it is through a custom variable called modelalias (google this and ben hunter and you'll see what I'm talking about). I then have loa files with each modelalias as the filename, e.g. 7659.loa, 7668.loa, etc... Then I run the script (excerpt) below to import the loa file, so the installation of AC4.52 is pristene, and the profile is imported post-install. If you reboot after the installation you can comment out the three 'qctray' commands as AC will pick it up next time it starts it's services. BTW - the last registry edit below turns off the annoying "save port locations" prompt everytime you plug into a new network: Function ZTIProcess() iRetVal = Success ZTIProcess = iRetval oLogging.CreateEntry "Starting AC Profile copy", LogTypeInfo Dim strTarget, strSrc, strLoaFile strTarget = "C:\Program Files\Thinkpad\ConnectUtilities\" strSrc = oEnvironment.Item("ResourceRoot") & "\Applications\ACCON\ACPROFS\" strLoaFile = strSrc & oEnvironment.Item("MODELALIAS") & ".loa" oFso.copyfile strLoaFile, strTarget oLogging.CreateEntry "Using " & oEnvironment.Item("MODELALIAS") & ".", LogTypeInfo oLogging.CreateEntry "Copied " & strLoaFile & " to " & strTarget, LogTypeInfo oShell.Run """C:\Program Files\Thinkpad\ConnectUtilities\qctray"" /importsilently",,true oShell.Run """C:\Program Files\Thinkpad\ConnectUtilities\qctray"" /killac",,true oShell.Run """C:\Program Files\Thinkpad\ConnectUtilities\qctray"" /startac",,true 'Turn off location switch prompting oShell.regwrite "HKLM\SOFTWARE\Lenovo\Access Connections\Roaming\EnableEthernetRoaming",0,"REG_DWORD" End Function
_____________________________
-P
|