madasraka Posted August 1, 2010 Share Posted August 1, 2010 (edited) Guys please look at my script. I am very confused on why regedit exports whole registry instead of one specified in _registrybackup()function If _registrybackup() run on its own without being in this script, then it saves correct registry and everything is ok, but once this function (_registrybackup()) becomes a part of this script, whole registry is exported to 115MB files and it takes long time (well couple of seconds but still very long) Can you guys please look at this and tell me what is it that makes it act this way ? Thanks in advance.Autodesk Loader.au3 Edited August 1, 2010 by madasraka Link to comment Share on other sites More sharing options...
saywell Posted August 1, 2010 Share Posted August 1, 2010 Could you use RegRead and RegWrite direct from Autoit? William Link to comment Share on other sites More sharing options...
madasraka Posted August 1, 2010 Author Share Posted August 1, 2010 (edited) $ReadCurrentAutodesk = RegRead ("HKEY_CURRENT_MACHINE\SOFTWARE\Autodesk",'') MsgBox(0,'',$ReadCurrentAutodesk) returns nothing I dont want to complicate the script having regread to search for keys. I need the script to export it regardless if it being there or not, regedit will not export if data is not there so its ok. Problem is that script exports every key in the registry instead of one specified. Anyway to fix it ? Am 100% sure that export line is correct for each registry key, but once they run from the same script its not working right. It works right only if registry part of the script runs on its own and not being a part of the main script. WEIRDDDDDD Edited August 1, 2010 by madasraka Link to comment Share on other sites More sharing options...
madasraka Posted August 1, 2010 Author Share Posted August 1, 2010 I just noticed another thing that should be reported to bugs report page I run the script It backs up registry as it was told. It backs whole thing as it shouldnt Then I press F1 before script exist so that script runs again This time it saves everything correct I added msgbox right before 1st registry export command and its not poping up inless i press F1 to run the script again before 1st one exits Some tech needs to look at this please caz this is not the first time i get this problem Link to comment Share on other sites More sharing options...
Developers Jos Posted August 1, 2010 Developers Share Posted August 1, 2010 When you are running your script from SciTE: This is a known "feature"/problem in SciTE and no need to report as a Bug as it is a SciTE problem. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
madasraka Posted August 1, 2010 Author Share Posted August 1, 2010 thanks jos Also i noticed that functions were executing in a funny order but i think i got it fixed now by telling regedit in restorefunction to import as appose to export. That solved the problem for mass exporting 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