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: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.4.0 | Severity: | None |
| Keywords: | Cc: |
Description (last modified by )
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 , 16 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → No Bug |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

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