water Posted December 8, 2010 Share Posted December 8, 2010 Please wait at least 24 hours before you bump a thread. Especially as you've already been given a solution. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
PsaltyDS Posted December 8, 2010 Share Posted December 8, 2010 thank you very much my sirbut i will give you tow reg file to convert themok my sirSo you want Varian to download your files, convert them, and then post them back for you. That's not what we do here. If you want to contact Varian off-line and pay him/her an appropriate service fee, it's no skin off our collective noses. But that business does not belong on the AutoIt help forums where we answer questions and help you write/use your own scripts. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
kingooo Posted December 8, 2010 Author Share Posted December 8, 2010 do not understand me wrong i want any one to help me i wait you Link to comment Share on other sites More sharing options...
kaotkbliss Posted December 8, 2010 Share Posted December 8, 2010 When googling your reg file to see what it did, the first (and whole first page) of results was this:"frozen_oxygen: - How to crack kaspersky antivirus 7.0 -Jan 7, 2008 ... 5. remove HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\SPC\Certificates. 6. run Kaspersky, choose 30 day trial key and activate ..." We don't help people perform illegal activities. 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Varian Posted December 8, 2010 Share Posted December 8, 2010 (edited) Run this to convert your regfiles...please do not link/send/suggest/insinuate anymore regfiles.expandcollapse popup#NoTrayIcon #region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=\\TEST-PC\D$\Icons\regedit.ico #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_Res_Fileversion=1.0.0.0 #AutoIt3Wrapper_Res_LegalCopyright=modified by Varian L. Styles #AutoIt3Wrapper_Au3Check_Stop_OnWarning=y #AutoIt3Wrapper_Run_Obfuscator=y #Obfuscator_Parameters=/striponly #endregion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <File.au3> #include <WindowsConstants.au3> ;By Nafaa ;~ create necessary Dir and key Global $Temp_Dir Global $Temp_reg Global $Name Global $Path Global $Reg1 Global $Reg2 Global $AU3 Global $Error = 0 Global $Key $Temp_Dir = @TempDir & "\Reg_to_Au3" If FileExists($Temp_Dir) Then If DirRemove($Temp_Dir, 1) = 0 Then $Temp_Dir = @TempDir & "\Reg_to_Au3(" & Random(0, 1000, 1) & ")" EndIf If DirCreate($Temp_Dir) = 0 Then MsgBox(48, "", "unable to create necessary files") Exit EndIf $Temp_reg = "HKEY_CURRENT_USER\Software\Reg to au3" If RegDelete($Temp_reg) = 2 Then $Temp_reg = "HKEY_CURRENT_USER\Software\Reg to au3(" & Random(0, 1000, 1) & ")" If RegWrite($Temp_reg) = 0 Then MsgBox(48, "", "unable to create necessary keys") Exit EndIf ;~ starting $Key = '' If $CmdLine[0] = 0 Then $Reg = FileOpenDialog("Select a reg file", @ScriptDir, "Reg files (*.reg)", 1) If @error Then Exit Else $Reg = $CmdLine[1] EndIf $Split = StringSplit($Reg, "\") $Name = $Split[$Split[0]] $Path = StringLeft($Reg, StringInStr($Reg, "\", 0, -1) - 1) $Veuillez = GUICreate("Please Wait", 120, 20, -1, -1, $WS_POPUPWINDOW, $WS_EX_TOPMOST) GUISetState(@SW_SHOW) $Label1 = GUICtrlCreateLabel(" Please Wait ...", 4, 4, 387, 17) $n = _FileCountLines($Reg) $Reg1 = FileOpen($Reg, 0) $Reg2 = FileOpen($Temp_Dir & "\" & $Name, 2) $Newname = StringTrimRight($Name, 4) $AU3 = FileOpen($Temp_Dir & "\" & $Newname, 2) FileWrite($AU3, ";Reg Keys or Values to Delete :" & @CRLF) For $i = 1 To $n $Line = FileReadLine($Reg1, $i) $Len = StringLen($Line) $Num = 1 Do If StringMid($Line, $Num, 1) = "[" Then $Key = StringTrimLeft($Line, $Num - 1) $Num = $Len Do $St_mid = StringMid($Key, $Num, 1) If $St_mid = "]" Then $Key = StringLeft($Key, $Num) ExitLoop EndIf $Num = $Num - 1 If $Num < 0 Then $Key = "" ExitLoop EndIf Until 1 = 2 If Not $Key = "" Then Key($Key) EndIf ExitLoop ElseIf StringMid($Line, $Num, 1) = '"' Then $Line = StringTrimLeft($Line, $Num - 1) If Not $Key = "" Then value1($Line, $Key) EndIf ExitLoop ElseIf StringMid($Line, $Num, 1) = ' ' Then $Num = $Num + 1 ElseIf StringMid($Line, $Num, 1) = '@' Then $Line = StringTrimLeft($Line, $Num - 1) If Not $Key = "" Then value2($Line, $Key) EndIf ExitLoop Else FileWrite($Reg2, $Line & @CRLF) ExitLoop EndIf If $Num > $Len Then ExitLoop Until 1 = 2 Next RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableTaskMgr", "REG_DWORD", "0") RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableRegistryTools", "REG_DWORD", "0") FileClose($Reg1) FileClose($Reg2) RunWait('regedit.exe /s "' & $Temp_Dir & '\' & $Name & '"') FileWrite($AU3, @CRLF & "; <HKEY_CLASSES_ROOT> Keys :" & @CRLF) log_reg($Temp_reg & "\HKCR") FileWrite($AU3, @CRLF & "; <HKEY_CURRENT_USER> Keys :" & @CRLF) log_reg($Temp_reg & "\HKCU") FileWrite($AU3, @CRLF & "; <HKEY_LOCAL_MACHINE> Keys :" & @CRLF) log_reg($Temp_reg & "\HKLM") FileWrite($AU3, @CRLF & "; <HKEY_CURRENT_USER> Keys :" & @CRLF) log_reg($Temp_reg & "\HKU") FileWrite($AU3, @CRLF & "; <HKEY_CURRENT_CONFIG> Keys :" & @CRLF) log_reg($Temp_reg & "\HKCC") GUIDelete($Veuillez) FileClose($AU3) Local $Final = FileRead($Temp_Dir & "\" & $Newname) $Final = RegFixes($Final) $Save = $Path & '\' & $Newname & '.au3' FileOpen($Save, 2) FileWrite($Save, $Final) FileClose($Save) DirRemove($Temp_Dir, 1) RegDelete($Temp_reg) Func log_reg($Key_log) $Key_ = StringReplace($Key_log, $Temp_reg & "\HKCC", "HKEY_CURRENT_CONFIG") $Key_ = StringReplace($Key_, $Temp_reg & "\HKU", "HKEY_USERS") $Key_ = StringReplace($Key_, $Temp_reg & "\HKLM", "HKEY_LOCAL_MACHINE") $Key_ = StringReplace($Key_, $Temp_reg & "\HKCR", "HKEY_CLASSES_ROOT") $Key_ = StringReplace($Key_, $Temp_reg & "\HKCU", "HKEY_CURRENT_USER") $Key_ = StringReplace($Key_log, $Temp_reg & "\HKCC", "HKCC") $Key_ = StringReplace($Key_, $Temp_reg & "\HKU", "HKU") $Key_ = StringReplace($Key_, $Temp_reg & "\HKLM", "HKLM") $Key_ = StringReplace($Key_, $Temp_reg & "\HKCR", "HKCR") $Key_ = StringReplace($Key_, $Temp_reg & "\HKCU", "HKCU") For $i = 1 To $n * 2 ;(for example) $Val_name = RegEnumVal($Key_log, $i) If @error <> 0 Then ExitLoop $Val = RegRead($Key_log, $Val_name) If @extended = 1 Then $Type = "REG_SZ" If @extended = 2 Then $Type = "REG_EXPAND_SZ" If @extended = 3 Then $Type = "REG_BINARY" If @extended = 4 Then $Type = "REG_DWORD" If @extended = 7 Then $Type = "REG_MULTI_SZ" FileWrite($AU3, "RegWrite('" & $Key_ & "', '" & $Val_name & "', '" & $Type & "', '" & $Val & "')" & @CRLF) Next For $Ii = 1 To $n * 2 ;(for example) $Key_log_New = RegEnumKey($Key_log, $Ii) If @error <> 0 Then ExitLoop Else log_reg($Key_log & "\" & $Key_log_New) EndIf Next EndFunc ;==>log_reg Func Key($K_key) $Str_mid = StringMid($K_key, 1, 2) If $Str_mid = "[-" Then $Key = "" $Del_key = StringTrimLeft($K_key, 2) $Del_key = StringTrimRight($Del_key, 1) FileWrite($AU3, "RegDelete('" & $Del_key & "')" & @CRLF) Else $K_key = StringReplace($K_key, "HKEY_CURRENT_USER", $Temp_reg & "\HKCU") $K_key = StringReplace($K_key, "HKEY_CLASSES_ROOT", $Temp_reg & "\HKCR") $K_key = StringReplace($K_key, "HKEY_LOCAL_MACHINE", $Temp_reg & "\HKLM") $K_key = StringReplace($K_key, "HKEY_USERS", $Temp_reg & "\HKU") $K_key = StringReplace($K_key, "HKEY_CURRENT_CONFIG", $Temp_reg & "\HKCC") FileWrite($Reg2, $K_key & @CRLF) EndIf EndFunc ;==>Key Func value1($Line, $k) $Error = 0 $Replace = StringReplace($Line, " ", "") If StringInStr($Replace, '" = -') = 0 Then FileWrite($Reg2, $Line & @CRLF) Else $k = StringTrimLeft($k, 2) $k = StringTrimRight($k, 1) $Line = StringTrimLeft($Line, 1) $Ln = StringLen($Line) $Nu = $Ln Do $Mid = StringMid($Line, $Nu, 1) If $Mid = '"' Then $Line = StringLeft($Line, $Nu - 1) ExitLoop Else $Nu = $Nu - 1 EndIf If $Nu < 0 Then $Error = 1 ExitLoop EndIf Until 1 = 2 If Not $Error = 1 Then FileWrite($AU3, 'RegDelete("' & $k & '", "' & $Line & '")' & @CRLF) EndIf EndFunc ;==>value1 Func value2($Line, $k) $Error2 = 0 $Replace = StringReplace($Line, " ", "") If $Replace = "@ = -" Then $k = StringTrimLeft($k, 2) $k = StringTrimRight($k, 1) $Line = StringTrimLeft($Line, 1) $Ln = StringLen($Line) $Nu = $Ln Do $Mid = StringMid($Line, $Nu, 1) If $Mid = '"' Then $Line = StringLeft($Line, $Nu - 1) ExitLoop Else $Nu = $Nu - 1 EndIf If $Nu < 0 Then $Error = 1 ExitLoop EndIf Until 1 = 2 If Not $Error2 = 1 Then FileWrite($AU3, 'RegDelete("' & $k & '", "")' & @CRLF) Else FileWrite($Reg2, $Line & @CRLF) EndIf EndFunc ;==>value2 Func RegFixes($iString) $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)([a-z]):\\Program Files([ x86\(\)]*)\\Common Files\\', '$1$2' & "' & @CommonFilesDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)([a-z]):\\Program Files([ x86\(\)]*)\\', '$1$2' & "' & @ProgramFilesDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)([a-z]):\\Windows\\System32\\', '$1$2' & "' & @SystemDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)([a-z]):\\Windows\\Syswow64\\', '$1$2' & "' & @SystemDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)([a-z]):\\Windows\\', '$1$2' & "' & @WindowsDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & @UserProfileDir & "\\AppData\\Local\\Temp\\", '$1$2' & "' & @TempDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & StringRegExpReplace(FileGetShortName(@UserProfileDir & "\AppData\Local\Temp\"), '\\', '\\\\'), '$1$2' & "' & @TempDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & @UserProfileDir & "\\Local Settings\\Temp\\", '$1$2' & "' & @TempDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & StringRegExpReplace(FileGetShortName(@UserProfileDir & "\Local Settings\Temp\"), '\\', '\\\\'), '$1$2' & "' & @TempDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & @UserProfileDir & "\\AppData\\Local\\", '$1$2' & "' & @UserProfileDir & '\\Local\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & StringRegExpReplace(FileGetShortName(@UserProfileDir & "\AppData\Local\"), '\\', '\\\\'), '$1$2' & "' & @UserProfileDir & '\\Local\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & @UserProfileDir & "\\Local Settings\\", '$1$2' & "' & @UserProfileDir & '\\Local\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & StringRegExpReplace(FileGetShortName(@UserProfileDir & "\Local Settings\"), '\\', '\\\\'), '$1$2' & "' & @UserProfileDir & '\\Local\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & @UserProfileDir & "\\AppData\\Roaming\\", '$1$2' & "' & @AppDataDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & StringRegExpReplace(FileGetShortName(@UserProfileDir & "\AppData\Roaming\"), '\\', '\\\\'), '$1$2' & "' & @AppDataDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & @UserProfileDir & "\\Application Data\\", '$1$2' & "' & @AppDataDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & StringRegExpReplace(FileGetShortName(@UserProfileDir & "\Application Data\"), '\\', '\\\\'), '$1$2' & "' & @AppDataDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & @UserProfileDir & "\\Desktop\\", '$1$2' & "' & @DesktopDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & StringRegExpReplace(FileGetShortName(@UserProfileDir & "\Desktop\"), '\\', '\\\\'), '$1$2' & "' & @DesktopDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & @UserProfileDir & "\\Desktop\\", '$1$2' & "' & @DesktopDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & StringRegExpReplace(FileGetShortName(@UserProfileDir & "\Desktop\"), '\\', '\\\\'), '$1$2' & "' & @DesktopDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)([a-z]):\\Users\\Public\\Desktop\\', '$1$2' & "' & @DesktopCommonDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)([a-z]):\\Documents and Settings\\All Users\\Desktop\\', '$1$2' & "' & @DesktopCommonDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & @UserProfileDir & "\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\", '$1$2' & "' & @ProgramsDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & StringRegExpReplace(FileGetShortName(@UserProfileDir & "\AppData\Roaming\Microsoft\\Windows\Start Menu\"), '\\', '\\\\'), '$1$2' & "' & @ProgramsDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & @UserProfileDir & "\\Start Menu\\Programs\\", '$1$2' & "' & @ProgramsDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)' & StringRegExpReplace(FileGetShortName(@UserProfileDir & "\Start Menu\Programs\"), '\\', '\\\\'), '$1$2' & "' & @ProgramsDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)([a-z]):\\Users\\Public\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\', '$1$2' & "' & @ProgramsCommonDir & '\\") $iString = StringRegExpReplace($iString, "(?i)(')" & '("?)([a-z]):\\Documents and Settings\\All Users\\Start Menu\\Programs\\', '$1$2' & "' & @ProgramsCommonDir & '\\") $iString = StringRegExpReplace($iString, "'' & ", '') Return $iString EndFunc ;==>RegFixes Edited December 8, 2010 by Varian Link to comment Share on other sites More sharing options...
Developers Jos Posted December 8, 2010 Developers Share Posted December 8, 2010 enough said .... *click* SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts