Opened 14 years ago

Closed 14 years ago

#1480 closed Bug (No Bug)

Corrupting registry when importing a .reg file with a delete key in it

Reported by: magnuslarsson73@… Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description (last modified by Jpm)

When running the following code, it corrupts the Windows registry (none of the shortcuts in the start menu work afterwards) at least not on Windows Server 2008 HPC Edition (x64). Reg file imports fine from cmd line (reg.exe import C:\scripts\setupReg.reg). Seems to be working in

RunWait("reg.exe import C:\scripts\setupReg.reg")

Contents of C:\scripts\setupReg.reg:

Windows Registry Editor Version 5.00

; Remove redundant Wow6432Node key if exists


Attachments (0)

Change History (1)

comment:1 Changed 14 years ago by Jpm

  • Description modified (diff)
  • Resolution set to No Bug
  • Status changed from new to closed

I don't understand the corruption you mention.
But to have it working you must launch Reg.exe in admin mode.
so you must add a #requireAdmin

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.