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 — at Version 1

Reported by: magnuslarsson73@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.4.0 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 3.3.5.4-beta.

{{
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
;
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Wow6432Node]

}}

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

Note: See TracTickets for help on using tickets.