Sign in to follow this  
Followers 0
Skyfree

In windows 8.1 @OsVersion maybe have a BUG

9 posts in this topic




Interesting.

what you get without admin?

WIN_81

Share this post


Link to post
Share on other sites

When you compile your script it gets manifest which determines different aspects of your executable, among which what @OSVersion returns.

Considering you use Wrapper tool, it will also create manifest, delete the default one and add its own based on your directive. I'm not sure why default manifest gets removed then, because it shouldn't. Try newer wrapper, it's written and maintained by Jos.

If you get the same thing with the newest tool then maybe he's not aware of what his tool is doing, so report that to him.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I will have a look to see what needs changing in the default manifest AutoIt3Wrapper updates the program with and provide an update.

ps, in the mean time you can now use the new #pragma directive that is now build-in into aut2exe in stead of the #AutoIt3Wrapper directive:

#pragma compile(ExecLevel, requireAdministrator)      ;none, asInvoker, highestAvailable, requireAdministrator

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Uploaded a new Beta version 2.1.4.3 of AutoIt3Wrapper that now support the below options and defaults to win81 for compatibility when none is provide:

#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator  ;none, asInvoker, highestAvailable, requireAdministrator
#Autoit3Wrapper_Res_Compatibility=win81                           ;vista, win7, win8, win81

Let me know if that works or still needs changes,

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I tested successfully on 8.1, for what it is worth. Hopefully this resolves the OP's problem.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Seems fixed as I get WIN_81.


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

Uploaded a new Beta version 2.1.4.3 of AutoIt3Wrapper that now support the below options and defaults to win81 for compatibility when none is provide:

#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator  ;none, asInvoker, highestAvailable, requireAdministrator
#Autoit3Wrapper_Res_Compatibility=win81                           ;vista, win7, win8, win81

Let me know if that works or still needs changes,

Jos

 

Thanks !

AutoIt v3.3.10.2

AutoIt3Wrapper v2.1.4.3

SciTE v3.3.7.0

 

Use code:

#Region
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
#Autoit3Wrapper_Res_Compatibility=win81
#EndRegion

MsgBox(0,'',@OSVersion)

Or:

#Region
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
#EndRegion

MsgBox(0,'',@OSVersion)

Compiled and run :

post-84231-0-86859400-1389748827_thumb.p

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  
Followers 0