Extract archive with XAD plugin
Re: Extract archive with XAD plugin
If this should be some sort of self-update, then you have to put the updater into a separate program. It then can communicate with the main program via CreatePort() and SendMessage().
Re: Extract archive with XAD plugin
My solution with Real Amiga SWOS Total Pack was to create a shell script which updates the application and then re-launches it. I give the location of the application to the shell script as an argument so that it knows where to update and where to re-launch it again.
So it goes like this: 1) Create/have/download an updater shell script, 2) Execute the script from the Hollywood application with the application location as an argument (get the location with GetCurrentDirectory() when program starts), 3) Quit the Hollywood application, 4) The shell script does the job and then launches the Hollywood application.
So it goes like this: 1) Create/have/download an updater shell script, 2) Execute the script from the Hollywood application with the application location as an argument (get the location with GetCurrentDirectory() when program starts), 3) Quit the Hollywood application, 4) The shell script does the job and then launches the Hollywood application.
Re: Extract archive with XAD plugin
Hi!
Thanks a lot for your advices!
I have found another method since my precedent post:
copy the program1 to RAM: (program2)
launch RAM:program2
then END command to close program1
Update program1 and open drower of program1
END program2

I will try to test your solutions too
Have a good day!
Thanks a lot for your advices!
I have found another method since my precedent post:
copy the program1 to RAM: (program2)
launch RAM:program2
then END command to close program1
Update program1 and open drower of program1
END program2
I will try to test your solutions too
Have a good day!