Jump to content

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


Recommended Posts

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
Link to comment
Share on other sites

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>

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...