PDA

View Full Version : Port of TrueUpdate servers


mfcpro
08-08-2005, 11:05 AM
I was trying to find out how can I set the Port of TrueUpdate servers in TU2 client at the loading time.
I'd like to use a Session Variable in the TrueUpdate Server properties dialog.
So, as the Port field, I want use:

for example,

strURL = Registry.GetValue(HKEY_CURRENT_USER,SessionVar.Exp and("Software\\%CompanyName%\\%ProductName%"),"LogOnServer",false);
strPort = Registry.GetValue(HKEY_CURRENT_USER,SessionVar.Exp and("Software\\%CompanyName%\\%ProductName%"),"iFileSvcPort",false);

SessionVar.Set("%RegServerURL%", strURL);
SessionVar.Set("%RegServerPORT%", strPort);

GotServerFiles = TrueUpdate.GetServerFile(ServerName, false);



I would appreciate your help.
Thanks.

Adam
08-10-2005, 03:25 PM
You should be able to accomplish this by going to Project -> True Update Servers and adding custom variables for the address and port fields. Then at the very start of the client script set those variables using SessionVar.Set()

Adam Kapilik