JuanFelipe Posted February 2, 2018 Posted February 2, 2018 Updates for your program.Hello a few days ago I started with the task of hosting my program on a host, in order to launch updates from there, thanks to the help I received in the forum I did and now I want to share how my code was. First I did it verifying the version and opened the download page in the default browser, today what I did was a new version in which you download the file from a window with a progress bar and it automatically starts with the installation, it means that it does not open a browser but downloads directly with InetGet (). I know it will not be an expert's code, but maybe someone will help you. I do not speak English so I use Google translator, I mention this in case some things are poorly translated. And this is the function with which everything is done. Func _actualizacion() Local $iPing = Ping("www.google.com", 3000) If $iPing Then Local $dData = InetRead("https://sourceforge.net/projects/sala-de-videos/files/Version.txt") Local $iBytesRead = @extended Local $sData = BinaryToString($dData) If $version<$sData Then $update1="" $update1&="Hay una versión más reciente del software"&@CRLF $update1&="Desea descargarla?"&@CRLF $update=MsgBox(4, "Update", $update1) If($update=6)Then Local $parte1= Run("Update.exe") Exit Exit Else EndIf Else MsgBox($MB_SYSTEMMODAL, "Update", "Usted cuenta con la última versión actualizada.") EndIf Else MsgBox(16, "", "No hay conexión a internet error: " & @error) EndIf EndFunc ;==>Example It is noteworthy that the versions of the software and every time I do an update I host them in https://sourceforge.net/ so luck for those of us who are starting in this. En español para algunos que lo necesitamos Actualizaciones para tu programa. Hola hace unos días empecé con la tarea de alojar mi programa en un host, con el fin de lanzar actualizaciones desde allí, gracias a la ayuda que recibí en el foro lo hice y ahora quiero compartirles como quedó mi código. Primero lo realicé verificando la versión y abría en el navegador predeterminado la página de descarga, hoy lo que hice fue una nueva versión en la que descarga el archivo desde una ventana con una barra de progreso y automáticamente empieza con la instalación, quiere decir que ya no abre un explorador si no que descarga directamente con InetGet(). Sé que no será el código de un experto, pero quizá a alguien le sirva como ayuda. No se hablar inglés así que uso Google traductor, esto lo menciono por si algunas cosas quedan mal traducidas. Es de resaltar que las versiones del software y cada vez que hago alguna actualización las alojo en https://sourceforge.net/ así que suerte para los que estamos empezando en esto. _webDownloader.au3 Update.au3
Nick3399 Posted November 25, 2018 Posted November 25, 2018 Hi I am trying to add this to my code and I have changed the info but there is a popup that has like 8 options after the new file is downloaded - where is that coming from??
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now