Why won't the PB executable run?

Just starting out? Need help? Post your questions and find answers here.
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Why won't the PB executable run?

Post by akj »

When I email a PB compiled executable (either 32-bit or 64-bit) to my brother [and to others] and he tries to run it under 64-bit Windows 7 Ultimate he always gets the error message "Your internet security settings prevented one or more files from being opened". This is true even if:-
1. I rename the .EXE file to another extension (such as .AKJ or .TXT) before mailing it and he renames it back to .EXE before running it.
2. He disables his Firewall and Anti-virus software before running my program.
3. He tries to run my program as an Administrator.

Has anyone any any idea how he can force my program to run? I do not wish to send him the PB source code.
Anthony Jordan
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Re: Why won't the PB executable run?

Post by GPI »

How does they open your mail? Internet-Explorer?
Little John
Addict
Addict
Posts: 4791
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Why won't the PB executable run?

Post by Little John »

You can put your EXE file into an archive (e.g. ZIP) and attach that archive to the mail.
User avatar
skywalk
Addict
Addict
Posts: 4219
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Why won't the PB executable run?

Post by skywalk »

The receiver of your file can Right-Mouse click the file properties after renaming to ?.exe and click Unblock if highlighted. Otherwise, they can try whitelisting the exe file in the antivirus tool in use.
Is it Endpoint Protection?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Why won't the PB executable run?

Post by netmaestro »

I'm not sure a simple rename would work in this day and age. In 1996 it would have been the cat's whiskers but these days the OS is probably reading file formats and it knows an .exe when it sees one, regardless of what you've called it. Zip first, send, receive, unzip, run. It's going to work.
BERESHEIT
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Re: Why won't the PB executable run?

Post by akj »

Thank you for your suggestions, but the problem is still unresolved.

Some details: My brother's email browser is Live Mail within Internet Explorer 10 with Avast anti-virus (I'm using Kaspersky anti-virus on my PC). I understand he is not using Endpoint Protection.

I successfully zipped my .exe file into a .7z archive using 7-Zip software (version 15.08 beta 64-bit x64) from http://www.7-zip.org

On my computer I was subsequently able to extract the .exe file and run it correctly, but my brother's attempts on his PC to extract the .exe file with the same version of 7-Zip (from the .7z archive I emailed to him) always results in a zero-length .exe file. So he still cannot run it.

I guess the problem is down to his Avast anti-virus software.
EDIT: Turning off Avast for 10 minutes does not solve the zero extraction problem.

Has anyone any further ideas?
Last edited by akj on Sat Oct 03, 2015 10:45 am, edited 1 time in total.
Anthony Jordan
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Why won't the PB executable run?

Post by IdeasVacuum »

....It might also be Live Mail but sounds as though you got past that bit. Before your brother runs the extracted exe, can he confirm that the file size is the same as when it was sent? If so, he can avoid the anti-virus issue by adding the exe to the 'white' or 'ignore' list.

....Just to be sure - your brother's OS bits match the exe? i.e. if your exe file is 64bit, is his Windows OS 64 bit?

Finally, to avoid these issues with other people, consider defining an installer for your app. You can use Inno for example (As used by Fred for PB installs). Inno Setup It's up-to-speed with Win10 and it's free.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Why won't the PB executable run?

Post by wilbert »

akj wrote:Has anyone any further ideas?
Maybe use something like DropBox or WeTransfer
Windows (x64)
Raspberry Pi OS (Arm64)
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Why won't the PB executable run?

Post by Dude »

Is it the actual exe not being delivered to the PC, or is there but not allowed to run?
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Why won't the PB executable run?

Post by heartbone »

Anthony, perhaps it's a new M$ trusted computing setting?
Have the user make a local copy and run the copy.
Keep it BASIC.
mqsymth
User
User
Posts: 30
Joined: Fri Aug 28, 2015 8:13 pm

Re: Why won't the PB executable run?

Post by mqsymth »

Gmail, Hotmail, AOL and MS Live mail do not allow attachments with EXEs in them. It doesn't matter whether you rename the EXE or not.

A free Yahoo email account will allow attachments with EXEs. Else you have to upload a Dropbox type site and he has to downloadd from that site
User avatar
mk-soft
Always Here
Always Here
Posts: 6252
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Why won't the PB executable run?

Post by mk-soft »

Thats right.
Not possible to send applications
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Re: Why won't the PB executable run?

Post by JCV »

I always send apps in outlook but I compress it first using winrar in "rar" format.
If the app fails to run it might be the antivirus that prevents it or any other security software.

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Re: Why won't the PB executable run?

Post by akj »

Thanks for all your help.

The solution I have adopted was mentioned by wilbert who advised me to send the .exe file via http://www.WeTransfer.com .
Anthony Jordan
Post Reply