Explore the docs »
View Demo
.
Report Bug
.
Request Feature
This project shows you how to update files on client local computer, while your project is desktop based and you cannot access their computer directly .
Project ini didukung oleh Newtonsoft.Json Dibuat dengan menggunakan VB .NET
Silahkan build project ini hingga menghasilkan file "File Updater.dll", lalu import ke project anda.
Buat instance dari class FileUpdater pada form utama agar pengecekan selalu berjalan di awal form dibuka. Sebagai alternatif, anda bisa memanggil fungsi update dalam event timer
Buat file JSON dengan contoh format seperti berikut :
"aplikasi":{ "downloadPath":"https://server.com/aplikasi.zip", "versi":"1.0.3.6" }
Dim filename As String = AppDomain.CurrentDomain.FriendlyName
Dim filepath As String = Application.StartupPath
Dim fileUpdater as New FileUpdater("https://server.com/tempatJson/","fileReferensi.json", true)
Dim hasil as String = await fileUpdater.checkThenUpdate(filename, filepath, "aplikasi")
if hasil<>"Updated" then messagebox.show(hasil, "Terjadi Kesalahan")
- BukanFarid - ** - BukanFarid - **