WshShell.RegWrite sbaseKey & "RegisteredApplications\Google Chrome Portable", _ SbaseKey2 = sbaseKey & "Clients\StartmenuInternet\Google Chrome Portable\" If UCase(Trim(sAction)) = "UNREGISTER" Then Call UnregisterChromePortable If UCase(Trim(sAction)) = "REGISTER" Then Call RegisterChromePortable "Type UNREGISTER To remove.", "Chrome Portable Registration", "REGISTER") SAction = InputBox("Type REGISTER to add Chrome Portable to Default Apps." & _ If UCase(Trim(WScript.Arguments(0))) = "-UNREG" Then Call UnregisterChromePortable If UCase(Trim(WScript.Arguments(0))) = "-REG" Then Call RegisterChromePortable If InStr(sExecPath, " ") > 0 Then sExecPath = """" & sExecPath & """" VbOKOnly + vbInformation, "Register Google Chrome Portable with Default Apps" MsgBox "Please run this script from Chrome Portable folder. 'Quit if GoogleChromePortable.exe is missing in the current folder! SExecPath = sAppPath & "\GoogleChromePortable.exe" SAppPath = oFSO.GetParentFolderName(objFile) Set objFile = oFSO.GetFile(WScript.ScriptFullName) And added other supported URL protocols.ĭim sAction, sAppPath, sExecPath, objFile, oFSO, sbaseKey, sbaseKey2, ArrKeys, regkeyĭim WshShell : Set WshShell = CreateObject("WScript.Shell")ĭim oFS0 : Set oFSO = CreateObject("Scripting.FileSystemObject") 'v1.2 10-Sept-2020 - Fixed ApplicationIcon path. 'v1.1 13-June-2019 - Enclosed file name parameter in double-quotes. 'chromeportable.vbs - created on by Ramesh Srinivasan, 'Registers Google Chrome Portable with Default Programs or Default Apps in Windows To add Google Chrome Portable web browser to Default Apps, use the VBScript below. A fully open source and free platform, it works from any synced cloud folder (DropBox, Google Drive, Box, etc), from your local PC on an internal or external drive, or on any portable storage device (USB flash drive, memory card, portable hard drive, etc) moved between PCs. is a popular portable software solution allowing you to take your favorite software with you. Register Chrome Portable with Default Apps or Default Programs After registering, you can set Chrome Portable as the default browser via Default Apps. This post has a VBScript that will register or unregister Google Chrome Portable (from ) with Default Apps in a single click.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |