Jump to content
Sign in to follow this  
goodbyeplanet

if application not supported on windows 7 then.....help

Recommended Posts

goodbyeplanet

I know how to do this:

$osversion=@OSVersion

if $osversion=WIN_7 then
run(buses.exe)
endif

but is there a way of somehow reading an exe file then output to say .."this file is not supported on this system"..I mean by first reading the details of the exe file itself then making a conclusion..

Edited by goodbyeplanet

Share this post


Link to post
Share on other sites
sleepydvdr

Are you going to have multiple executables to run (such as buses.exe for 32 bit and 64 bit OSes)? If so, why don't you do an IF AND statement?

If $osversion="WIN_7" AND @OSarch = "X64" then
    run(buses_x64.exe)
Else If $osversion="WIN_7" AND @OSarch = "X86"
    run(buses_x86.exe)
EndIf

As for reading whether an executable is compatible with the system, I don't think AutoIt can do that.


#include <ByteMe.au3>

Share this post


Link to post
Share on other sites
goodbyeplanet

As for reading whether an executable is compatible with the system, I don't think AutoIt can do that.

thats exactly what i was asking to know and thank you for your clarification as well as your suggestion....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.