/// <summary> /// Busca actualizaciones disponibles en el FTP /// </summary> public static string LookForUpdates(string host, string user, string pwd, string remote_path, string remote_file) { return(AppControllerBase.LookForUpdates(host, user, pwd, remote_path, remote_file, string.Empty)); }
/// <summary> /// Busca en el Registro de Windows la ruta de la versión de la aplicacion /// </summary> /// <returns></returns> public static string Reg32GetVersion() { try { RegistryKey rk = AppControllerBase.Reg32GetAppKey(); return(rk.GetValue("Version", "").ToString()); } catch (Exception ex) { throw ex; } }
/// <summary> /// Busca en el Registro de Windows el nombre del recurso compartido /// donde se encuentra la aplicacion. /// </summary> /// <returns></returns> public static string Reg32GetServerPath() { try { RegistryKey rk = AppControllerBase.Reg32GetAppKey(); string value = rk.GetValue("ServerPath", "").ToString(); return((value.EndsWith("\\")) ? value : value + "\\"); } catch (Exception ex) { throw ex; } }
/// <summary> /// Busca en el Registro de Windows el servidor donde se encuentra /// instalada la aplicacion /// </summary> /// <returns></returns> public static string Reg32GetServerHost() { try { RegistryKey rk = AppControllerBase.Reg32GetAppKey(); if (rk == null) { return(string.Empty); } return(rk.GetValue("ServerHost", "").ToString()); } catch (Exception ex) { throw ex; } }
/// <summary> /// Busca en el Registro de Windows el nombre del usuario de la base de datos /// Si no lo encuentra lo busca en el fichero de configuración de hibernate /// </summary> /// <returns></returns> public static string Reg32GetDBUser() { try { RegistryKey rk = AppControllerBase.Reg32GetAppKey(); if (rk.GetValue("DBUser") != null) { return(rk.GetValue("DBUser").ToString()); } else { //Si no está en el registro Lo buscamos en la cadena de conexion return(nHManager.Instance.GetConnectionParam("User Id")); } } catch (Exception ex) { throw ex; } }
public static string GetRootPath() { return(AppControllerBase.Reg32GetServerPath()); }