Jump to content

regedit+autoit+my script acting weird !!!


Recommended Posts

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

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

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

  • Developers

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

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...