Skip to content

Commit

Permalink
Disable annoying Edge “First Run Experience”
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneegans committed Aug 27, 2024
1 parent 203f88a commit e3a05b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ public record class Configuration(
bool DeleteTaskbarIcons,
bool ShowFileExtensions,
bool ShowAllTrayIcons,
HideModes HideFiles
HideModes HideFiles,
bool HideEdgeFre
)
{
public static Configuration Default => new(
Expand Down Expand Up @@ -346,7 +347,8 @@ HideModes HideFiles
DeleteTaskbarIcons: false,
ShowFileExtensions: false,
ShowAllTrayIcons: false,
HideFiles: HideModes.Hidden
HideFiles: HideModes.Hidden,
HideEdgeFre: false
);
}

Expand Down
7 changes: 7 additions & 0 deletions modifier/Optimizations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,5 +307,12 @@ IEnumerable<string> SetExplorerOptions(string rootKey, string subKey)
})
);
}

if (Configuration.HideEdgeFre)
{
appender.Append(
CommandBuilder.RegistryCommand(@"add ""HKLM\SOFTWARE\Policies\Microsoft\Edge"" /v HideFirstRunExperience /t REG_DWORD /d 1 /f")
);
}
}
}

0 comments on commit e3a05b7

Please sign in to comment.