Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


What casuses the need to use 'windowsrepair.exe'?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
fade2gray
Cheater
Reputation: 0

Joined: 01 Oct 2010
Posts: 30

PostPosted: Sun Jun 30, 2024 5:08 am    Post subject: What casuses the need to use 'windowsrepair.exe'? Reply with quote

I've not had the need to use windowsrepair.exe, just curious what events may cause the need to use it.

I see this in windowsrepair.lpr ...

Code:

begin
  deleteKey('\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Cheat Engine.exe');
  deleteKey('\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cheatengine-i386.exe');
  deleteKey('\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cheatengine-x86_64.exe');

  deleteKey('\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Cheat Engine.exe');
  deleteKey('\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cheatengine-i386.exe');
  deleteKey('\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cheatengine-x86_64.exe');

  reg:=Tregistry.Create;
  try
    reg.RootKey := HKEY_LOCAL_MACHINE;
    if reg.OpenKey('\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options',false) then
    begin
      reg.deletekey('Cheat Engine.exe');
      reg.deletekey('cheatengine-i386.exe');
      reg.deletekey('cheatengine-x86_64.exe');
    end;

    if reg.OpenKey('\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options',false) then
    begin
      reg.deletekey('Cheat Engine.exe');
      reg.deletekey('cheatengine-i386.exe');
      reg.deletekey('cheatengine-x86_64.exe');
    end;
  finally
    reg.free;
  end;

  if (ParamCount=0) or (ParamStr(1)<>'/s') then
    messagebox(0,'Your windows install should be repaired. Try running Cheat Engine now', 'Windows Repair (CE)',0);
end.


... but the code does not include the 'cheatengine-x86_64-SSE4=AVX2.exe' executable, doesn't it get affected the same way as the other executables?

If 'cheatengine-x86_64-SSE4=AVX2.exe' did turn up in '...\Image File Execution Options\' you wouldn't be able to remove it using windowsrepair.exe, and would have to remove it manually using RegEdit, right?

_________________
I am, and always will be, a CE novice.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25813
Location: The netherlands

PostPosted: Sun Jun 30, 2024 5:12 am    Post subject: Reply with quote

some programs add the cheat engine exe files to that registry, which causes them to be unable to get executed

the sse4 avx version isn't in there yet as those programs also didn't include it yet.

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
fade2gray
Cheater
Reputation: 0

Joined: 01 Oct 2010
Posts: 30

PostPosted: Sun Jun 30, 2024 5:25 am    Post subject: Reply with quote

Dark Byte wrote:
the sse4 avx version isn't in there yet as those programs also didn't include it yet.


I submitted a pull request to have cheatengine-x86_64-SSE4=AVX2.exe included, but if it's not necessary just yet, will it do any harm to include it in my own custom build - just in case? Wink

_________________
I am, and always will be, a CE novice.
Back to top
View user's profile Send private message
luigimud
Newbie cheater
Reputation: 0

Joined: 04 Jul 2024
Posts: 10

PostPosted: Sat Jul 06, 2024 1:17 am    Post subject: Reply with quote

"Including 'cheatengine-x86_64-SSE4=AVX2.exe' in your custom build should not cause any issues and can actually be a proactive measure. By adding it to your windowsrepair.exe script, you ensure that if any future programs decide to block this executable by adding it to the 'Image File Execution Options' registry, your script will already be prepared to remove it.

I tried adding it to the code above, i hope this helps against any potential issues with the cheatengine executable:

begin
deleteKey('\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Cheat Engine.exe');
deleteKey('\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cheatengine-i386.exe');
deleteKey('\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cheatengine-x86_64.exe');
deleteKey('\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cheatengine-x86_64-SSE4-AVX2.exe');

deleteKey('\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Cheat Engine.exe');
deleteKey('\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cheatengine-i386.exe');
deleteKey('\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cheatengine-x86_64.exe');
deleteKey('\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cheatengine-x86_64-SSE4-AVX2.exe');

reg:=Tregistry.Create;
try
reg.RootKey := HKEY_LOCAL_MACHINE;
if reg.OpenKey('\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options',false) then
begin
reg.deletekey('Cheat Engine.exe');
reg.deletekey('cheatengine-i386.exe');
reg.deletekey('cheatengine-x86_64.exe');
reg.deletekey('cheatengine-x86_64-SSE4-AVX2.exe');
end;

if reg.OpenKey('\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options',false) then
begin
reg.deletekey('Cheat Engine.exe');
reg.deletekey('cheatengine-i386.exe');
reg.deletekey('cheatengine-x86_64.exe');
reg.deletekey('cheatengine-x86_64-SSE4-AVX2.exe');
end;
finally
reg.free;
end;

if (ParamCount=0) or (ParamStr(1)<>'/s') then
messagebox(0,'Your windows install should be repaired. Try running Cheat Engine now', 'Windows Repair (CE)',0);
end.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites