Modify

Opened 16 years ago

Closed 16 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: 3.3.4.0 Severity: None
Keywords: Cc:

Description (last modified by J-Paul Mesnage)

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]

}}

Attachments (0)

Change History (1)

comment:1 by J-Paul Mesnage, 16 years ago

Description: modified (diff)
Resolution: No Bug
Status: newclosed

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

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.