B4J Question Build standalone Package Update

alirezahassan

Active Member
Licensed User
hi all,
is there any way to update our project By coding?
my project has a update per month and My client don't like to download and replace the file themselves. is there any way or code or lib to do the update work?
 

Dadaista

Active Member
Licensed User
Upload the package to your own server
in your aplication, when start, check your server for new version. if new version, download it. execute it via shell and close your app. The installation will start and that is all.
That is the way I update my app.
 
Upvote 0

behnam_tr

Active Member
Licensed User
i have a b4j app with online update option
user can check update exists, if updated then can download and replace with old file automatically
i using dropbox directlink.
 
Upvote 0

Dadaista

Active Member
Licensed User
Sure!!!
B4X:
'**********************************************************
            'EJECUTAR LA INSTALACION DESDE EL SHELL.
            'AÑADIR JSHELL EN LAS LIBRERIAS
            Dim shell As Shell
            
            shell.Initialize("shell", File.DirTemp & "\" & sFile, Null)
            shell.WorkingDirectory = File.DirTemp
            shell.Run(-1)
            'EJECUTAR LA INSTALACION DESDE EL SHELL.
            '**********************************************************
            ExitApplication

Well... I Changed the execution from shell.... The code was commented in the source :rolleyes:

Now I am using this...
B4X:
fx.ShowExternalDocument(File.GetUri(File.DirTemp, sFile))
Exitapplication

sFile is your installer.exe previously downloaded from your server
 
Upvote 0
Top