legend Posted November 10, 2012 Share Posted November 10, 2012 Hi does someone know if it's possible to check if .net framework is installed (any version) without using administrator rights? Link to comment Share on other sites More sharing options...
dany Posted November 10, 2012 Share Posted November 10, 2012 Read registry keys: http://support.microsoft.com/kb/318785/en-us http://stackoverflow.com/questions/199080/how-to-detect-what-net-framework-versions-and-service-packs-are-installed If it fails, .NET isn't installed. [center]Spiderskank Spiderskank[/center]GetOpt Parse command line options UDF | AU3Text Program internationalization UDF | Identicon visual hash UDF Link to comment Share on other sites More sharing options...
legend Posted November 10, 2012 Author Share Posted November 10, 2012 (edited) so this is what i did: Local $var = RegRead("HKLM64SOFTWAREMicrosoft.NETFramework", "InstallRoot") if @error then ShellExecute("Notepad.exe") but how do I read just : "HKLM64SOFTWAREMicrosoft.NETFramework" I just wanna see if that path exists, I don't want to read a key, just the path i wanna do something like: if regkey exists - "HKLM64SOFTWAREMicrosoft.NETFramework then blah blah blah else blahblahblah endif Edited November 10, 2012 by legend Link to comment Share on other sites More sharing options...
dany Posted November 10, 2012 Share Posted November 10, 2012 Well, InstallRoot will be defined pretty much always so why not use it? If Not RegRead('HKLM64SOFTWAREMicrosoft.NETFramework', 'InstallRoot') Then MsgBox(0, 'Error', '.NETFramework not installed.') Else MsgBox(0, 'Ok', '.NETFramework installed.') EndIf Although you're problably best of rolling a function: Func _NETFrameworkIsInstalled() RegRead('HKLM64SOFTWAREMicrosoft.NETFramework', 'InstallRoot') If @error Then Return False Return True EndFunc [center]Spiderskank Spiderskank[/center]GetOpt Parse command line options UDF | AU3Text Program internationalization UDF | Identicon visual hash UDF Link to comment Share on other sites More sharing options...
guinness Posted November 11, 2012 Share Posted November 11, 2012 dany, That function can be reduced to...which returns True or False. Func _NETFrameworkIsInstalled() RegRead('HKLM64SOFTWAREMicrosoft.NETFramework', 'InstallRoot') Return @error > 0 EndFunc ;==>_NETFrameworkIsInstalled UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
icu Posted November 11, 2012 Share Posted November 11, 2012 All the heavy lifting has been done for you by this guy:http://chentiangemalc.wordpress.com/2011/01/29/net-installation-checker/He even has all the AutoIt source code and I've verified it works since I've used it myself for stuff. Link to comment Share on other sites More sharing options...
Mongoose Posted July 9, 2019 Share Posted July 9, 2019 On 11/11/2012 at 11:22 AM, icu said: All the heavy lifting has been done for you by this guy: http://chentiangemalc.wordpress.com/2011/01/29/net-installation-checker/ He even has all the AutoIt source code and I've verified it works since I've used it myself for stuff. The link on that page isn't working. Anyone know where else to get it? Link to comment Share on other sites More sharing options...
Nine Posted July 9, 2019 Share Posted July 9, 2019 It is simply a regedit read under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup Earthshine 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy 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