Why won't the PB executable run?
Why won't the PB executable run?
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.
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
Re: Why won't the PB executable run?
How does they open your mail? Internet-Explorer?
-
- Addict
- Posts: 4791
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Why won't the PB executable run?
You can put your EXE file into an archive (e.g. ZIP) and attach that archive to the mail.
Re: Why won't the PB executable run?
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?
Is it Endpoint Protection?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
- netmaestro
- 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?
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
Re: Why won't the PB executable run?
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?
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
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Why won't the PB executable run?
....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.
....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.
If it sounds simple, you have not grasped the complexity.
Re: Why won't the PB executable run?
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Why won't the PB executable run?
Is it the actual exe not being delivered to the PC, or is there but not allowed to run?
Re: Why won't the PB executable run?
Anthony, perhaps it's a new M$ trusted computing setting?
Have the user make a local copy and run the copy.
Have the user make a local copy and run the copy.
Keep it BASIC.
Re: Why won't the PB executable run?
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
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
Re: Why won't the PB executable run?
Thats right.
Not possible to send applications
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
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Why won't the PB executable run?
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.
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]
Re: Why won't the PB executable run?
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 .
The solution I have adopted was mentioned by wilbert who advised me to send the .exe file via http://www.WeTransfer.com .
Anthony Jordan