ColinRH Posted February 14, 2013 Share Posted February 14, 2013 I have searched everywhere I can think of and can't find the answer. Also I can't find the source for any macros in my AutoIt folders. Basically we have a compiled AutoIt script being used as an installer. It makes a decision about the operating system based on $OSVersion. On some PCs it seems to be getting the return value from this macro "wrong" but only when installing from a CD. It isn't happening on all PCs and it doesn't happen on the test PC when the compiled script is copied to HDD frm the CD and run from there (as a read only file exactly as it would be on the CD). We believe we have eliminated the possibility of any interference from AV software. I would really like to see what $OSVersion does "beneath the surface". A test script with debug message boxes, based on the script that's giving problems, works OK. I and my co-workers are completely baffled by this problem. A snippet of the script is below: Switch @OSVersion Case "WIN_2008R2", "WIN_7", "WIN_2008", "WIN_VISTA" $OS=1 Case Else $OS=0 EndSwitch The script, later on, is behaving as though $OS = 0 - the PC in question is "WIN_7" Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 14, 2013 Moderators Share Posted February 14, 2013 ColinRH, The AutoIt source is closed and has been for many years so only a Dev could give you the answer as to what goes on "under the hood" for that macro. But you are not the first to find that it is not totally reliable for the later OSs - ususally because some form of "compatability mode" has been activated. Perhaps this UDF might offer more reliable results? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
ColinRH Posted February 14, 2013 Author Share Posted February 14, 2013 Hi M23, Thanks for the concise answer - I can stop searching for something that's not findable. I'll look at the UDF and see if we can use that and if it solves the problem. I'd have liked to mark your post as "like this" but it won't let me - maybe I'm too new a user! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 14, 2013 Moderators Share Posted February 14, 2013 ColinRH,I have changed your member group so there is no longer a 5 post limit for the first 24 hours - I get the feeling that it might have come into play. And although I do not particularly seek "Like"s, see if that works now too!. M23 ColinRH 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
ColinRH Posted February 14, 2013 Author Share Posted February 14, 2013 M23 Thanks for that. I think a good sensible reply to a post deserves proper recognition! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now