Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The package for convenient execution saves user data in the current directory and creates a shortcut. #289

Open
eonun opened this issue Nov 18, 2023 · 0 comments

Comments

@eonun
Copy link

eonun commented Nov 18, 2023

Rename the file ungoogled-chromium_* to bin,And create a new user_data directory.

Create a new run.bat script, type in the following content.

:: by runningcheese
@echo off
@ECHO OFF&(PUSHD "%~DP0")&(REG QUERY "HKU\S-1-5-19">NUL 2>&1)||(
powershell -Command "Start-Process '%~sdpnx0' -Verb RunAs"&&EXIT)

echo set WshShell = WScript.CreateObject("WScript.Shell")>tmp.vbs
echo set oShellLink = WshShell.CreateShortcut("%~dp0" ^& "\chrome.lnk")>>tmp.vbs
echo oShellLink.TargetPath ="%~dp0\bin\chrome.exe">>tmp.vbs
echo oShellLink.Arguments ="--user-data-dir=%~dp0\user_data --allow-outdated-plugins --disable-logging --disable-breakpad">>tmp.vbs
echo oShellLink.WindowStyle ="1">>tmp.vbs
echo oShellLink.IconLocation = "%~dp0\bin\chrome.exe">>tmp.vbs
echo oShellLink.Description = "">>tmp.vbs
echo oShellLink.WorkingDirectory = "%~dp0">>tmp.vbs
echo oShellLink.Save>>tmp.vbs
call tmp.vbs
del /f /q tmp.vbs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant