B4J Question Build standalone Package Update

Dadaista

Active Member
Licensed User
Longtime 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
Longtime 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
Longtime 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