Exe won't run on Windows 10

Just starting out? Need help? Post your questions and find answers here.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Exe won't run on Windows 10

Post by Dude »

I'm using PureBasic 5.31, 32-bit, on a 64-bit PC running Windows 7 Ultimate. When I build an exe and send it to a friend running Windows 10, 64-bit, the exe throws up this error. Any suggestions on how to resolve this? Thank you.

Image
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Exe won't run on Windows 10

Post by jack »

may sound like a stupid question, you say that you are on 64-bit PC but is your OS 32 or 64 bit?
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Exe won't run on Windows 10

Post by IdeasVacuum »

Is the exe installed on Win10? Notice that Win10 is complaining about a 64bit DLL when your 32bit app should be working with 32bit DLLs (nVidia "Capture Server Proxy").

Could it be that your friend has installed/saved the exe in Program Files? On a 64bit OS, that folder is for 64bit exe files only. Program Files x86 is for the 32bit exe files.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Exe won't run on Windows 10

Post by Dude »

My OS is 64-bit. My friend installed the exe (via InnoSetup) and is running it from the equivalent of C:\App\Test.exe, not from Program Files.
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Exe won't run on Windows 10

Post by heartbone »

Dude wrote:I'm using PureBasic 5.31, 32-bit, on a 64-bit PC running Windows 7 Ultimate. When I build an exe and send it to a friend running Windows 10, 64-bit, the exe throws up this error. Any suggestions on how to resolve this? Thank you.

Image
Is this a trick question?

I'm thinking that all you need to do is use PureBasic 5.31, 64-bit to build your executable,
but probably this is a trick question and I fell for it. Right?
Keep it BASIC.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Exe won't run on Windows 10

Post by Dude »

Not a trick question at all. Please note that the same exe on all OS before Windows 10 worked fine, so I think it's a Win 10 issue.

Anyway, if I build it with 64-bit PureBasic, won't that stop it running on 32-bit Windows?
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Re: Exe won't run on Windows 10

Post by GPI »

A 64-Bit exe can't be run on a 32-Bit os.

Maybe it would help, when you post your source code or post the exact error message.
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re: Exe won't run on Windows 10

Post by Falko »

But he write a 32-Bit-EXE with a 64-Bit-DLL on a 64-Bit-OS.
This should be correct. :D
www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Exe won't run on Windows 10

Post by IdeasVacuum »

Please note that the same exe on all OS before Windows 10 worked fine, so I think it's a Win 10 issue.
Could have told us that in the first post :D

So, yes it looks like a Win10 issue - possibly to do with security. Given that the app has an installer, it really should be installed where Microsoft wants it to be, in Program Files x86. I would modifiy the installer script to do that, see what happens.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
DontTalkToMe
Enthusiast
Enthusiast
Posts: 334
Joined: Mon Feb 04, 2013 5:28 pm

Re: Exe won't run on Windows 10

Post by DontTalkToMe »

Probably it has nothing to do with your program and it's a problem with Geforce Experience and Windows 10.
That error can happen executing any program.
Your friend should reinstall the nVidia crap or look for an updated version.
Also he should check if TMP and TEMP env. variables point to an actual folder.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Re: Exe won't run on Windows 10

Post by GPI »

Falko wrote:But he write a 32-Bit-EXE with a 64-Bit-DLL on a 64-Bit-OS.
This should be correct. :D
Äh, when you have a 32-bit-exe, the dll must be also 32-bit....
User avatar
Bisonte
Addict
Addict
Posts: 1313
Joined: Tue Oct 09, 2007 2:15 am

Re: Exe won't run on Windows 10

Post by Bisonte »

GPI wrote:
Falko wrote:Äh, when you have a 32-bit-exe, the dll must be also 32-bit....
Yes!
There is no way to mix !
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re: Exe won't run on Windows 10

Post by Falko »

Sorry, my mistake :) . You can run Exe be 64Bit-Os, but not run from
with 64-Bit-DLLs. These must be 32Bit-DLLs on 64Bit-OS.
www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Exe won't run on Windows 10

Post by ts-soft »

A 64-Bit App can use a 64-Bit DLL and no other!
A 32-Bit App can use a 32-Bit DLL and no other!

It is very simple :D
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re: Exe won't run on Windows 10

Post by Falko »

:D
www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
Post Reply