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.
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.