BBC BASIC for Windows
« internet file depoyment »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:49pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: internet file depoyment  (Read 799 times)
yshua
Developer

member is offline

Avatar




PM


Posts: 7
xx internet file depoyment
« Thread started on: Sep 19th, 2010, 04:05am »

Hello all:

I have a game I contracted with web developers to deploy from my own domain space. Everything went great till they asked for the executable file to deploy when customer click their "download now" pretty, green button. I was unaware my executable could never use the copy command to copy a file from some internet pathname to a pc pathname. I could use a few ideas.... Help!

Thanks for any input,
Yshua Calkins
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: internet file depoyment
« Reply #1 on: Sep 19th, 2010, 10:54am »

on Sep 19th, 2010, 04:05am, yshua wrote:
Everything went great till they asked for the executable file to deploy when customer click their "download now" pretty, green button.

It depends on the browser.

With Internet Explorer clicking on a link to an EXE file results in a 'Save or Run' option. If the user clicks 'Run' it will do exactly what you have been asked for - your executable will be downloaded (behind the scenes) to a temporary location and then executed automatically.

With Firefox you only get the option to 'Save'; once the file has been downloaded a list of recently downloaded files appears and you must double-click on the one you've just downloaded.

With Google Chrome, you only get the option to 'Save'; once the file has been downloaded a button appears at the bottom of the screen which executes the program.

Opera just seems to get confused!

In all cases the user may have to accept a security warning before the program is run. Obviously, running an EXE is only possible if the browser is running under Windows!

So IE comes closest to what you are being asked for. You may be able to reduce or eliminate the need for the user to accept a security warning by 'digitally signing' the executable - but obtaining a code-signing certificate is not cheap!

Richard.
User IP Logged

yshua
Developer

member is offline

Avatar




PM


Posts: 7
xx Re: internet file depoyment
« Reply #2 on: Sep 19th, 2010, 11:34am »

That's wonderful to know that. But then how does one download a manifest with an executable? Is it in a similar filespace in the domain files?
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: internet file depoyment
« Reply #3 on: Sep 19th, 2010, 1:46pm »

on Sep 19th, 2010, 11:34am, yshua wrote:
how does one download a manifest with an executable?

The most 'elegant' way is probably to use a resource editor to incorporate the manifest into the executable as a resource.

Failing that (assuming we're talking about a BBC BASIC executable here) embed the manifest file in the executable (in @dir$). The manifest won't be acted upon the first time the EXE is run (because it isn't there yet!) but the second and subsequent times it will be, because by then it's been extracted to the same folder.

You'd need to build in a test for the EXE being run the first time - such as checking for the presence of a file that the EXE creates specifically for the purpose - and if so execute itself!

Richard.
User IP Logged

yshua
Developer

member is offline

Avatar




PM


Posts: 7
xx Re: internet file depoyment
« Reply #4 on: Sep 19th, 2010, 9:49pm »

Dear Richard:

Sounds brilliant_ how to get the manifest to execute on a second pass!! But I also want to know how to use the resource editor for one or two left over, very large Liberty Basic files as well. Can you please explain?

Powerful,
Yshua rolleyes
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: internet file depoyment
« Reply #5 on: Sep 19th, 2010, 10:28pm »

on Sep 19th, 2010, 9:49pm, yshua wrote:
But I also want to know how to use the resource editor for one or two left over, very large Liberty Basic files as well. Can you please explain?

There are several Resource Editors available that can modify the resources in an EXE file. Here are just a few:

http://www.angusj.com/resourcehacker/
http://www.restuner.com/
http://www.resedit.net/

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls