### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

16.0.7

### What operating system are you using?

Windows

### Operating System Version

Windows 10 Build 19043

### What arch are you using?

x64

### Last Known Working Electron version

13.1.2

### Expected Behavior

`app.setAsDefaultProtocolClient(protocol, process.execPath, [path.resolve(process.argv[1]), '--arg']);`
to work as expected.

### Actual Behavior

electron will put quotes around the entire list of arguments instead of each individually (if necessary), so the generated command is something like

"C:\example\node_modules\electron\dist\electron.exe" "c:\example --arg" "%1"

which then leads to an error "Unable to find Electron app at c:\example --args".

### Testcase Gist URL

!!! Please note that by the nature of setAsDefaultProtocolClient this testcase will make a systemwide setting!

https://gist.github.com/a1f2fdbe04624b6f7a6877a89581143c

### Additional Information

This was almost certainly introduced by the "fix" for https://github.com/electron/electron/issues/32141
shell/browser/browser_win.cc
0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
          RegSetValueEx(hard_key, key_name, 0, REG_BINARY,
                        reinterpret_cast<const BYTE*>(disable_startup_binary),
                        sizeof(disable_startup_binary));
        }
      }
    }
  } else {
    
    startup_approved_key.DeleteValue(key_name);
    key.DeleteValue(key_name);
  }
}
Browser::LoginItemSettings Browser::GetLoginItemSettings(
    const LoginItemSettings& options) {
  LoginItemSettings settings;
  std::wstring keyPath = L"Software\\Microsoft\\Windows\\CurrentVersion\\Run";
  base::win::RegKey key(HKEY_CURRENT_USER, keyPath.c_str(), KEY_ALL_ACCESS);
  std::wstring keyVal;
  
  if (!FAILED(key.ReadValue(GetAppUserModelID(), &keyVal))) {
    std::wstring exe = base::UTF16ToWide(options.path);
    if (FormatCommandLineString(&exe, options.args)) {
      settings.open_at_login = keyVal == exe;
    }
  }
  
  
  
  boolean executable_will_launch_at_login = false;