MSEdgeRedirect icon indicating copy to clipboard operation
MSEdgeRedirect copied to clipboard

Launching Edge with --user-data-dir= results in Blocked Unsafe Flag

Open ohouigheighi opened this issue 1 year ago • 2 comments

Preflight Checklist

  • [ ] Microsoft Edge is selected in any "How do you want to open this?" box
  • [ ] I've ran the Cleanup tool and tried another install

Install Type

New Install

Install Mode

Active Mode

ℹ Behavior

Edge will not launch when using --user-data-dir= For example, my Edge shortcut's Target is "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --user-data-dir="C:\Edge-data\test" When I attempt to launch Edge with that shortcut, Edge does not launch - nothing happens. MSEdgeRedirect's AppSecurity.log logs "Blocked Unsafe Flag: --user-data-dir=C:\Edge-data\test"

Is there a way to allow the --user-data-dir flag? Thanks

Microsoft Windows version

Version 23H2 (OS Build 22631.4169)

Other Software

MSEdgeRedirect 0.7.5.3 Update msedge.exe Version 129.0.2792.52 (Official build) (64-bit)

ohouigheighi avatar Sep 23 '24 16:09 ohouigheighi

If you create a registry entry in HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Robert Maehl Software\MSEdgeRedirect called RunUnsafe as a DWORD, with a value of 1 you can bypass the check but this allows all flags.

rcmaehl avatar Sep 24 '24 17:09 rcmaehl

Under HKEY_LOCAL_MACHINE\SOFTWARE\Policies I do not have a Robert Maehl Software Key. I do have a HKEY_LOCAL_MACHINE\SOFTWARE\Robert Maehl Software\MSEdgeRedirect Key, so I tried creating the DWORD with value 1 called RunUnsafe under that existing path, (HKEY_LOCAL_MACHINE\SOFTWARE\Robert Maehl Software\MSEdgeRedirect), but that did not resolve the issue.

Then I tried creating the Keys and DWORD in the location you specified, HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Robert Maehl Software\MSEdgeRedirect but that did not resolve it either.

The same messages are logged in AppSecurity.log. Appreciate the help.

ohouigheighi avatar Sep 26 '24 12:09 ohouigheighi

Added this flag to the next release

rcmaehl avatar Nov 07 '24 03:11 rcmaehl