Modify

Opened 10 years ago

Closed 9 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 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]

}}

Attachments (0)

Change History (1)

comment:1 Changed 9 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

Action
as closed The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.