├── Custom Installs
├── Command Prompt Here (Administrator) (Extended)
│ ├── CommandPromptHereAdministratorExtended.inf
│ ├── cmdAdmin.ico
│ ├── elevate.cmd
│ └── elevate.vbs
├── Command Prompt Here (Administrator)
│ ├── CommandPromptHereAdministrator.inf
│ ├── cmdAdmin.ico
│ ├── elevate.cmd
│ └── elevate.vbs
├── Command Prompt Here (Extended)
│ ├── CommandPromptHereExtended.inf
│ └── cmd.ico
├── Command Prompt Here
│ ├── CommandPromptHere.inf
│ └── cmd.ico
├── CygWin Here (Administrator) (Extended)
│ ├── CygWin.ico
│ ├── CygWin.vbs
│ └── CygWinHereAdministratorExtended.inf
├── CygWin Here (Administrator)
│ ├── CygWin.ico
│ ├── CygWin.vbs
│ └── CygWinHereAdministrator.inf
├── CygWin Here (Extended)
│ ├── CygWin.ico
│ ├── CygWin.vbs
│ └── CygWinHereExtended.inf
├── CygWin Here
│ ├── CygWin.ico
│ ├── CygWin.vbs
│ └── CygWinHere.inf
├── Git Bash Here (x64)
│ ├── Git.ico
│ └── GitBashHere.inf
├── Git Bash Here (x86)
│ ├── Git.ico
│ └── GitBashHere.inf
├── Map Local Drive Here - Static
│ ├── MapLocalDriveHereK.inf
│ ├── MapLocalDriveHereL.inf
│ ├── MapLocalDriveHereM.inf
│ ├── MapLocalDriveHereN.inf
│ ├── MapLocalDriveHereO.inf
│ ├── MapLocalDriveHereP.inf
│ └── mapdrive.ico
├── Map Local Drive Here
│ ├── MapLocalDriveHere - Display Output.inf
│ ├── MapLocalDriveHere.inf
│ ├── mapdrive.bat
│ └── mapdrive.ico
├── Map Network Drive Here
│ ├── MapNetworkDriveHere.inf
│ └── netdrive.ico
├── Start PowerShell Here (Administrator) (Extended)
│ ├── PowerShellAdmin.ico
│ ├── StartPowerShellHereAdministratorExtended.inf
│ ├── elevate.cmd
│ └── elevate.vbs
├── Start PowerShell Here (Administrator)
│ ├── PowerShellAdmin.ico
│ ├── StartPowerShellHereAdministrator.inf
│ ├── elevate.cmd
│ └── elevate.vbs
├── Start PowerShell Here (Extended)
│ ├── PowerShell.ico
│ └── StartPowerShellHereExtended.inf
└── Start PowerShell Here
│ ├── PowerShell.ico
│ └── StartPowerShellHere.inf
├── Default Install.exe
├── Default Installs
├── Default Install (Git, x64) (64 bit)
│ ├── ContextMenuTools.inf
│ ├── Git.ico
│ ├── PowerShell.ico
│ ├── PowerShellAdmin.ico
│ ├── cmd.ico
│ ├── cmdAdmin.ico
│ ├── elevate.cmd
│ └── elevate.vbs
├── Default Install (Git, x86) (32 bit)
│ ├── ContextMenuTools.inf
│ ├── Git.ico
│ ├── PowerShell.ico
│ ├── PowerShellAdmin.ico
│ ├── cmd.ico
│ ├── cmdAdmin.ico
│ ├── elevate.cmd
│ └── elevate.vbs
├── Default Install (No Git)
│ ├── ContextMenuTools.inf
│ ├── PowerShell.ico
│ ├── PowerShellAdmin.ico
│ ├── cmd.ico
│ ├── cmdAdmin.ico
│ ├── elevate.cmd
│ └── elevate.vbs
├── Default Install With Git.bat
├── Default Install Without Git.bat
├── SuperUser Install (Git, x64) (64 bit)
│ ├── ContextMenuTools.inf
│ ├── Git.ico
│ ├── PowerShell.ico
│ ├── PowerShellAdmin.ico
│ ├── cmd.ico
│ ├── cmdAdmin.ico
│ ├── elevate.cmd
│ └── elevate.vbs
├── SuperUser Install (Git, x86) (32 bit)
│ ├── ContextMenuTools.inf
│ ├── Git.ico
│ ├── PowerShell.ico
│ ├── PowerShellAdmin.ico
│ ├── cmd.ico
│ ├── cmdAdmin.ico
│ ├── elevate.cmd
│ └── elevate.vbs
├── SuperUser Install (No Git)
│ ├── ContextMenuTools.inf
│ ├── Git.ico
│ ├── PowerShell.ico
│ ├── PowerShellAdmin.ico
│ ├── cmd.ico
│ ├── cmdAdmin.ico
│ ├── elevate.cmd
│ └── elevate.vbs
├── SuperUser Install With Git.bat
└── SuperUser Install Without Git.bat
├── Images
├── AdministratorCommandPrompt.png
├── ContextMenuTools.ico
├── ContextMenuTools.png
├── Default.png
├── DefaultInstall.png
├── DefaultPrompts Branch - PoshGit.png
├── Git.ico
├── Icon.ico
├── PowerShell.ico
├── PowerShellDefault.png
├── Sample Context Menu (Default Install).png
├── Sample Extended Context Menu (Default Install).png
├── SuperUser.png
├── SuperUserInstall.png
├── Uninstall.ico
├── button_overlay.png
└── overlay.png
├── Installer
└── Installer
│ ├── Installer.isl
│ ├── Installer.isproj
│ ├── Installer.sln
│ └── Installer.v11.suo
├── LICENSE.txt
├── Other Tools
├── Always Show Open With
│ └── AlwaysShowOpenWith.inf
├── Command Description.txt
├── Keep Command Window Scrollable.reg
├── Keep PowerShell Blue.reg
├── KeepCommandWindowScrollable.inf
├── KeepGitBashScrollable.inf
├── KeepPowerShellBlue.inf
├── Return Default Git Context Menu Entries
│ ├── Bash(x64).inf
│ ├── Bash(x86).inf
│ ├── BashAndGUI(x64).inf
│ └── BashAndGUI(x86).inf
├── Source for EXEs
│ ├── Default Install With Git.bat
│ ├── Default Install Without Git.bat
│ ├── Default Install.bat
│ ├── SuperUser Install With Git.bat
│ ├── SuperUser Install Without Git.bat
│ ├── SuperUser Install.bat
│ └── Uninstall.bat
└── UninstallAll.inf
├── README.md
├── Setup.hta
├── SuperUser Install.exe
└── Uninstall.exe
/Custom Installs/Command Prompt Here (Administrator) (Extended)/CommandPromptHereAdministratorExtended.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [CommandPromptHereAdministratorExtendedInstall]
5 | CopyFiles = CommandPromptHereAdministratorExtended.Files.Inf
6 | CopyFiles = CommandPromptHereAdministratorExtended.Files.System
7 | CopyFiles = CommandPromptHereAdministratorExtended.Files.Icon
8 | DelFiles = CommandPromptHereAdministrator.Files.Clean
9 | DelReg = CommandPromptHereAdministrator.Clean
10 | AddReg = CommandPromptHereAdministratorExtended.AddReg
11 | DelReg = cmd.DelReg
12 |
13 | [DefaultInstall]
14 | CopyFiles = CommandPromptHereAdministratorExtended.Files.Inf
15 | CopyFiles = CommandPromptHereAdministratorExtended.Files.System
16 | CopyFiles = CommandPromptHereAdministratorExtended.Files.Icon
17 | DelFiles = CommandPromptHereAdministrator.Files.Clean
18 | DelReg = CommandPromptHereAdministrator.Clean
19 | AddReg = CommandPromptHereAdministratorExtended.AddReg
20 | DelReg = cmd.DelReg
21 |
22 | [DefaultUnInstall]
23 | DelFiles = CommandPromptHereAdministratorExtended.Files.Inf
24 | DelReg = CommandPromptHereAdministratorExtended.DelReg
25 | AddReg = cmd.AddReg
26 |
27 | [SourceDisksNames]
28 | 55="Command Prompt Here (Extended) (Administrator)","",1
29 |
30 | [SourceDisksFiles]
31 | CommandPromptHereAdministratorExtended.INF=55
32 | cmdAdmin.ico=55
33 |
34 | [DestinationDirs]
35 | CommandPromptHereAdministratorExtended.Files.Inf = 17
36 | CommandPromptHereAdministrator.Files.Clean = 17
37 | CommandPromptHereAdministratorExtended.Files.System = 11
38 | CommandPromptHereAdministratorExtended.Files.Icon = 11
39 |
40 | [CommandPromptHereAdministratorExtended.Files.Inf]
41 | CommandPromptHereAdministratorExtended.INF
42 |
43 | [CommandPromptHereAdministratorExtended.Files.System]
44 | Elevate.cmd
45 | Elevate.vbs
46 |
47 | [CommandPromptHereAdministratorExtended.Files.Icon]
48 | cmdAdmin.ico
49 |
50 | [CommandPromptHereAdministrator.Files.Clean]
51 | CommandPromptHereAdministrator.inf
52 |
53 | [CommandPromptHereAdministrator.Clean]
54 | HKLM,%CDHERE%
55 | HKCR,Directory\Shell\CommandPromptHereAdministrator
56 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator
57 | HKCR,Drive\Shell\CommandPromptHereAdministrator
58 |
59 | [CommandPromptHereAdministratorExtended.AddReg]
60 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
61 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
62 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\cmdAdmin.ico"
63 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\CommandPromptHereAdministratorExtended.inf"
64 |
65 | ;Adds entry when right-clicking a Directory
66 | HKCR,Directory\Shell\CommandPromptHereAdministrator,,,"%ContextText%"
67 | HKCR,Directory\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
68 | HKCR,Directory\Shell\CommandPromptHereAdministrator,Extended,,""
69 | HKCR,Directory\Shell\CommandPromptHereAdministrator,NoWorkingDirectory,,""
70 | HKCR,Directory\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
71 |
72 | ;Adds entry when right-clicking "empty space" in a directory
73 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,,,"%ContextText%"
74 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
75 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,Extended,,""
76 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,NoWorkingDirectory,,""
77 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
78 |
79 | ;Adds entry when right-clicking a Drive
80 | HKCR,Drive\Shell\CommandPromptHereAdministrator,,,"%ContextText%"
81 | HKCR,Drive\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
82 | HKCR,Drive\Shell\CommandPromptHereAdministrator,Extended,,""
83 | HKCR,Drive\Shell\CommandPromptHereAdministrator,NoWorkingDirectory,,""
84 | HKCR,Drive\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
85 |
86 | [CommandPromptHereAdministratorExtended.DelReg]
87 | HKLM,%UDHERE%
88 | HKCR,Directory\Shell\CommandPromptHereAdministrator
89 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator
90 | HKCR,Drive\Shell\CommandPromptHereAdministrator
91 |
92 | [cmd.AddReg]
93 | HKCR,Directory\Shell\cmd,,,"@shell32.dll,-8506"
94 | HKCR,Directory\Shell\cmd,Extended,,""
95 | HKCR,Directory\Shell\cmd,NoWorkingDirectory,,""
96 | HKCR,Directory\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
97 |
98 | HKCR,Directory\Background\Shell\cmd,,,"@shell32.dll,-8506"
99 | HKCR,Directory\Background\Shell\cmd,Extended,,""
100 | HKCR,Directory\Background\Shell\cmd,NoWorkingDirectory,,""
101 | HKCR,Directory\Background\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
102 |
103 | HKCR,Drive\Shell\cmd,,,"@shell32.dll,-8506"
104 | HKCR,Drive\Shell\cmd,Extended,,""
105 | HKCR,Drive\Shell\cmd,NoWorkingDirectory,,""
106 | HKCR,Drive\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
107 |
108 | [cmd.DelReg]
109 | HKCR,Directory\Shell\cmd
110 | HKCR,Directory\Background\Shell\cmd
111 | HKCR,Drive\Shell\cmd
112 |
113 | [Strings]
114 | DisplayName="Context Menu: Command Prompt Here (Administrator) (Extended)"
115 | DisplayVersion="1.2"
116 | ContextText="&Command Prompt Here (Administrator)"
117 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CommandPromptHereAdministratorExtended"
118 | CDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CommandPromptHereAdministrator"
119 |
--------------------------------------------------------------------------------
/Custom Installs/Command Prompt Here (Administrator) (Extended)/cmdAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Command Prompt Here (Administrator) (Extended)/cmdAdmin.ico
--------------------------------------------------------------------------------
/Custom Installs/Command Prompt Here (Administrator) (Extended)/elevate.cmd:
--------------------------------------------------------------------------------
1 | @setlocal
2 | @echo off
3 |
4 | set ELEVATE_CMDLINE=%*
5 | set ELEVATE_APP=%1
6 |
7 | start wscript //nologo "%~dpn0.vbs" %*
8 |
--------------------------------------------------------------------------------
/Custom Installs/Command Prompt Here (Administrator) (Extended)/elevate.vbs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Command Prompt Here (Administrator) (Extended)/elevate.vbs
--------------------------------------------------------------------------------
/Custom Installs/Command Prompt Here (Administrator)/CommandPromptHereAdministrator.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [CommandPromptHereAdministratorInstall]
5 | CopyFiles = CommandPromptHereAdministrator.Files.Inf
6 | CopyFiles = CommandPromptHereAdministrator.Files.System
7 | CopyFiles = CommandPromptHereAdministrator.Files.Icon
8 | DelFiles = CommandPromptHereAdministratorExtended.Files.Clean
9 | DelReg = CommandPromptHereAdministratorExtended.Clean
10 | AddReg = CommandPromptHereAdministrator.AddReg
11 | DelReg = cmd.DelReg
12 |
13 | [DefaultInstall]
14 | CopyFiles = CommandPromptHereAdministrator.Files.Inf
15 | CopyFiles = CommandPromptHereAdministrator.Files.System
16 | CopyFiles = CommandPromptHereAdministrator.Files.Icon
17 | DelFiles = CommandPromptHereAdministratorExtended.Files.Clean
18 | DelReg = CommandPromptHereAdministratorExtended.Clean
19 | AddReg = CommandPromptHereAdministrator.AddReg
20 | DelReg = cmd.DelReg
21 |
22 | [DefaultUnInstall]
23 | DelFiles = CommandPromptHereAdministrator.Files.Inf
24 | DelReg = CommandPromptHereAdministrator.DelReg
25 | AddReg = cmd.AddReg
26 |
27 | [SourceDisksNames]
28 | 55="Command Prompt Here","",1
29 |
30 | [SourceDisksFiles]
31 | CommandPromptHereAdministrator.INF = 55
32 | cmdAdmin.ico=55
33 |
34 | [DestinationDirs]
35 | CommandPromptHereAdministrator.Files.Inf = 17
36 | CommandPromptHereAdministratorExtended.Files.Clean = 17
37 | CommandPromptHereAdministrator.Files.System = 11
38 | CommandPromptHereAdministrator.Files.Icon = 11
39 |
40 | [CommandPromptHereAdministrator.Files.Inf]
41 | CommandPromptHereAdministrator.INF
42 |
43 | [CommandPromptHereAdministrator.Files.System]
44 | Elevate.cmd
45 | Elevate.vbs
46 |
47 | [CommandPromptHereAdministrator.Files.Icon]
48 | cmdAdmin.ico
49 |
50 | [CommandPromptHereAdministratorExtended.Files.Clean]
51 | CommandPromptHereAdministratorExtended.inf
52 |
53 | [CommandPromptHereAdministratorExtended.Clean]
54 | HKLM,%UDHERE%Extended
55 | HKCR,Directory\Shell\CommandPromptHereAdministrator
56 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator
57 | HKCR,Drive\Shell\CommandPromptHereAdministrator
58 |
59 | [CommandPromptHereAdministrator.AddReg]
60 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
61 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
62 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\cmdAdmin.ico"
63 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\CommandPromptHereAdministrator.inf"
64 |
65 | ;Adds entry when right-clicking a Directory
66 | HKCR,Directory\Shell\CommandPromptHereAdministrator,,,"%ContextText%"
67 | HKCR,Directory\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
68 | HKCR,Directory\Shell\CommandPromptHereAdministrator,NoWorkingDirectory,,""
69 | HKCR,Directory\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
70 |
71 | ;Adds entry when right-clicking "empty space" in a directory
72 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,,,"%ContextText%"
73 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
74 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,NoWorkingDirectory,,""
75 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
76 |
77 | ;Adds entry when right-clicking a Drive
78 | HKCR,Drive\Shell\CommandPromptHereAdministrator,,,"%ContextText%"
79 | HKCR,Drive\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
80 | HKCR,Drive\Shell\CommandPromptHereAdministrator,NoWorkingDirectory,,""
81 | HKCR,Drive\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
82 |
83 | [CommandPromptHereAdministrator.DelReg]
84 | HKLM,%UDHERE%
85 | HKCR,Directory\Shell\CommandPromptHereAdministrator
86 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator
87 | HKCR,Drive\Shell\CommandPromptHereAdministrator
88 |
89 | [cmd.AddReg]
90 | HKCR,Directory\Shell\cmd,,,"@shell32.dll,-8506"
91 | HKCR,Directory\Shell\cmd,Extended,,""
92 | HKCR,Directory\Shell\cmd,NoWorkingDirectory,,""
93 | HKCR,Directory\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
94 |
95 | HKCR,Directory\Background\Shell\cmd,,,"@shell32.dll,-8506"
96 | HKCR,Directory\Background\Shell\cmd,Extended,,""
97 | HKCR,Directory\Background\Shell\cmd,NoWorkingDirectory,,""
98 | HKCR,Directory\Background\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
99 |
100 | HKCR,Drive\Shell\cmd,,,"@shell32.dll,-8506"
101 | HKCR,Drive\Shell\cmd,Extended,,""
102 | HKCR,Drive\Shell\cmd,NoWorkingDirectory,,""
103 | HKCR,Drive\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
104 |
105 | [cmd.DelReg]
106 | HKCR,Directory\Shell\cmd
107 | HKCR,Directory\Background\Shell\cmd
108 | HKCR,Drive\Shell\cmd
109 |
110 | [Strings]
111 | DisplayName="Context Menu: Command Prompt Here (Administrator)"
112 | DisplayVersion="1.2"
113 | ContextText="&Command Prompt Here (Administrator)"
114 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CommandPromptHereAdministrator"
115 |
--------------------------------------------------------------------------------
/Custom Installs/Command Prompt Here (Administrator)/cmdAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Command Prompt Here (Administrator)/cmdAdmin.ico
--------------------------------------------------------------------------------
/Custom Installs/Command Prompt Here (Administrator)/elevate.cmd:
--------------------------------------------------------------------------------
1 | @setlocal
2 | @echo off
3 |
4 | set ELEVATE_CMDLINE=%*
5 | set ELEVATE_APP=%1
6 |
7 | start wscript //nologo "%~dpn0.vbs" %*
8 |
--------------------------------------------------------------------------------
/Custom Installs/Command Prompt Here (Administrator)/elevate.vbs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Command Prompt Here (Administrator)/elevate.vbs
--------------------------------------------------------------------------------
/Custom Installs/Command Prompt Here (Extended)/CommandPromptHereExtended.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [CommandPromptHereExtendedInstall]
5 | CopyFiles = CommandPromptHereExtended.Files.Inf
6 | CopyFiles = CommandPromptHereExtended.Files.Icon
7 | DelFiles = CommandPromptHere.Files.Clean
8 | DelReg = CommandPromptHere.Clean
9 | AddReg = CommandPromptHereExtended.AddReg
10 | DelReg = cmd.DelReg
11 |
12 | [DefaultInstall]
13 | CopyFiles = CommandPromptHereExtended.Files.Inf
14 | CopyFiles = CommandPromptHereExtended.Files.Icon
15 | DelFiles = CommandPromptHere.Files.Clean
16 | DelReg = CommandPromptHere.Clean
17 | AddReg = CommandPromptHereExtended.AddReg
18 | DelReg = cmd.DelReg
19 |
20 | [DefaultUnInstall]
21 | DelFiles = CommandPromptHereExtended.Files.Inf
22 | DelReg = CommandPromptHereExtended.DelReg
23 | AddReg = cmd.AddReg
24 |
25 | [SourceDisksNames]
26 | 55="Command Prompt Here (Extended)","",1
27 |
28 | [SourceDisksFiles]
29 | CommandPromptHereExtended.INF=55
30 | cmd.ico=55
31 |
32 | [DestinationDirs]
33 | CommandPromptHereExtended.Files.Inf = 17
34 | CommandPromptHere.Files.Clean = 17
35 | CommandPromptHereExtended.Files.Icon = 11
36 |
37 | [CommandPromptHereExtended.Files.Inf]
38 | CommandPromptHereExtended.INF
39 |
40 | [CommandPromptHereExtended.Files.Icon]
41 | cmd.ico
42 |
43 | [CommandPromptHere.Files.Clean]
44 | CommandPromptHere.inf
45 |
46 | [CommandPromptHere.Clean]
47 | HKLM,%CDHERE%
48 | HKCR,Directory\Shell\CommandPromptHere
49 | HKCR,Directory\Background\Shell\CommandPromptHere
50 | HKCR,Drive\Shell\CommandPromptHere
51 |
52 | [CommandPromptHereExtended.AddReg]
53 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
54 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
55 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\cmd.ico"
56 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\CommandPromptHereExtended.inf"
57 |
58 | ;Adds entry when right-clicking a Directory
59 | HKCR,Directory\Shell\CommandPromptHere,,,"%ContextText%"
60 | HKCR,Directory\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
61 | HKCR,Directory\Shell\CommandPromptHere,Extended,,""
62 | HKCR,Directory\Shell\CommandPromptHere,NoWorkingDirectory,,""
63 | HKCR,Directory\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
64 |
65 | ;Adds entry when right-clicking "empty space" in a directory
66 | HKCR,Directory\Background\Shell\CommandPromptHere,,,"%ContextText%"
67 | HKCR,Directory\Background\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
68 | HKCR,Directory\Background\Shell\CommandPromptHere,Extended,,""
69 | HKCR,Directory\Background\Shell\CommandPromptHere,NoWorkingDirectory,,""
70 | HKCR,Directory\Background\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
71 |
72 | ;Adds entry when right-clicking a Drive
73 | HKCR,Drive\Shell\CommandPromptHere,,,"%ContextText%"
74 | HKCR,Drive\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
75 | HKCR,Drive\Shell\CommandPromptHere,Extended,,""
76 | HKCR,Drive\Shell\CommandPromptHere,NoWorkingDirectory,,""
77 | HKCR,Drive\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
78 |
79 | [CommandPromptHereExtended.DelReg]
80 | HKLM,%UDHERE%
81 | HKCR,Directory\Shell\CommandPromptHere
82 | HKCR,Directory\Background\Shell\CommandPromptHere
83 | HKCR,Drive\Shell\CommandPromptHere
84 |
85 | [cmd.AddReg]
86 | HKCR,Directory\Shell\cmd,,,"@shell32.dll,-8506"
87 | HKCR,Directory\Shell\cmd,Extended,,""
88 | HKCR,Directory\Shell\cmd,NoWorkingDirectory,,""
89 | HKCR,Directory\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
90 |
91 | HKCR,Directory\Background\Shell\cmd,,,"@shell32.dll,-8506"
92 | HKCR,Directory\Background\Shell\cmd,Extended,,""
93 | HKCR,Directory\Background\Shell\cmd,NoWorkingDirectory,,""
94 | HKCR,Directory\Background\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
95 |
96 | HKCR,Drive\Shell\cmd,,,"@shell32.dll,-8506"
97 | HKCR,Drive\Shell\cmd,Extended,,""
98 | HKCR,Drive\Shell\cmd,NoWorkingDirectory,,""
99 | HKCR,Drive\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
100 |
101 | [cmd.DelReg]
102 | HKCR,Directory\Shell\cmd
103 | HKCR,Directory\Background\Shell\cmd
104 | HKCR,Drive\Shell\cmd
105 |
106 | [Strings]
107 | DisplayName="Context Menu: Command Prompt Here (Extended)"
108 | DisplayVersion="1.2"
109 | ContextText="&Command Prompt Here"
110 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CommandPromptHereExtended"
111 | CDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CommandPromptHere"
112 |
--------------------------------------------------------------------------------
/Custom Installs/Command Prompt Here (Extended)/cmd.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Command Prompt Here (Extended)/cmd.ico
--------------------------------------------------------------------------------
/Custom Installs/Command Prompt Here/CommandPromptHere.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [CommandPromptHereInstall]
5 | CopyFiles = CommandPromptHere.Files.Inf
6 | CopyFiles = CommandPromptHere.Files.Icon
7 | DelFiles = CommandPromptHereExtended.Files.Clean
8 | DelReg = CommandPromptHereExtended.Clean
9 | AddReg = CommandPromptHere.AddReg
10 | DelReg = cmd.DelReg
11 |
12 | [DefaultInstall]
13 | CopyFiles = CommandPromptHere.Files.Inf
14 | CopyFiles = CommandPromptHere.Files.Icon
15 | DelFiles = CommandPromptHereExtended.Files.Clean
16 | DelReg = CommandPromptHereExtended.Clean
17 | AddReg = CommandPromptHere.AddReg
18 | DelReg = cmd.DelReg
19 |
20 | [DefaultUnInstall]
21 | DelFiles = CommandPromptHere.Files.Inf
22 | DelReg = CommandPromptHere.DelReg
23 | AddReg = cmd.AddReg
24 |
25 | [SourceDisksNames]
26 | 55="Command Prompt Here","",1
27 |
28 | [SourceDisksFiles]
29 | CommandPromptHere.INF=55
30 | cmd.ico=55
31 |
32 | [DestinationDirs]
33 | CommandPromptHere.Files.Inf = 17
34 | CommandPromptHereExtended.Files.Clean = 17
35 | CommandPromptHere.Files.Icon = 11
36 |
37 | [CommandPromptHere.Files.Inf]
38 | CommandPromptHere.INF
39 |
40 | [CommandPromptHere.Files.Icon]
41 | cmd.ico
42 |
43 | [CommandPromptHereExtended.Files.Clean]
44 | CommandPromptHereExtended.inf
45 |
46 | [CommandPromptHereExtended.Clean]
47 | HKLM,%UDHERE%Extended
48 | HKCR,Directory\Shell\CommandPromptHere
49 | HKCR,Directory\Background\Shell\CommandPromptHere
50 | HKCR,Drive\Shell\CommandPromptHere
51 |
52 | [CommandPromptHere.AddReg]
53 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
54 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
55 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\cmd.ico"
56 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\CommandPromptHere.inf"
57 |
58 | ;Adds entry when right-clicking a Directory
59 | HKCR,Directory\Shell\CommandPromptHere,,,"%ContextText%"
60 | HKCR,Directory\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
61 | HKCR,Directory\Shell\CommandPromptHere,NoWorkingDirectory,,""
62 | HKCR,Directory\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
63 |
64 | ;Adds entry when right-clicking "empty space" in a directory
65 | HKCR,Directory\Background\Shell\CommandPromptHere,,,"%ContextText%"
66 | HKCR,Directory\Background\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
67 | HKCR,Directory\Background\Shell\CommandPromptHere,NoWorkingDirectory,,""
68 | HKCR,Directory\Background\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
69 |
70 | ;Adds entry when right-clicking a Drive
71 | HKCR,Drive\Shell\CommandPromptHere,,,"%ContextText%"
72 | HKCR,Drive\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
73 | HKCR,Drive\Shell\CommandPromptHere,NoWorkingDirectory,,""
74 | HKCR,Drive\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
75 |
76 | [CommandPromptHere.DelReg]
77 | HKLM,%UDHERE%
78 | HKCR,Directory\Shell\CommandPromptHere
79 | HKCR,Directory\Background\Shell\CommandPromptHere
80 | HKCR,Drive\Shell\CommandPromptHere
81 |
82 | [cmd.AddReg]
83 | HKCR,Directory\Shell\cmd,,,"@shell32.dll,-8506"
84 | HKCR,Directory\Shell\cmd,Extended,,""
85 | HKCR,Directory\Shell\cmd,NoWorkingDirectory,,""
86 | HKCR,Directory\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
87 |
88 | HKCR,Directory\Background\Shell\cmd,,,"@shell32.dll,-8506"
89 | HKCR,Directory\Background\Shell\cmd,Extended,,""
90 | HKCR,Directory\Background\Shell\cmd,NoWorkingDirectory,,""
91 | HKCR,Directory\Background\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
92 |
93 | HKCR,Drive\Shell\cmd,,,"@shell32.dll,-8506"
94 | HKCR,Drive\Shell\cmd,Extended,,""
95 | HKCR,Drive\Shell\cmd,NoWorkingDirectory,,""
96 | HKCR,Drive\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"" "
97 |
98 | [cmd.DelReg]
99 | HKCR,Directory\Shell\cmd
100 | HKCR,Directory\Background\Shell\cmd
101 | HKCR,Drive\Shell\cmd
102 |
103 | [Strings]
104 | DisplayName="Context Menu: Command Prompt Here"
105 | DisplayVersion="1.2"
106 | ContextText="&Command Prompt Here"
107 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CommandPromptHere"
108 |
--------------------------------------------------------------------------------
/Custom Installs/Command Prompt Here/cmd.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Command Prompt Here/cmd.ico
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here (Administrator) (Extended)/CygWin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/CygWin Here (Administrator) (Extended)/CygWin.ico
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here (Administrator) (Extended)/CygWin.vbs:
--------------------------------------------------------------------------------
1 | Set fso = CreateObject("Scripting.FileSystemObject")
2 | Set shell = CreateObject("WScript.Shell")
3 |
4 | Const TemporaryFolder = 2
5 | linkfile = fso.BuildPath(fso.GetSpecialFolder(TemporaryFolder), "CygWin.lnk")
6 | cygdir = fso.GetParentFolderName(WScript.ScriptFullName)
7 |
8 | ' Dynamically create a shortcut with the current directory as the working directory.
9 | Set link = shell.CreateShortcut(linkfile)
10 | 'link.TargetPath = fso.BuildPath(cygdir, "bin\mintty.exe")
11 | 'link.Arguments = "--class ""cygwin"" --title ""Cygwin64 Terminal"" --exec "
12 | link.TargetPath = fso.BuildPath(cygdir, "bin\bash.exe")
13 | link.Arguments = "--login -i "
14 | link.Description = "CygWin 64 Terminal"
15 | link.Hotkey = "CTRL+ALT+C"
16 | link.IconLocation = fso.BuildPath(cygdir, "Cygwin.ico")
17 | If WScript.Arguments.Length > 0 Then link.WorkingDirectory = WScript.Arguments(0)
18 | link.Save
19 |
20 | Set app = CreateObject("Shell.Application")
21 | app.ShellExecute linkfile
22 |
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here (Administrator) (Extended)/CygWinHereAdministratorExtended.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [CygWinHereInstall]
5 | CopyFiles = CygWinHereAdministratorExtended.Files.Inf
6 | CopyFiles = CygWinHereAdministratorExtended.Files.Icon
7 | AddReg = CygWinHereAdministratorExtended.AddReg
8 |
9 | [DefaultInstall]
10 | CopyFiles = CygWinHereAdministratorExtended.Files.Inf
11 | CopyFiles = CygWinHereAdministratorExtended.Files.Icon
12 | AddReg = CygWinHereAdministratorExtended.AddReg
13 |
14 | [DefaultUnInstall]
15 | DelFiles = CygWinHereAdministratorExtended.Files.Inf
16 | DelReg = CygWinHereAdministratorExtended.DelReg
17 |
18 | [SourceDisksNames]
19 | 55="Start CygWin Here (Administrator)","",1
20 |
21 | [SourceDisksFiles]
22 | CygWinHereAdministratorExtended.INF=55
23 | CygWin.ico=55
24 |
25 | [DestinationDirs]
26 | CygWinHereAdministratorExtended.Files.Inf = 17
27 | CygWinHereAdministratorExtended.Files.Icon = 11
28 |
29 | [CygWinHereAdministratorExtended.Files.Inf]
30 | CygWinHereAdministratorExtended.INF
31 |
32 | [CygWinHereAdministratorExtended.Files.Icon]
33 | CygWin.ico
34 |
35 | [CygWinHereAdministratorExtended.AddReg]
36 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
37 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
38 | HKLM,%UDHERE%,DisplayIcon,,"%11%\CygWin.ico"
39 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\CygWinHereAdministratorExtended.inf"
40 |
41 | ;Adds entry when right-clicking a Directory
42 | HKCR,Directory\Shell\CygWinHereAdministratorExtended,,,"%ContextText%"
43 | HKCR,Directory\Shell\CygWinHereAdministratorExtended,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
44 | HKCR,Directory\Shell\CygWinHereAdministratorExtended,Extended,,""
45 | HKCR,Directory\Shell\CygWinHereAdministratorExtended,NoWorkingDirectory,,""
46 | HKCR,Directory\Shell\CygWinHereAdministratorExtended\command,,0x00020000,"cmd /c Elevate.cmd wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
47 |
48 | ;Adds entry when right-clicking "empty space" in a directory
49 | HKCR,Directory\Background\Shell\CygWinHereAdministratorExtended,,,"%ContextText%"
50 | HKCR,Directory\Background\Shell\CygWinHereAdministratorExtended,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
51 | HKCR,Directory\Background\Shell\CygWinHereAdministratorExtended,Extended,,""
52 | HKCR,Directory\Background\Shell\CygWinHereAdministratorExtended,NoWorkingDirectory,,""
53 | HKCR,Directory\Background\Shell\CygWinHereAdministratorExtended\command,,0x00020000,"cmd /c Elevate.cmd wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
54 |
55 | ;Adds entry when right-clicking a Drive
56 | HKCR,Drive\Shell\CygWinHereAdministratorExtended,,,"%ContextText%"
57 | HKCR,Drive\Shell\CygWinHereAdministratorExtended,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
58 | HKCR,Drive\Shell\CygWinHereAdministratorExtended,Extended,,""
59 | HKCR,Drive\Shell\CygWinHereAdministratorExtended,NoWorkingDirectory,,""
60 | HKCR,Drive\Shell\CygWinHereAdministratorExtended\command,,0x00020000,"cmd /c Elevate.cmd wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
61 |
62 | [CygWinHereAdministratorExtended.DelReg]
63 | HKLM,%UDHERE%
64 |
65 | [Strings]
66 | DisplayName="Context Menu: CygWin Here (Administrator) (Extended)"
67 | DisplayVersion="1.2"
68 | ContextText="Start C&ygWin Here (Administrator)"
69 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CygWinHereAdministratorExtended"
70 |
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here (Administrator)/CygWin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/CygWin Here (Administrator)/CygWin.ico
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here (Administrator)/CygWin.vbs:
--------------------------------------------------------------------------------
1 | Set fso = CreateObject("Scripting.FileSystemObject")
2 | Set shell = CreateObject("WScript.Shell")
3 |
4 | Const TemporaryFolder = 2
5 | linkfile = fso.BuildPath(fso.GetSpecialFolder(TemporaryFolder), "CygWin.lnk")
6 | cygdir = fso.GetParentFolderName(WScript.ScriptFullName)
7 |
8 | ' Dynamically create a shortcut with the current directory as the working directory.
9 | Set link = shell.CreateShortcut(linkfile)
10 | 'link.TargetPath = fso.BuildPath(cygdir, "bin\mintty.exe")
11 | 'link.Arguments = "--class ""cygwin"" --title ""Cygwin64 Terminal"" --exec "
12 | link.TargetPath = fso.BuildPath(cygdir, "bin\bash.exe")
13 | link.Arguments = "--login -i "
14 | link.Description = "CygWin 64 Terminal"
15 | link.Hotkey = "CTRL+ALT+C"
16 | link.IconLocation = fso.BuildPath(cygdir, "Cygwin.ico")
17 | If WScript.Arguments.Length > 0 Then link.WorkingDirectory = WScript.Arguments(0)
18 | link.Save
19 |
20 | Set app = CreateObject("Shell.Application")
21 | app.ShellExecute linkfile
22 |
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here (Administrator)/CygWinHereAdministrator.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [CygWinHereInstall]
5 | CopyFiles = CygWinHereAdministrator.Files.Inf
6 | CopyFiles = CygWinHereAdministrator.Files.Icon
7 | AddReg = CygWinHereAdministrator.AddReg
8 |
9 | [DefaultInstall]
10 | CopyFiles = CygWinHereAdministrator.Files.Inf
11 | CopyFiles = CygWinHereAdministrator.Files.Icon
12 | AddReg = CygWinHereAdministrator.AddReg
13 |
14 | [DefaultUnInstall]
15 | DelFiles = CygWinHereAdministrator.Files.Inf
16 | DelReg = CygWinHereAdministrator.DelReg
17 |
18 | [SourceDisksNames]
19 | 55="Start CygWin Here (Administrator)","",1
20 |
21 | [SourceDisksFiles]
22 | CygWinHereAdministrator.INF=55
23 | CygWin.ico=55
24 |
25 | [DestinationDirs]
26 | CygWinHereAdministrator.Files.Inf = 17
27 | CygWinHereAdministrator.Files.Icon = 11
28 |
29 | [CygWinHereAdministrator.Files.Inf]
30 | CygWinHereAdministrator.INF
31 |
32 | [CygWinHereAdministrator.Files.Icon]
33 | CygWin.ico
34 |
35 | [CygWinHereAdministrator.AddReg]
36 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
37 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
38 | HKLM,%UDHERE%,DisplayIcon,,"%11%\CygWin.ico"
39 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\CygWinHereAdministrator.inf"
40 |
41 | ;Adds entry when right-clicking a Directory
42 | HKCR,Directory\Shell\CygWinHereAdministrator,,,"%ContextText%"
43 | HKCR,Directory\Shell\CygWinHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
44 | HKCR,Directory\Shell\CygWinHereAdministrator,NoWorkingDirectory,,""
45 | HKCR,Directory\Shell\CygWinHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
46 |
47 | ;Adds entry when right-clicking "empty space" in a directory
48 | HKCR,Directory\Background\Shell\CygWinHereAdministrator,,,"%ContextText%"
49 | HKCR,Directory\Background\Shell\CygWinHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
50 | HKCR,Directory\Background\Shell\CygWinHereAdministrator,NoWorkingDirectory,,""
51 | HKCR,Directory\Background\Shell\CygWinHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
52 |
53 | ;Adds entry when right-clicking a Drive
54 | HKCR,Drive\Shell\CygWinHereAdministrator,,,"%ContextText%"
55 | HKCR,Drive\Shell\CygWinHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
56 | HKCR,Drive\Shell\CygWinHereAdministrator,NoWorkingDirectory,,""
57 | HKCR,Drive\Shell\CygWinHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
58 |
59 | [CygWinHereAdministrator.DelReg]
60 | HKLM,%UDHERE%
61 |
62 | [Strings]
63 | DisplayName="Context Menu: CygWin Here (Administrator)"
64 | DisplayVersion="1.2"
65 | ContextText="Start C&ygWin Here (Administrator)"
66 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CygWinHereAdministrator"
67 |
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here (Extended)/CygWin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/CygWin Here (Extended)/CygWin.ico
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here (Extended)/CygWin.vbs:
--------------------------------------------------------------------------------
1 | Set fso = CreateObject("Scripting.FileSystemObject")
2 | Set shell = CreateObject("WScript.Shell")
3 |
4 | Const TemporaryFolder = 2
5 | linkfile = fso.BuildPath(fso.GetSpecialFolder(TemporaryFolder), "CygWin.lnk")
6 | cygdir = fso.GetParentFolderName(WScript.ScriptFullName)
7 |
8 | ' Dynamically create a shortcut with the current directory as the working directory.
9 | Set link = shell.CreateShortcut(linkfile)
10 | 'link.TargetPath = fso.BuildPath(cygdir, "bin\mintty.exe")
11 | 'link.Arguments = "--class ""cygwin"" --title ""Cygwin64 Terminal"" --exec "
12 | link.TargetPath = fso.BuildPath(cygdir, "bin\bash.exe")
13 | link.Arguments = "--login -i "
14 | link.Description = "CygWin 64 Terminal"
15 | link.Hotkey = "CTRL+ALT+C"
16 | link.IconLocation = fso.BuildPath(cygdir, "Cygwin.ico")
17 | If WScript.Arguments.Length > 0 Then link.WorkingDirectory = WScript.Arguments(0)
18 | link.Save
19 |
20 | Set app = CreateObject("Shell.Application")
21 | app.ShellExecute linkfile
22 |
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here (Extended)/CygWinHereExtended.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [CygWinHereInstall]
5 | CopyFiles = CygWinHereExtended.Files.Inf
6 | CopyFiles = CygWinHereExtended.Files.Icon
7 | AddReg = CygWinHereExtended.AddReg
8 |
9 | [DefaultInstall]
10 | CopyFiles = CygWinHereExtended.Files.Inf
11 | CopyFiles = CygWinHereExtended.Files.Icon
12 | AddReg = CygWinHereExtended.AddReg
13 |
14 | [DefaultUnInstall]
15 | DelFiles = CygWinHereExtended.Files.Inf
16 | DelReg = CygWinHereExtended.DelReg
17 |
18 | [SourceDisksNames]
19 | 55="Start CygWin Here","",1
20 |
21 | [SourceDisksFiles]
22 | CygWinHereExtended.INF=55
23 | CygWin.ico=55
24 |
25 | [DestinationDirs]
26 | CygWinHereExtended.Files.Inf = 17
27 | CygWinHereExtended.Files.Icon = 11
28 |
29 | [CygWinHereExtended.Files.Inf]
30 | CygWinHereExtended.INF
31 |
32 | [CygWinHereExtended.Files.Icon]
33 | CygWin.ico
34 |
35 | [CygWinHereExtended.AddReg]
36 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
37 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
38 | HKLM,%UDHERE%,DisplayIcon,,"%11%\CygWin.ico"
39 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\CygWinHereExtended.inf"
40 |
41 | ;Adds entry when right-clicking a Directory
42 | HKCR,Directory\Shell\CygWinHereExtended,,,"%ContextText%"
43 | HKCR,Directory\Shell\CygWinHereExtended,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
44 | HKCR,Directory\Shell\CygWinHereExtended,Extended,,""
45 | HKCR,Directory\Shell\CygWinHereExtended\command,,0x00020000,"wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
46 |
47 | ;Adds entry when right-clicking "empty space" in a directory
48 | HKCR,Directory\Background\Shell\CygWinHereExtended,,,"%ContextText%"
49 | HKCR,Directory\Background\Shell\CygWinHereExtended,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
50 | HKCR,Directory\Background\Shell\CygWinHereExtended,Extended,,""
51 | HKCR,Directory\Background\Shell\CygWinHereExtended\command,,0x00020000,"wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
52 |
53 | ;Adds entry when right-clicking a Drive
54 | HKCR,Drive\Shell\CygWinHereExtended,,,"%ContextText%"
55 | HKCR,Drive\Shell\CygWinHereExtended,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
56 | HKCR,Drive\Shell\CygWinHereExtended,Extended,,""
57 | HKCR,Drive\Shell\CygWinHereExtended\command,,0x00020000,"wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
58 |
59 | [CygWinHereExtended.DelReg]
60 | HKLM,%UDHERE%
61 |
62 | [Strings]
63 | DisplayName="Context Menu: CygWin Here (Extended)"
64 | DisplayVersion="1.2"
65 | ContextText="Start C&ygWin Here"
66 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CygWinHereExtended"
67 |
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here/CygWin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/CygWin Here/CygWin.ico
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here/CygWin.vbs:
--------------------------------------------------------------------------------
1 | Set fso = CreateObject("Scripting.FileSystemObject")
2 | Set shell = CreateObject("WScript.Shell")
3 |
4 | Const TemporaryFolder = 2
5 | linkfile = fso.BuildPath(fso.GetSpecialFolder(TemporaryFolder), "CygWin.lnk")
6 | cygdir = fso.GetParentFolderName(WScript.ScriptFullName)
7 |
8 | ' Dynamically create a shortcut with the current directory as the working directory.
9 | Set link = shell.CreateShortcut(linkfile)
10 | 'link.TargetPath = fso.BuildPath(cygdir, "bin\mintty.exe")
11 | 'link.Arguments = "--class ""cygwin"" --title ""Cygwin64 Terminal"" --exec "
12 | link.TargetPath = fso.BuildPath(cygdir, "bin\bash.exe")
13 | link.Arguments = "--login -i "
14 | link.Description = "CygWin 64 Terminal"
15 | link.Hotkey = "CTRL+ALT+C"
16 | link.IconLocation = fso.BuildPath(cygdir, "Cygwin.ico")
17 | If WScript.Arguments.Length > 0 Then link.WorkingDirectory = WScript.Arguments(0)
18 | link.Save
19 |
20 | Set app = CreateObject("Shell.Application")
21 | app.ShellExecute linkfile
22 |
--------------------------------------------------------------------------------
/Custom Installs/CygWin Here/CygWinHere.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [CygWinHereInstall]
5 | CopyFiles = CygWinHere.Files.Inf
6 | CopyFiles = CygWinHere.Files.Icon
7 | AddReg = CygWinHere.AddReg
8 |
9 | [DefaultInstall]
10 | CopyFiles = CygWinHere.Files.Inf
11 | CopyFiles = CygWinHere.Files.Icon
12 | AddReg = CygWinHere.AddReg
13 |
14 | [DefaultUnInstall]
15 | DelFiles = CygWinHere.Files.Inf
16 | DelReg = CygWinHere.DelReg
17 |
18 | [SourceDisksNames]
19 | 55="Start CygWin Here","",1
20 |
21 | [SourceDisksFiles]
22 | CygWinHere.INF=55
23 | CygWin.ico=55
24 |
25 | [DestinationDirs]
26 | CygWinHere.Files.Inf = 17
27 | CygWinHere.Files.Icon = 11
28 |
29 | [CygWinHere.Files.Inf]
30 | CygWinHere.INF
31 |
32 | [CygWinHere.Files.Icon]
33 | CygWin.ico
34 |
35 | [CygWinHere.AddReg]
36 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
37 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
38 | HKLM,%UDHERE%,DisplayIcon,,"%11%\CygWin.ico"
39 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\CygWinHere.inf"
40 |
41 | ;Adds entry when right-clicking a Directory
42 | HKCR,Directory\Shell\CygWinHere,,,"%ContextText%"
43 | HKCR,Directory\Shell\CygWinHere,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
44 | HKCR,Directory\Shell\CygWinHere\command,,0x00020000,"wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
45 |
46 | ;Adds entry when right-clicking "empty space" in a directory
47 | HKCR,Directory\Background\Shell\CygWinHere,,,"%ContextText%"
48 | HKCR,Directory\Background\Shell\CygWinHere,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
49 | HKCR,Directory\Background\Shell\CygWinHere\command,,0x00020000,"wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
50 |
51 | ;Adds entry when right-clicking a Drive
52 | HKCR,Drive\Shell\CygWinHere,,,"%ContextText%"
53 | HKCR,Drive\Shell\CygWinHere,Icon,0x00020000,"%SystemRoot%\System32\CygWin.ico"
54 | HKCR,Drive\Shell\CygWinHere\command,,0x00020000,"wscript ""%SystemDrive%\CygWin\Cygwin.vbs"" ""%V"" "
55 |
56 | [CygWinHere.DelReg]
57 | HKLM,%UDHERE%
58 |
59 | [Strings]
60 | DisplayName="Context Menu: CygWin Here"
61 | DisplayVersion="1.2"
62 | ContextText="Start C&ygWin Here"
63 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CygWinHere"
64 |
--------------------------------------------------------------------------------
/Custom Installs/Git Bash Here (x64)/Git.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Git Bash Here (x64)/Git.ico
--------------------------------------------------------------------------------
/Custom Installs/Git Bash Here (x64)/GitBashHere.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [GitBashHereInstall]
5 | CopyFiles = GitBashHere.Files.Inf
6 | CopyFiles = GitBashHere.Files.Icon
7 | AddReg = GitBashHere.AddReg
8 |
9 | [DefaultInstall]
10 | CopyFiles = GitBashHere.Files.Inf
11 | CopyFiles = GitBashHere.Files.Icon
12 | AddReg = GitBashHere.AddReg
13 |
14 | [DefaultUnInstall]
15 | DelFiles = GitBashHere.Files.Inf
16 | DelReg = GitBashHere.DelReg
17 |
18 | [SourceDisksNames]
19 | 55="Git Bash Here","",1
20 |
21 | [SourceDisksFiles]
22 | GitBashHere.INF=55
23 | Git.ico=55
24 |
25 | [DestinationDirs]
26 | GitBashHere.Files.Inf = 17
27 | GitBashHere.Files.Icon = 11
28 |
29 | [GitBashHere.Files.Inf]
30 | GitBashHere.INF
31 |
32 | [GitBashHere.Files.Icon]
33 | Git.ico
34 |
35 | [GitBashHere.AddReg]
36 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
37 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
38 | HKLM,%UDHERE%,DisplayIcon,,"%11%\Git.ico"
39 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\GitBashHere.inf"
40 |
41 | ;Adds entry when right-clicking a Directory
42 | HKCR,Directory\Shell\Git_Shell,,,"%ContextText%"
43 | HKCR,Directory\Shell\Git_Shell,Icon,0x00020000,"%SystemRoot%\System32\Git.ico"
44 | HKCR,Directory\Shell\Git_Shell\command,,0x00020000,"wscript ""%24%\Program Files (x86)\Git\Git Bash.vbs"" ""%V"" "
45 |
46 | ;Adds entry when right-clicking "empty space" in a directory
47 | HKCR,Directory\Background\Shell\Git_Shell,,,"%ContextText%"
48 | HKCR,Directory\Background\Shell\Git_Shell,Icon,0x00020000,"%SystemRoot%\System32\Git.ico"
49 | HKCR,Directory\Background\Shell\Git_Shell\command,,0x00020000,"wscript ""%24%\Program Files (x86)\Git\Git Bash.vbs"" ""%V"" "
50 |
51 | ;Adds entry when right-clicking a Drive
52 | HKCR,Drive\Shell\Git_Shell,,,"%ContextText%"
53 | HKCR,Drive\Shell\Git_Shell,Icon,0x00020000,"%SystemRoot%\System32\Git.ico"
54 | HKCR,Drive\Shell\Git_Shell\command,,0x00020000,"wscript ""%24%\Program Files (x86)\Git\Git Bash.vbs"" ""%V"" "
55 |
56 | [GitBashHere.DelReg]
57 | HKLM,%UDHERE%
58 | HKCR,Directory\Shell\Git_Shell
59 | HKCR,Directory\Background\Shell\Git_Shell
60 | HKCR,Drive\Shell\Git_Shell
61 |
62 | [Strings]
63 | DisplayName="Context Menu: Git Bash Here"
64 | DisplayVersion="1.2"
65 | ContextText="&Git Bash Here"
66 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\GitBashHere"
67 |
--------------------------------------------------------------------------------
/Custom Installs/Git Bash Here (x86)/Git.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Git Bash Here (x86)/Git.ico
--------------------------------------------------------------------------------
/Custom Installs/Git Bash Here (x86)/GitBashHere.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [GitBashHereInstall]
5 | CopyFiles = GitBashHere.Files.Inf
6 | CopyFiles = GitBashHere.Files.Icon
7 | AddReg = GitBashHere.AddReg
8 |
9 | [DefaultInstall]
10 | CopyFiles = GitBashHere.Files.Inf
11 | CopyFiles = GitBashHere.Files.Icon
12 | AddReg = GitBashHere.AddReg
13 |
14 | [DefaultUnInstall]
15 | DelFiles = GitBashHere.Files.Inf
16 | DelReg = GitBashHere.DelReg
17 |
18 | [SourceDisksNames]
19 | 55="Git Bash Here","",1
20 |
21 | [SourceDisksFiles]
22 | GitBashHere.INF=55
23 | Git.ico=55
24 |
25 | [DestinationDirs]
26 | GitBashHere.Files.Inf = 17
27 | GitBashHere.Files.Icon = 11
28 |
29 | [GitBashHere.Files.Inf]
30 | GitBashHere.INF
31 |
32 | [GitBashHere.Files.Icon]
33 | Git.ico
34 |
35 | [GitBashHere.AddReg]
36 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
37 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
38 | HKLM,%UDHERE%,DisplayIcon,,"%11%\Git.ico"
39 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\GitBashHere.inf"
40 |
41 | ;Adds entry when right-clicking a Directory
42 | HKCR,Directory\Shell\Git_Shell,,,"%ContextText%"
43 | HKCR,Directory\Shell\Git_Shell,Icon,0x00020000,"%SystemRoot%\System32\Git.ico"
44 | HKCR,Directory\Shell\Git_Shell\command,,0x00020000,"wscript ""%24%\Program Files\Git\Git Bash.vbs"" ""%V"" "
45 |
46 | ;Adds entry when right-clicking "empty space" in a directory
47 | HKCR,Directory\Background\Shell\Git_Shell,,,"%ContextText%"
48 | HKCR,Directory\Background\Shell\Git_Shell,Icon,0x00020000,"%SystemRoot%\System32\Git.ico"
49 | HKCR,Directory\Background\Shell\Git_Shell\command,,0x00020000,"wscript ""%24%\Program Files\Git\Git Bash.vbs"" ""%V"" "
50 |
51 | ;Adds entry when right-clicking a Drive
52 | HKCR,Drive\Shell\Git_Shell,,,"%ContextText%"
53 | HKCR,Drive\Shell\Git_Shell,Icon,0x00020000,"%SystemRoot%\System32\Git.ico"
54 | HKCR,Drive\Shell\Git_Shell\command,,0x00020000,"wscript ""%24%\Program Files\Git\Git Bash.vbs"" ""%V"" "
55 |
56 | [GitBashHere.DelReg]
57 | HKLM,%UDHERE%
58 | HKCR,Directory\Shell\Git_Shell
59 | HKCR,Directory\Background\Shell\Git_Shell
60 | HKCR,Drive\Shell\Git_Shell
61 |
62 | [Strings]
63 | DisplayName="Context Menu: Git Bash Here"
64 | DisplayVersion="1.2"
65 | ContextText="&Git Bash Here"
66 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\GitBashHere"
67 |
--------------------------------------------------------------------------------
/Custom Installs/Map Local Drive Here - Static/MapLocalDriveHereK.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [MapLocalDriveHereKInstall]
5 | CopyFiles = MapLocalDriveHereK.Files.Inf
6 | CopyFiles = MapLocalDriveHereK.Files.Icon
7 | DelFiles = MapLocalDriveHereKExtended.Files.Clean
8 | DelReg = MapLocalDriveHereKExtended.Clean
9 | AddReg = MapLocalDriveHereK.AddReg
10 |
11 | [DefaultInstall]
12 | CopyFiles = MapLocalDriveHereK.Files.Inf
13 | CopyFiles = MapLocalDriveHereK.Files.Icon
14 | DelFiles = MapLocalDriveHereKExtended.Files.Clean
15 | DelReg = MapLocalDriveHereKExtended.Clean
16 | AddReg = MapLocalDriveHereK.AddReg
17 |
18 | [DefaultUnInstall]
19 | DelFiles = MapLocalDriveHereK.Files.Inf
20 | DelReg = MapLocalDriveHereK.DelReg
21 |
22 | [SourceDisksNames]
23 | 55="Map Drive Here","",1
24 |
25 | [SourceDisksFiles]
26 | MapLocalDriveHereK.INF=55
27 | mapdrive.ico=55
28 |
29 | [DestinationDirs]
30 | MapLocalDriveHereK.Files.Inf = 17
31 | MapLocalDriveHereKExtended.Files.Clean = 17
32 | MapLocalDriveHereK.Files.Icon = 11
33 |
34 | [MapLocalDriveHereK.Files.Inf]
35 | MapLocalDriveHereK.INF
36 |
37 | [MapLocalDriveHereK.Files.Icon]
38 | mapdrive.ico
39 |
40 | [MapLocalDriveHereKExtended.Files.Clean]
41 | MapLocalDriveHereKExtended.inf
42 |
43 | [MapLocalDriveHereKExtended.Clean]
44 | HKLM,%UDHERE%Extended
45 | HKCR,Directory\Shell\MapLocalDriveHereK
46 | HKCR,Directory\Background\Shell\MapLocalDriveHereK
47 | HKCR,Drive\Shell\MapLocalDriveHereK
48 |
49 | [MapLocalDriveHereK.AddReg]
50 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
51 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
52 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\mapdrive.ico"
53 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\MapLocalDriveHereK.inf"
54 |
55 | ;Adds entry when right-clicking a Directory
56 | HKCR,Directory\Shell\MapLocalDriveHereK,,,"%ContextText%"
57 | HKCR,Directory\Shell\MapLocalDriveHereK,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
58 | HKCR,Directory\Shell\MapLocalDriveHereK,NoWorkingDirectory,,""
59 | HKCR,Directory\Shell\MapLocalDriveHereK\command,,0x00020000,"cmd /c subst K: /D & subst K: ""%V"" "
60 |
61 | ;Adds entry when right-clicking "empty space" in a directory
62 | HKCR,Directory\Background\Shell\MapLocalDriveHereK,,,"%ContextText%"
63 | HKCR,Directory\Background\Shell\MapLocalDriveHereK,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
64 | HKCR,Directory\Background\Shell\MapLocalDriveHereK,NoWorkingDirectory,,""
65 | HKCR,Directory\Background\Shell\MapLocalDriveHereK\command,,0x00020000,"cmd /c subst K: /D & subst K: ""%V"" "
66 |
67 | ;Adds entry when right-clicking a Drive
68 | HKCR,Drive\Shell\MapLocalDriveHereK,,,"%RemoveText%"
69 | HKCR,Drive\Shell\MapLocalDriveHereK,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
70 | HKCR,Drive\Shell\MapLocalDriveHereK,NoWorkingDirectory,,""
71 | HKCR,Drive\Shell\MapLocalDriveHereK\command,,0x00020000,"cmd /c subst K: /D"
72 |
73 | [MapLocalDriveHereK.DelReg]
74 | HKLM,%UDHERE%
75 | HKCR,Directory\Shell\MapLocalDriveHereK
76 | HKCR,Directory\Background\Shell\MapLocalDriveHereK
77 | HKCR,Drive\Shell\MapLocalDriveHereK
78 |
79 | [Strings]
80 | DisplayName="Context Menu: Map Local Drive Here: K"
81 | DisplayVersion="1.2"
82 | ContextText="Map &Local Drive Here: K"
83 | RemoveText="Remove Mapped &Local Drive: K"
84 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\MapLocalDriveHereK"
85 |
--------------------------------------------------------------------------------
/Custom Installs/Map Local Drive Here - Static/MapLocalDriveHereL.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [MapLocalDriveHereLInstall]
5 | CopyFiles = MapLocalDriveHereL.Files.Inf
6 | CopyFiles = MapLocalDriveHereL.Files.Icon
7 | DelFiles = MapLocalDriveHereLExtended.Files.Clean
8 | DelReg = MapLocalDriveHereLExtended.Clean
9 | AddReg = MapLocalDriveHereL.AddReg
10 |
11 | [DefaultInstall]
12 | CopyFiles = MapLocalDriveHereL.Files.Inf
13 | CopyFiles = MapLocalDriveHereL.Files.Icon
14 | DelFiles = MapLocalDriveHereLExtended.Files.Clean
15 | DelReg = MapLocalDriveHereLExtended.Clean
16 | AddReg = MapLocalDriveHereL.AddReg
17 |
18 | [DefaultUnInstall]
19 | DelFiles = MapLocalDriveHereL.Files.Inf
20 | DelReg = MapLocalDriveHereL.DelReg
21 |
22 | [SourceDisksNames]
23 | 55="Map Drive Here","",1
24 |
25 | [SourceDisksFiles]
26 | MapLocalDriveHereL.INF=55
27 | mapdrive.ico=55
28 |
29 | [DestinationDirs]
30 | MapLocalDriveHereL.Files.Inf = 17
31 | MapLocalDriveHereLExtended.Files.Clean = 17
32 | MapLocalDriveHereL.Files.Icon = 11
33 |
34 | [MapLocalDriveHereL.Files.Inf]
35 | MapLocalDriveHereL.INF
36 |
37 | [MapLocalDriveHereL.Files.Icon]
38 | mapdrive.ico
39 |
40 | [MapLocalDriveHereLExtended.Files.Clean]
41 | MapLocalDriveHereLExtended.inf
42 |
43 | [MapLocalDriveHereLExtended.Clean]
44 | HKLM,%UDHERE%Extended
45 | HKCR,Directory\Shell\MapLocalDriveHereL
46 | HKCR,Directory\Background\Shell\MapLocalDriveHereL
47 | HKCR,Drive\Shell\MapLocalDriveHereL
48 |
49 | [MapLocalDriveHereL.AddReg]
50 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
51 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
52 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\mapdrive.ico"
53 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\MapLocalDriveHereL.inf"
54 |
55 | ;Adds entry when right-clicking a Directory
56 | HKCR,Directory\Shell\MapLocalDriveHereL,,,"%ContextText%"
57 | HKCR,Directory\Shell\MapLocalDriveHereL,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
58 | HKCR,Directory\Shell\MapLocalDriveHereL,NoWorkingDirectory,,""
59 | HKCR,Directory\Shell\MapLocalDriveHereL\command,,0x00020000,"cmd /c subst L: /D & subst L: ""%V"" "
60 |
61 | ;Adds entry when right-clicking "empty space" in a directory
62 | HKCR,Directory\Background\Shell\MapLocalDriveHereL,,,"%ContextText%"
63 | HKCR,Directory\Background\Shell\MapLocalDriveHereL,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
64 | HKCR,Directory\Background\Shell\MapLocalDriveHereL,NoWorkingDirectory,,""
65 | HKCR,Directory\Background\Shell\MapLocalDriveHereL\command,,0x00020000,"cmd /c subst L: /D & subst L: ""%V"" "
66 |
67 | ;Adds entry when right-clicking a Drive
68 | HKCR,Drive\Shell\MapLocalDriveHereL,,,"%RemoveText%"
69 | HKCR,Drive\Shell\MapLocalDriveHereL,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
70 | HKCR,Drive\Shell\MapLocalDriveHereL,NoWorkingDirectory,,""
71 | HKCR,Drive\Shell\MapLocalDriveHereL\command,,0x00020000,"cmd /c subst L: /D"
72 |
73 | [MapLocalDriveHereL.DelReg]
74 | HKLM,%UDHERE%
75 | HKCR,Directory\Shell\MapLocalDriveHereL
76 | HKCR,Directory\Background\Shell\MapLocalDriveHereL
77 | HKCR,Drive\Shell\MapLocalDriveHereL
78 |
79 | [Strings]
80 | DisplayName="Context Menu: Map Local Drive Here: L"
81 | DisplayVersion="1.2"
82 | ContextText="Map &Local Drive Here: L"
83 | RemoveText="Remove Mapped &Local Drive: L"
84 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\MapLocalDriveHereL"
85 |
--------------------------------------------------------------------------------
/Custom Installs/Map Local Drive Here - Static/MapLocalDriveHereM.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [MapLocalDriveHereMInstall]
5 | CopyFiles = MapLocalDriveHereM.Files.Inf
6 | CopyFiles = MapLocalDriveHereM.Files.Icon
7 | DelFiles = MapLocalDriveHereMExtended.Files.Clean
8 | DelReg = MapLocalDriveHereMExtended.Clean
9 | AddReg = MapLocalDriveHereM.AddReg
10 |
11 | [DefaultInstall]
12 | CopyFiles = MapLocalDriveHereM.Files.Inf
13 | CopyFiles = MapLocalDriveHereM.Files.Icon
14 | DelFiles = MapLocalDriveHereMExtended.Files.Clean
15 | DelReg = MapLocalDriveHereMExtended.Clean
16 | AddReg = MapLocalDriveHereM.AddReg
17 |
18 | [DefaultUnInstall]
19 | DelFiles = MapLocalDriveHereM.Files.Inf
20 | DelReg = MapLocalDriveHereM.DelReg
21 |
22 | [SourceDisksNames]
23 | 55="Map Drive Here","",1
24 |
25 | [SourceDisksFiles]
26 | MapLocalDriveHereM.INF=55
27 | mapdrive.ico=55
28 |
29 | [DestinationDirs]
30 | MapLocalDriveHereM.Files.Inf = 17
31 | MapLocalDriveHereMExtended.Files.Clean = 17
32 | MapLocalDriveHereM.Files.Icon = 11
33 |
34 | [MapLocalDriveHereM.Files.Inf]
35 | MapLocalDriveHereM.INF
36 |
37 | [MapLocalDriveHereM.Files.Icon]
38 | mapdrive.ico
39 |
40 | [MapLocalDriveHereMExtended.Files.Clean]
41 | MapLocalDriveHereMExtended.inf
42 |
43 | [MapLocalDriveHereMExtended.Clean]
44 | HKLM,%UDHERE%Extended
45 | HKCR,Directory\Shell\MapLocalDriveHereM
46 | HKCR,Directory\Background\Shell\MapLocalDriveHereM
47 | HKCR,Drive\Shell\MapLocalDriveHereM
48 |
49 | [MapLocalDriveHereM.AddReg]
50 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
51 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
52 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\mapdrive.ico"
53 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\MapLocalDriveHereM.inf"
54 |
55 | ;Adds entry when right-clicking a Directory
56 | HKCR,Directory\Shell\MapLocalDriveHereM,,,"%ContextText%"
57 | HKCR,Directory\Shell\MapLocalDriveHereM,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
58 | HKCR,Directory\Shell\MapLocalDriveHereM,NoWorkingDirectory,,""
59 | HKCR,Directory\Shell\MapLocalDriveHereM\command,,0x00020000,"cmd /c subst M: /D & subst M: ""%V"" "
60 |
61 | ;Adds entry when right-clicking "empty space" in a directory
62 | HKCR,Directory\Background\Shell\MapLocalDriveHereM,,,"%ContextText%"
63 | HKCR,Directory\Background\Shell\MapLocalDriveHereM,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
64 | HKCR,Directory\Background\Shell\MapLocalDriveHereM,NoWorkingDirectory,,""
65 | HKCR,Directory\Background\Shell\MapLocalDriveHereM\command,,0x00020000,"cmd /c subst M: /D & subst M: ""%V"" "
66 |
67 | ;Adds entry when right-clicking a Drive
68 | HKCR,Drive\Shell\MapLocalDriveHereM,,,"%RemoveText%"
69 | HKCR,Drive\Shell\MapLocalDriveHereM,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
70 | HKCR,Drive\Shell\MapLocalDriveHereM,NoWorkingDirectory,,""
71 | HKCR,Drive\Shell\MapLocalDriveHereM\command,,0x00020000,"cmd /c subst M: /D"
72 |
73 | [MapLocalDriveHereM.DelReg]
74 | HKLM,%UDHERE%
75 | HKCR,Directory\Shell\MapLocalDriveHereM
76 | HKCR,Directory\Background\Shell\MapLocalDriveHereM
77 | HKCR,Drive\Shell\MapLocalDriveHereM
78 |
79 | [Strings]
80 | DisplayName="Context Menu: Map Local Drive Here: M"
81 | DisplayVersion="1.2"
82 | ContextText="Map &Local Drive Here: M"
83 | RemoveText="Remove Mapped &Local Drive: M"
84 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\MapLocalDriveHereM"
85 |
--------------------------------------------------------------------------------
/Custom Installs/Map Local Drive Here - Static/MapLocalDriveHereN.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [MapLocalDriveHereNInstall]
5 | CopyFiles = MapLocalDriveHereN.Files.Inf
6 | CopyFiles = MapLocalDriveHereN.Files.Icon
7 | DelFiles = MapLocalDriveHereNExtended.Files.Clean
8 | DelReg = MapLocalDriveHereNExtended.Clean
9 | AddReg = MapLocalDriveHereN.AddReg
10 |
11 | [DefaultInstall]
12 | CopyFiles = MapLocalDriveHereN.Files.Inf
13 | CopyFiles = MapLocalDriveHereN.Files.Icon
14 | DelFiles = MapLocalDriveHereNExtended.Files.Clean
15 | DelReg = MapLocalDriveHereNExtended.Clean
16 | AddReg = MapLocalDriveHereN.AddReg
17 |
18 | [DefaultUnInstall]
19 | DelFiles = MapLocalDriveHereN.Files.Inf
20 | DelReg = MapLocalDriveHereN.DelReg
21 |
22 | [SourceDisksNames]
23 | 55="Map Drive Here","",1
24 |
25 | [SourceDisksFiles]
26 | MapLocalDriveHereN.INF=55
27 | mapdrive.ico=55
28 |
29 | [DestinationDirs]
30 | MapLocalDriveHereN.Files.Inf = 17
31 | MapLocalDriveHereNExtended.Files.Clean = 17
32 | MapLocalDriveHereN.Files.Icon = 11
33 |
34 | [MapLocalDriveHereN.Files.Inf]
35 | MapLocalDriveHereN.INF
36 |
37 | [MapLocalDriveHereN.Files.Icon]
38 | mapdrive.ico
39 |
40 | [MapLocalDriveHereNExtended.Files.Clean]
41 | MapLocalDriveHereNExtended.inf
42 |
43 | [MapLocalDriveHereNExtended.Clean]
44 | HKLM,%UDHERE%Extended
45 | HKCR,Directory\Shell\MapLocalDriveHereN
46 | HKCR,Directory\Background\Shell\MapLocalDriveHereN
47 | HKCR,Drive\Shell\MapLocalDriveHereN
48 |
49 | [MapLocalDriveHereN.AddReg]
50 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
51 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
52 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\mapdrive.ico"
53 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\MapLocalDriveHereN.inf"
54 |
55 | ;Adds entry when right-clicking a Directory
56 | HKCR,Directory\Shell\MapLocalDriveHereN,,,"%ContextText%"
57 | HKCR,Directory\Shell\MapLocalDriveHereN,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
58 | HKCR,Directory\Shell\MapLocalDriveHereN,NoWorkingDirectory,,""
59 | HKCR,Directory\Shell\MapLocalDriveHereN\command,,0x00020000,"cmd /c subst N: /D & subst N: ""%V"" "
60 |
61 | ;Adds entry when right-clicking "empty space" in a directory
62 | HKCR,Directory\Background\Shell\MapLocalDriveHereN,,,"%ContextText%"
63 | HKCR,Directory\Background\Shell\MapLocalDriveHereN,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
64 | HKCR,Directory\Background\Shell\MapLocalDriveHereN,NoWorkingDirectory,,""
65 | HKCR,Directory\Background\Shell\MapLocalDriveHereN\command,,0x00020000,"cmd /c subst N: /D & subst N: ""%V"" "
66 |
67 | ;Adds entry when right-clicking a Drive
68 | HKCR,Drive\Shell\MapLocalDriveHereN,,,"%RemoveText%"
69 | HKCR,Drive\Shell\MapLocalDriveHereN,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
70 | HKCR,Drive\Shell\MapLocalDriveHereN,NoWorkingDirectory,,""
71 | HKCR,Drive\Shell\MapLocalDriveHereN\command,,0x00020000,"cmd /c subst N: /D"
72 |
73 | [MapLocalDriveHereN.DelReg]
74 | HKLM,%UDHERE%
75 | HKCR,Directory\Shell\MapLocalDriveHereN
76 | HKCR,Directory\Background\Shell\MapLocalDriveHereN
77 | HKCR,Drive\Shell\MapLocalDriveHereN
78 |
79 | [Strings]
80 | DisplayName="Context Menu: Map Local Drive Here: N"
81 | DisplayVersion="1.2"
82 | ContextText="Map &Local Drive Here: N"
83 | RemoveText="Remove Mapped &Local Drive: N"
84 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\MapLocalDriveHereN"
85 |
--------------------------------------------------------------------------------
/Custom Installs/Map Local Drive Here - Static/MapLocalDriveHereO.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [MapLocalDriveHereOInstall]
5 | CopyFiles = MapLocalDriveHereO.Files.Inf
6 | CopyFiles = MapLocalDriveHereO.Files.Icon
7 | DelFiles = MapLocalDriveHereOExtended.Files.Clean
8 | DelReg = MapLocalDriveHereOExtended.Clean
9 | AddReg = MapLocalDriveHereO.AddReg
10 |
11 | [DefaultInstall]
12 | CopyFiles = MapLocalDriveHereO.Files.Inf
13 | CopyFiles = MapLocalDriveHereO.Files.Icon
14 | DelFiles = MapLocalDriveHereOExtended.Files.Clean
15 | DelReg = MapLocalDriveHereOExtended.Clean
16 | AddReg = MapLocalDriveHereO.AddReg
17 |
18 | [DefaultUnInstall]
19 | DelFiles = MapLocalDriveHereO.Files.Inf
20 | DelReg = MapLocalDriveHereO.DelReg
21 |
22 | [SourceDisksNames]
23 | 55="Map Drive Here","",1
24 |
25 | [SourceDisksFiles]
26 | MapLocalDriveHereO.INF=55
27 | mapdrive.ico=55
28 |
29 | [DestinationDirs]
30 | MapLocalDriveHereO.Files.Inf = 17
31 | MapLocalDriveHereOExtended.Files.Clean = 17
32 | MapLocalDriveHereO.Files.Icon = 11
33 |
34 | [MapLocalDriveHereO.Files.Inf]
35 | MapLocalDriveHereO.INF
36 |
37 | [MapLocalDriveHereO.Files.Icon]
38 | mapdrive.ico
39 |
40 | [MapLocalDriveHereOExtended.Files.Clean]
41 | MapLocalDriveHereOExtended.inf
42 |
43 | [MapLocalDriveHereOExtended.Clean]
44 | HKLM,%UDHERE%Extended
45 | HKCR,Directory\Shell\MapLocalDriveHereO
46 | HKCR,Directory\Background\Shell\MapLocalDriveHereO
47 | HKCR,Drive\Shell\MapLocalDriveHereO
48 |
49 | [MapLocalDriveHereO.AddReg]
50 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
51 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
52 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\mapdrive.ico"
53 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\MapLocalDriveHereO.inf"
54 |
55 | ;Adds entry when right-clicking a Directory
56 | HKCR,Directory\Shell\MapLocalDriveHereO,,,"%ContextText%"
57 | HKCR,Directory\Shell\MapLocalDriveHereO,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
58 | HKCR,Directory\Shell\MapLocalDriveHereO,NoWorkingDirectory,,""
59 | HKCR,Directory\Shell\MapLocalDriveHereO\command,,0x00020000,"cmd /c subst O: /D & subst O: ""%V"" "
60 |
61 | ;Adds entry when right-clicking "empty space" in a directory
62 | HKCR,Directory\Background\Shell\MapLocalDriveHereO,,,"%ContextText%"
63 | HKCR,Directory\Background\Shell\MapLocalDriveHereO,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
64 | HKCR,Directory\Background\Shell\MapLocalDriveHereO,NoWorkingDirectory,,""
65 | HKCR,Directory\Background\Shell\MapLocalDriveHereO\command,,0x00020000,"cmd /c subst O: /D & subst O: ""%V"" "
66 |
67 | ;Adds entry when right-clicking a Drive
68 | HKCR,Drive\Shell\MapLocalDriveHereO,,,"%RemoveText%"
69 | HKCR,Drive\Shell\MapLocalDriveHereO,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
70 | HKCR,Drive\Shell\MapLocalDriveHereO,NoWorkingDirectory,,""
71 | HKCR,Drive\Shell\MapLocalDriveHereO\command,,0x00020000,"cmd /c subst O: /D"
72 |
73 | [MapLocalDriveHereO.DelReg]
74 | HKLM,%UDHERE%
75 | HKCR,Directory\Shell\MapLocalDriveHereO
76 | HKCR,Directory\Background\Shell\MapLocalDriveHereO
77 | HKCR,Drive\Shell\MapLocalDriveHereO
78 |
79 | [Strings]
80 | DisplayName="Context Menu: Map Local Drive Here: O"
81 | DisplayVersion="1.2"
82 | ContextText="Map &Local Drive Here: O"
83 | RemoveText="Remove Mapped &Local Drive: O"
84 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\MapLocalDriveHereO"
85 |
--------------------------------------------------------------------------------
/Custom Installs/Map Local Drive Here - Static/MapLocalDriveHereP.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [MapLocalDriveHerePInstall]
5 | CopyFiles = MapLocalDriveHereP.Files.Inf
6 | CopyFiles = MapLocalDriveHereP.Files.Icon
7 | DelFiles = MapLocalDriveHerePExtended.Files.Clean
8 | DelReg = MapLocalDriveHerePExtended.Clean
9 | AddReg = MapLocalDriveHereP.AddReg
10 |
11 | [DefaultInstall]
12 | CopyFiles = MapLocalDriveHereP.Files.Inf
13 | CopyFiles = MapLocalDriveHereP.Files.Icon
14 | DelFiles = MapLocalDriveHerePExtended.Files.Clean
15 | DelReg = MapLocalDriveHerePExtended.Clean
16 | AddReg = MapLocalDriveHereP.AddReg
17 |
18 | [DefaultUnInstall]
19 | DelFiles = MapLocalDriveHereP.Files.Inf
20 | DelReg = MapLocalDriveHereP.DelReg
21 |
22 | [SourceDisksNames]
23 | 55="Map Drive Here","",1
24 |
25 | [SourceDisksFiles]
26 | MapLocalDriveHereP.INF=55
27 | mapdrive.ico=55
28 |
29 | [DestinationDirs]
30 | MapLocalDriveHereP.Files.Inf = 17
31 | MapLocalDriveHerePExtended.Files.Clean = 17
32 | MapLocalDriveHereP.Files.Icon = 11
33 |
34 | [MapLocalDriveHereP.Files.Inf]
35 | MapLocalDriveHereP.INF
36 |
37 | [MapLocalDriveHereP.Files.Icon]
38 | mapdrive.ico
39 |
40 | [MapLocalDriveHerePExtended.Files.Clean]
41 | MapLocalDriveHerePExtended.inf
42 |
43 | [MapLocalDriveHerePExtended.Clean]
44 | HKLM,%UDHERE%Extended
45 | HKCR,Directory\Shell\MapLocalDriveHereP
46 | HKCR,Directory\Background\Shell\MapLocalDriveHereP
47 | HKCR,Drive\Shell\MapLocalDriveHereP
48 |
49 | [MapLocalDriveHereP.AddReg]
50 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
51 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
52 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\mapdrive.ico"
53 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\MapLocalDriveHereP.inf"
54 |
55 | ;Adds entry when right-clicking a Directory
56 | HKCR,Directory\Shell\MapLocalDriveHereP,,,"%ContextText%"
57 | HKCR,Directory\Shell\MapLocalDriveHereP,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
58 | HKCR,Directory\Shell\MapLocalDriveHereP,NoWorkingDirectory,,""
59 | HKCR,Directory\Shell\MapLocalDriveHereP\command,,0x00020000,"cmd /c subst P: /D & subst P: ""%V"" "
60 |
61 | ;Adds entry when right-clicking "empty space" in a directory
62 | HKCR,Directory\Background\Shell\MapLocalDriveHereP,,,"%ContextText%"
63 | HKCR,Directory\Background\Shell\MapLocalDriveHereP,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
64 | HKCR,Directory\Background\Shell\MapLocalDriveHereP,NoWorkingDirectory,,""
65 | HKCR,Directory\Background\Shell\MapLocalDriveHereP\command,,0x00020000,"cmd /c subst P: /D & subst P: ""%V"" "
66 |
67 | ;Adds entry when right-clicking a Drive
68 | HKCR,Drive\Shell\MapLocalDriveHereP,,,"%RemoveText%"
69 | HKCR,Drive\Shell\MapLocalDriveHereP,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
70 | HKCR,Drive\Shell\MapLocalDriveHereP,NoWorkingDirectory,,""
71 | HKCR,Drive\Shell\MapLocalDriveHereP\command,,0x00020000,"cmd /c subst P: /D"
72 |
73 | [MapLocalDriveHereP.DelReg]
74 | HKLM,%UDHERE%
75 | HKCR,Directory\Shell\MapLocalDriveHereP
76 | HKCR,Directory\Background\Shell\MapLocalDriveHereP
77 | HKCR,Drive\Shell\MapLocalDriveHereP
78 |
79 | [Strings]
80 | DisplayName="Context Menu: Map Local Drive Here: P"
81 | DisplayVersion="1.2"
82 | ContextText="Map &Local Drive Here: P"
83 | RemoveText="Remove Mapped &Local Drive: P"
84 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\MapLocalDriveHereP"
85 |
--------------------------------------------------------------------------------
/Custom Installs/Map Local Drive Here - Static/mapdrive.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Map Local Drive Here - Static/mapdrive.ico
--------------------------------------------------------------------------------
/Custom Installs/Map Local Drive Here/MapLocalDriveHere - Display Output.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [MapLocalDriveHereInstall]
5 | CopyFiles = MapLocalDriveHere.Files.Inf
6 | CopyFiles = MapLocalDriveHere.Files.System
7 | CopyFiles = MapLocalDriveHere.Files.Icon
8 | DelFiles = MapLocalDriveHereExtended.Files.Clean
9 | DelReg = MapLocalDriveHereExtended.Clean
10 | AddReg = MapLocalDriveHere.AddReg
11 |
12 | [DefaultInstall]
13 | CopyFiles = MapLocalDriveHere.Files.Inf
14 | CopyFiles = MapLocalDriveHere.Files.System
15 | CopyFiles = MapLocalDriveHere.Files.Icon
16 | DelFiles = MapLocalDriveHereExtended.Files.Clean
17 | DelReg = MapLocalDriveHereExtended.Clean
18 | AddReg = MapLocalDriveHere.AddReg
19 |
20 | [DefaultUnInstall]
21 | DelFiles = MapLocalDriveHere.Files.Inf
22 | DelReg = MapLocalDriveHere.DelReg
23 |
24 | [SourceDisksNames]
25 | 55="Map Drive Here","",1
26 |
27 | [SourceDisksFiles]
28 | MapLocalDriveHere.INF=55
29 | mapdrive.bat=55
30 | mapdrive.ico=55
31 |
32 | [DestinationDirs]
33 | MapLocalDriveHere.Files.Inf = 17
34 | MapLocalDriveHereExtended.Files.Clean = 17
35 | MapLocalDriveHere.Files.Icon = 11
36 |
37 | [MapLocalDriveHere.Files.Inf]
38 | MapLocalDriveHere.INF
39 |
40 | [MapLocalDriveHere.Files.Icon]
41 | mapdrive.ico
42 |
43 | [MapLocalDriveHere.Files.System]
44 | mapdrive.bat
45 |
46 | [MapLocalDriveHereExtended.Files.Clean]
47 | MapLocalDriveHereExtended.inf
48 |
49 | [MapLocalDriveHereExtended.Clean]
50 | HKLM,%UDHERE%Extended
51 | HKCR,Directory\Shell\MapLocalDriveHere
52 | HKCR,Directory\Background\Shell\MapLocalDriveHere
53 | HKCR,Drive\Shell\MapLocalDriveHere
54 |
55 | [MapLocalDriveHere.AddReg]
56 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
57 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
58 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\mapdrive.ico"
59 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\MapLocalDriveHere.inf"
60 |
61 | ;Adds entry when right-clicking a Directory
62 | HKCR,Directory\Shell\MapLocalDriveHere,,,"%ContextText%"
63 | HKCR,Directory\Shell\MapLocalDriveHere,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
64 | HKCR,Directory\Shell\MapLocalDriveHere,NoWorkingDirectory,,""
65 | HKCR,Directory\Shell\MapLocalDriveHere\command,,0x00020000,"cmd /c mapdrive.bat ""%V"" /P"
66 |
67 | ;Adds entry when right-clicking "empty space" in a directory
68 | HKCR,Directory\Background\Shell\MapLocalDriveHere,,,"%ContextText%"
69 | HKCR,Directory\Background\Shell\MapLocalDriveHere,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
70 | HKCR,Directory\Background\Shell\MapLocalDriveHere,NoWorkingDirectory,,""
71 | HKCR,Directory\Background\Shell\MapLocalDriveHere\command,,0x00020000,"cmd /c mapdrive.bat ""%V"" /P"
72 |
73 | ;Adds entry when right-clicking a Drive
74 | HKCR,Drive\Shell\MapLocalDriveHere,,,"%RemoveText%"
75 | HKCR,Drive\Shell\MapLocalDriveHere,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
76 | HKCR,Drive\Shell\MapLocalDriveHere,NoWorkingDirectory,,""
77 | HKCR,Drive\Shell\MapLocalDriveHere\command,,0x00020000,"cmd /c mapdrive.bat ""%V"" /D /P"
78 |
79 | [MapLocalDriveHere.DelReg]
80 | HKLM,%UDHERE%
81 | HKCR,Directory\Shell\MapLocalDriveHere
82 | HKCR,Directory\Background\Shell\MapLocalDriveHere
83 | HKCR,Drive\Shell\MapLocalDriveHere
84 |
85 | [Strings]
86 | DisplayName="Context Menu: Map Local Drive Here"
87 | DisplayVersion="1.2"
88 | ContextText="Map &Local Drive Here"
89 | RemoveText="Remove Mapped &Local Drive"
90 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\MapLocalDriveHere"
91 |
--------------------------------------------------------------------------------
/Custom Installs/Map Local Drive Here/MapLocalDriveHere.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [MapLocalDriveHereInstall]
5 | CopyFiles = MapLocalDriveHere.Files.Inf
6 | CopyFiles = MapLocalDriveHere.Files.System
7 | CopyFiles = MapLocalDriveHere.Files.Icon
8 | DelFiles = MapLocalDriveHereExtended.Files.Clean
9 | DelReg = MapLocalDriveHereExtended.Clean
10 | AddReg = MapLocalDriveHere.AddReg
11 |
12 | [DefaultInstall]
13 | CopyFiles = MapLocalDriveHere.Files.Inf
14 | CopyFiles = MapLocalDriveHere.Files.System
15 | CopyFiles = MapLocalDriveHere.Files.Icon
16 | DelFiles = MapLocalDriveHereExtended.Files.Clean
17 | DelReg = MapLocalDriveHereExtended.Clean
18 | AddReg = MapLocalDriveHere.AddReg
19 |
20 | [DefaultUnInstall]
21 | DelFiles = MapLocalDriveHere.Files.Inf
22 | DelReg = MapLocalDriveHere.DelReg
23 |
24 | [SourceDisksNames]
25 | 55="Map Drive Here","",1
26 |
27 | [SourceDisksFiles]
28 | MapLocalDriveHere.INF=55
29 | mapdrive.bat=55
30 | mapdrive.ico=55
31 |
32 | [DestinationDirs]
33 | MapLocalDriveHere.Files.Inf = 17
34 | MapLocalDriveHereExtended.Files.Clean = 17
35 | MapLocalDriveHere.Files.Icon = 11
36 |
37 | [MapLocalDriveHere.Files.Inf]
38 | MapLocalDriveHere.INF
39 |
40 | [MapLocalDriveHere.Files.Icon]
41 | mapdrive.ico
42 |
43 | [MapLocalDriveHere.Files.System]
44 | mapdrive.bat
45 |
46 | [MapLocalDriveHereExtended.Files.Clean]
47 | MapLocalDriveHereExtended.inf
48 |
49 | [MapLocalDriveHereExtended.Clean]
50 | HKLM,%UDHERE%Extended
51 | HKCR,Directory\Shell\MapLocalDriveHere
52 | HKCR,Directory\Background\Shell\MapLocalDriveHere
53 | HKCR,Drive\Shell\MapLocalDriveHere
54 |
55 | [MapLocalDriveHere.AddReg]
56 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
57 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
58 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\mapdrive.ico"
59 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\MapLocalDriveHere.inf"
60 |
61 | ;Adds entry when right-clicking a Directory
62 | HKCR,Directory\Shell\MapLocalDriveHere,,,"%ContextText%"
63 | HKCR,Directory\Shell\MapLocalDriveHere,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
64 | HKCR,Directory\Shell\MapLocalDriveHere,NoWorkingDirectory,,""
65 | HKCR,Directory\Shell\MapLocalDriveHere\command,,0x00020000,"cmd /c mapdrive.bat ""%V"" "
66 |
67 | ;Adds entry when right-clicking "empty space" in a directory
68 | HKCR,Directory\Background\Shell\MapLocalDriveHere,,,"%ContextText%"
69 | HKCR,Directory\Background\Shell\MapLocalDriveHere,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
70 | HKCR,Directory\Background\Shell\MapLocalDriveHere,NoWorkingDirectory,,""
71 | HKCR,Directory\Background\Shell\MapLocalDriveHere\command,,0x00020000,"cmd /c mapdrive.bat ""%V"" "
72 |
73 | ;Adds entry when right-clicking a Drive
74 | HKCR,Drive\Shell\MapLocalDriveHere,,,"%RemoveText%"
75 | HKCR,Drive\Shell\MapLocalDriveHere,Icon,0x00020000,"%SystemRoot%\System32\mapdrive.ico"
76 | HKCR,Drive\Shell\MapLocalDriveHere,NoWorkingDirectory,,""
77 | HKCR,Drive\Shell\MapLocalDriveHere\command,,0x00020000,"cmd /c mapdrive.bat ""%V"" /D"
78 |
79 | [MapLocalDriveHere.DelReg]
80 | HKLM,%UDHERE%
81 | HKCR,Directory\Shell\MapLocalDriveHere
82 | HKCR,Directory\Background\Shell\MapLocalDriveHere
83 | HKCR,Drive\Shell\MapLocalDriveHere
84 |
85 | [Strings]
86 | DisplayName="Context Menu: Map Local Drive Here"
87 | DisplayVersion="1.2"
88 | ContextText="Map &Local Drive Here"
89 | RemoveText="Remove Mapped &Local Drive"
90 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\MapLocalDriveHere"
91 |
--------------------------------------------------------------------------------
/Custom Installs/Map Local Drive Here/mapdrive.bat:
--------------------------------------------------------------------------------
1 |
2 | @echo off
3 |
4 | SET VERBOSE=
5 | IF /I "%~1"=="/V" SET VERBOSE=T
6 | IF /I "%~2"=="/V" SET VERBOSE=T
7 | IF /I "%~3"=="/V" SET VERBOSE=T
8 |
9 | ECHO.
10 | ECHO MapDrive v1.2, Eric Menze 2014
11 | ECHO ==============================
12 | IF DEFINED VERBOSE ECHO Parameter 1: %1
13 | IF DEFINED VERBOSE ECHO Parameter 2: %2
14 | IF DEFINED VERBOSE ECHO Parameter 3: %3
15 | ECHO.
16 |
17 | IF %1.==. GOTO Help
18 | IF /I "%~1"=="/H" GOTO Help
19 | IF /I "%~1"=="/?" GOTO Help
20 | IF /I "%~1"=="/V" GOTO Help
21 | IF /I "%~1"=="/L" GOTO List
22 | IF /I "%~1"=="/F" GOTO Free
23 | IF %2.==. GOTO Map
24 | IF /I "%~2"=="/D" GOTO Disconnect
25 | IF EXIST %1 IF EXIST %2 GOTO Replace
26 | GOTO Map
27 |
28 | :Help
29 | ECHO This is a tool written to aid in Mapping Directories to Drive Letters
30 | ECHO It uses the SUBST command to accomplish this in a Windows Environment
31 | ECHO.
32 | ECHO USAGE:
33 | ECHO mapdrive [Directory] - Maps the directory to the next available drive letter
34 | ECHO mapdrive [Drive] /D - Unmounts the mapped virtual drive (if it used subst)
35 | ECHO mapdrive [Drive] [Directory] - Replaces the mapped virtual drive with the directory
36 | ECHO mapdrive /L - List mounted virtual drives
37 | ECHO mapdrive /F - Displays next availale drive letter
38 | ECHO mapdrive - Displays this help (also /?, /H)
39 | ECHO SWITCHES:
40 | ECHO /P - Pause after any of the above commands
41 | ECHO /V - Verbose - Displays extra output
42 | GOTO Finish
43 |
44 | :List
45 | ECHO Mapped Virtual Drives:
46 | subst
47 | GOTO Finish
48 |
49 | :Free
50 | for %%a in (Z Y X W V U T S R Q P O N M L K J I H G F E D C) do CD %%a: 1>> nul 2>&1 & if errorlevel 1 set freedrive=%%a:
51 | ECHO First Free Drive: %freedrive%
52 | ECHO Note: Mapdrive is set to start at K:
53 | GOTO Finish
54 |
55 | :Map
56 | ECHO Finding First Available Drive...
57 |
58 | REM IF DEFINED VERBOSE Searching All Drive Letters: for %%a in (Z Y X W V U T S R Q P O N M L K J I H G F E D C) do CD %%a: 1>> nul 2>&1 & if errorlevel 1 set freedrive=%%a:
59 | IF DEFINED VERBOSE Searching All Drive Letters, Stop at K:
60 | for %%a in (Z Y X W V U T S R Q P O N M L K) do CD %%a: 1>> nul 2>&1 & if errorlevel 1 set freedrive=%%a:
61 | ECHO Found: %freedrive%
62 |
63 | ECHO Checking Existence of %1
64 | IF NOT EXIST %1 (
65 | ECHO Error: Directory Not Found!
66 | GOTO Finish
67 | )
68 |
69 | ECHO Mapping %1 to %freedrive%...
70 | subst %freedrive% %1
71 | GOTO Finish
72 |
73 | :Replace
74 | ECHO Replacing virtal drive %~d1 with %2
75 | subst %~d1 /D
76 | subst %~d1 %2
77 | GOTO Finish
78 |
79 | :Disconnect
80 | ECHO Dismounting mapped drive %~d1...
81 | subst %~d1 /D
82 | GOTO Finish
83 |
84 | :Finish
85 | IF DEFINED VERBOSE ECHO Finished.
86 |
87 | IF /I "%~1"=="/P" GOTO Wait
88 | IF /I "%~2"=="/P" GOTO Wait
89 | IF /I "%~3"=="/P" GOTO Wait
90 | GOTO End
91 |
92 | :Wait
93 | PAUSE
94 |
95 | :End
--------------------------------------------------------------------------------
/Custom Installs/Map Local Drive Here/mapdrive.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Map Local Drive Here/mapdrive.ico
--------------------------------------------------------------------------------
/Custom Installs/Map Network Drive Here/MapNetworkDriveHere.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [MapNetworkDriveHereInstall]
5 | CopyFiles = MapNetworkDriveHere.Files.Inf
6 | CopyFiles = MapNetworkDriveHere.Files.Icon
7 | DelFiles = MapNetworkDriveHereExtended.Files.Clean
8 | DelReg = MapNetworkDriveHereExtended.Clean
9 | AddReg = MapNetworkDriveHere.AddReg
10 |
11 | [DefaultInstall]
12 | CopyFiles = MapNetworkDriveHere.Files.Inf
13 | CopyFiles = MapNetworkDriveHere.Files.Icon
14 | DelFiles = MapNetworkDriveHereExtended.Files.Clean
15 | DelReg = MapNetworkDriveHereExtended.Clean
16 | AddReg = MapNetworkDriveHere.AddReg
17 |
18 | [DefaultUnInstall]
19 | DelFiles = MapNetworkDriveHere.Files.Inf
20 | DelReg = MapNetworkDriveHere.DelReg
21 |
22 | [SourceDisksNames]
23 | 55="Map Drive Here","",1
24 |
25 | [SourceDisksFiles]
26 | MapNetworkDriveHere.INF=55
27 | netdrive.ico=55
28 |
29 | [DestinationDirs]
30 | MapNetworkDriveHere.Files.Inf = 17
31 | MapNetworkDriveHereExtended.Files.Clean = 17
32 | MapNetworkDriveHere.Files.Icon = 11
33 |
34 | [MapNetworkDriveHere.Files.Inf]
35 | MapNetworkDriveHere.INF
36 |
37 | [MapNetworkDriveHere.Files.Icon]
38 | netdrive.ico
39 |
40 | [MapNetworkDriveHereExtended.Files.Clean]
41 | MapNetworkDriveHereExtended.inf
42 |
43 | [MapNetworkDriveHereExtended.Clean]
44 | HKLM,%UDHERE%Extended
45 | HKCR,Directory\Shell\MapNetworkDriveHere
46 | HKCR,Directory\Background\Shell\MapNetworkDriveHere
47 | HKCR,Drive\Shell\MapNetworkDriveHere
48 |
49 | [MapNetworkDriveHere.AddReg]
50 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
51 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
52 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\netdrive.ico"
53 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\MapNetworkDriveHere.inf"
54 |
55 | ;Adds entry when right-clicking a Directory
56 | HKCR,Directory\Shell\MapNetworkDriveHere,,,"%ContextText%"
57 | HKCR,Directory\Shell\MapNetworkDriveHere,Icon,0x00020000,"%SystemRoot%\System32\netdrive.ico"
58 | HKCR,Directory\Shell\MapNetworkDriveHere,NoWorkingDirectory,,""
59 | HKCR,Directory\Shell\MapNetworkDriveHere\command,,0x00020000,"net use * ""%V"" "
60 |
61 | ;Adds entry when right-clicking "empty space" in a directory
62 | HKCR,Directory\Background\Shell\MapNetworkDriveHere,,,"%ContextText%"
63 | HKCR,Directory\Background\Shell\MapNetworkDriveHere,Icon,0x00020000,"%SystemRoot%\System32\netdrive.ico"
64 | HKCR,Directory\Background\Shell\MapNetworkDriveHere,NoWorkingDirectory,,""
65 | HKCR,Directory\Background\Shell\MapNetworkDriveHere\command,,0x00020000,"net use * ""%V"" "
66 |
67 | ;Adds entry when right-clicking a Drive
68 | HKCR,Drive\Shell\MapNetworkDriveHere,,,"%RemoveText%"
69 | HKCR,Drive\Shell\MapNetworkDriveHere,Icon,0x00020000,"%SystemRoot%\System32\netdrive.ico"
70 | HKCR,Drive\Shell\MapNetworkDriveHere,NoWorkingDirectory,,""
71 | HKCR,Drive\Shell\MapNetworkDriveHere\command,,0x00020000,"net use ""%V"" /DELETE"
72 |
73 | [MapNetworkDriveHere.DelReg]
74 | HKLM,%UDHERE%
75 | HKCR,Directory\Shell\MapNetworkDriveHere
76 | HKCR,Directory\Background\Shell\MapNetworkDriveHere
77 |
78 | [Strings]
79 | DisplayName="Context Menu: Map Network Drive Here"
80 | DisplayVersion="1.2"
81 | ContextText="Map &Network Drive Here"
82 | RemoveText="Remove Mapped &Network Drive"
83 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\MapNetworkDriveHere"
84 |
--------------------------------------------------------------------------------
/Custom Installs/Map Network Drive Here/netdrive.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Map Network Drive Here/netdrive.ico
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here (Administrator) (Extended)/PowerShellAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Start PowerShell Here (Administrator) (Extended)/PowerShellAdmin.ico
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here (Administrator) (Extended)/StartPowerShellHereAdministratorExtended.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [StartPowerShellHereAdministratorExtendedInstall]
5 | CopyFiles = StartPowerShellHereAdministratorExtended.Files.Inf
6 | CopyFiles = StartPowerShellHereAdministratorExtended.Files.System
7 | CopyFiles = StartPowerShellHereAdministratorExtended.Files.Icon
8 | DelFiles = StartPowerShellHereAdministrator.Files.Clean
9 | DelReg = StartPowerShellHereAdministrator.Clean
10 | AddReg = StartPowerShellHereAdministratorExtended.AddReg
11 |
12 | [DefaultInstall]
13 | CopyFiles = StartPowerShellHereAdministratorExtended.Files.Inf
14 | CopyFiles = StartPowerShellHereAdministratorExtended.Files.System
15 | CopyFiles = StartPowerShellHereAdministratorExtended.Files.Icon
16 | DelFiles = StartPowerShellHereAdministrator.Files.Clean
17 | DelReg = StartPowerShellHereAdministrator.Clean
18 | AddReg = StartPowerShellHereAdministratorExtended.AddReg
19 |
20 | [DefaultUnInstall]
21 | DelFiles = StartPowerShellHereAdministratorExtended.Files.Inf
22 | DelReg = StartPowerShellHereAdministratorExtended.DelReg
23 |
24 | [SourceDisksNames]
25 | 55="Start PowerShell Here (Administrator)","",1
26 |
27 | [SourceDisksFiles]
28 | StartPowerShellHereAdministratorExtended.INF=55
29 | PowerShellAdmin.ico=55
30 |
31 | [DestinationDirs]
32 | StartPowerShellHereAdministratorExtended.Files.Inf = 17
33 | StartPowerShellHereAdministrator.Files.Clean = 17
34 | StartPowerShellHereAdministratorExtended.Files.System = 11
35 | StartPowerShellHereAdministratorExtended.Files.Icon = 11
36 |
37 | [StartPowerShellHereAdministratorExtended.Files.Inf]
38 | StartPowerShellHereAdministratorExtended.INF
39 |
40 | [StartPowerShellHereAdministratorExtended.Files.System]
41 | Elevate.cmd
42 | Elevate.vbs
43 |
44 | [StartPowerShellHereAdministratorExtended.Files.Icon]
45 | PowerShellAdmin.ico
46 |
47 | [StartPowerShellHereAdministrator.Files.Clean]
48 | StartPowerShellHereAdministrator.inf
49 |
50 | [StartPowerShellHereAdministrator.Clean]
51 | HKLM,%CDHERE%
52 | HKCR,Directory\Shell\StartPowerShellHereAdministrator
53 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator
54 | HKCR,Drive\Shell\StartPowerShellHereAdministrator
55 |
56 | [StartPowerShellHereAdministratorExtended.AddReg]
57 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
58 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
59 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\PowerShellAdmin.ico"
60 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\StartPowerShellHereAdministratorExtended.inf"
61 |
62 | ;Adds entry when right-clicking a Directory
63 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,,,"%ContextText%"
64 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
65 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,Extended,,""
66 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
67 | HKCR,Directory\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\powershell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) + '>') -nonewline; return ' '; }; "" "
68 |
69 | ;Adds entry when right-clicking "empty space" in a directory
70 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,,,"%ContextText%"
71 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
72 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,Extended,,""
73 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
74 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\powershell.exe"" -NoExit -Command ""if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) + '>') -nonewline; return ' '; }; "" "
75 |
76 | ;Adds entry when right-clicking a Drive
77 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,,,"%ContextText%"
78 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
79 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,Extended,,""
80 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
81 | HKCR,Drive\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\powershell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) + '>') -nonewline; return ' '; }; "" "
82 |
83 | [StartPowerShellHereAdministratorExtended.DelReg]
84 | HKLM,%UDHERE%
85 | HKCR,Directory\Shell\StartPowerShellHereAdministrator
86 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator
87 | HKCR,Drive\Shell\StartPowerShellHereAdministrator
88 |
89 | [Strings]
90 | DisplayName="Context Menu: Start PowerShell Here (Administrator) (Extended)"
91 | DisplayVersion="1.2"
92 | ContextText="Start &PowerShell Here (Administrator)"
93 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\StartPowerShellHereAdministratorExtended"
94 | CDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\StartPowerShellHereAdministrator"
95 |
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here (Administrator) (Extended)/elevate.cmd:
--------------------------------------------------------------------------------
1 | @setlocal
2 | @echo off
3 |
4 | set ELEVATE_CMDLINE=%*
5 | set ELEVATE_APP=%1
6 |
7 | start wscript //nologo "%~dpn0.vbs" %*
8 |
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here (Administrator) (Extended)/elevate.vbs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Start PowerShell Here (Administrator) (Extended)/elevate.vbs
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here (Administrator)/PowerShellAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Start PowerShell Here (Administrator)/PowerShellAdmin.ico
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here (Administrator)/StartPowerShellHereAdministrator.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [StartPowerShellHereAdministratorInstall]
5 | CopyFiles = StartPowerShellHereAdministrator.Files.Inf
6 | CopyFiles = StartPowerShellHereAdministrator.Files.System
7 | CopyFiles = StartPowerShellHereAdministrator.Files.Icon
8 | DelFiles = StartPowerShellHereAdministratorExtended.Files.Clean
9 | DelReg = StartPowerShellHereAdministratorExtended.Clean
10 | AddReg = StartPowerShellHereAdministrator.AddReg
11 |
12 | [DefaultInstall]
13 | CopyFiles = StartPowerShellHereAdministrator.Files.Inf
14 | CopyFiles = StartPowerShellHereAdministrator.Files.System
15 | CopyFiles = StartPowerShellHereAdministrator.Files.Icon
16 | DelFiles = StartPowerShellHereAdministratorExtended.Files.Clean
17 | DelReg = StartPowerShellHereAdministratorExtended.Clean
18 | AddReg = StartPowerShellHereAdministrator.AddReg
19 |
20 | [DefaultUnInstall]
21 | DelFiles = StartPowerShellHereAdministrator.Files.Inf
22 | DelReg = StartPowerShellHereAdministrator.DelReg
23 |
24 | [SourceDisksNames]
25 | 55="Start PowerShell Here (Administrator)","",1
26 |
27 | [SourceDisksFiles]
28 | StartPowerShellHereAdministrator.INF=55
29 | PowerShellAdmin.ico=55
30 |
31 | [DestinationDirs]
32 | StartPowerShellHereAdministrator.Files.Inf = 17
33 | StartPowerShellHereAdministratorExtended.Files.Clean = 17
34 | StartPowerShellHereAdministrator.Files.System = 11
35 | StartPowerShellHereAdministrator.Files.Icon = 11
36 |
37 | [StartPowerShellHereAdministrator.Files.Inf]
38 | StartPowerShellHereAdministrator.INF
39 |
40 | [StartPowerShellHereAdministrator.Files.System]
41 | Elevate.cmd
42 | Elevate.vbs
43 |
44 | [StartPowerShellHereAdministrator.Files.Icon]
45 | PowerShellAdmin.ico
46 |
47 | [StartPowerShellHereAdministratorExtended.Files.Clean]
48 | StartPowerShellHereAdministratorExtended.inf
49 |
50 | [StartPowerShellHereAdministratorExtended.Clean]
51 | HKLM,%UDHERE%Extended
52 | HKCR,Directory\Shell\StartPowerShellHereAdministrator
53 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator
54 | HKCR,Drive\Shell\StartPowerShellHereAdministrator
55 |
56 | [StartPowerShellHereAdministrator.AddReg]
57 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
58 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
59 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\PowerShellAdmin.ico"
60 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\StartPowerShellHereAdministrator.inf"
61 |
62 | ;Adds entry when right-clicking a Directory
63 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,,,"%ContextText%"
64 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
65 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
66 | HKCR,Directory\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\powershell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) + '>') -nonewline; return ' '; }; "" "
67 |
68 | ;Adds entry when right-clicking "empty space" in a directory
69 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,,,"%ContextText%"
70 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
71 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
72 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\powershell.exe"" -NoExit -Command ""if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) + '>') -nonewline; return ' '; }; "" "
73 |
74 | ;Adds entry when right-clicking a Drive
75 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,,,"%ContextText%"
76 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
77 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
78 | HKCR,Drive\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\powershell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) + '>') -nonewline; return ' '; }; "" "
79 |
80 | [StartPowerShellHereAdministrator.DelReg]
81 | HKLM,%UDHERE%
82 | HKCR,Directory\Shell\StartPowerShellHereAdministrator
83 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator
84 | HKCR,Drive\Shell\StartPowerShellHereAdministrator
85 |
86 | [Strings]
87 | DisplayName="Context Menu: Start PowerShell Here (Administrator)"
88 | DisplayVersion="1.2"
89 | ContextText="Start &PowerShell Here (Administrator)"
90 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\StartPowerShellHereAdministrator"
91 |
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here (Administrator)/elevate.cmd:
--------------------------------------------------------------------------------
1 | @setlocal
2 | @echo off
3 |
4 | set ELEVATE_CMDLINE=%*
5 | set ELEVATE_APP=%1
6 |
7 | start wscript //nologo "%~dpn0.vbs" %*
8 |
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here (Administrator)/elevate.vbs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Start PowerShell Here (Administrator)/elevate.vbs
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here (Extended)/PowerShell.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Start PowerShell Here (Extended)/PowerShell.ico
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here (Extended)/StartPowerShellHereExtended.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [StartPowerShellHereExtendedInstall]
5 | CopyFiles = StartPowerShellHereExtended.Files.Inf
6 | CopyFiles = StartPowerShellHereExtended.Files.Icon
7 | DelFiles = StartPowerShellHere.Files.Clean
8 | DelReg = StartPowerShellHere.Clean
9 | AddReg = StartPowerShellHereExtended.AddReg
10 |
11 | [DefaultInstall]
12 | CopyFiles = StartPowerShellHereExtended.Files.Inf
13 | CopyFiles = StartPowerShellHereExtended.Files.Icon
14 | DelFiles = StartPowerShellHere.Files.Clean
15 | DelReg = StartPowerShellHere.Clean
16 | AddReg = StartPowerShellHereExtended.AddReg
17 |
18 | [DefaultUnInstall]
19 | DelFiles = StartPowerShellHereExtended.Files.Inf
20 | DelReg = StartPowerShellHereExtended.DelReg
21 |
22 | [SourceDisksNames]
23 | 55="PowerShell Prompt Here","",1
24 |
25 | [SourceDisksFiles]
26 | StartPowerShellHereExtended.INF=55
27 | PowerShell.ico=55
28 |
29 | [DestinationDirs]
30 | StartPowerShellHereExtended.Files.Inf = 17
31 | StartPowerShellHere.Files.Clean = 17
32 | StartPowerShellHereExtended.Files.Icon = 11
33 |
34 | [StartPowerShellHereExtended.Files.Inf]
35 | StartPowerShellHereExtended.INF
36 |
37 | [StartPowerShellHereExtended.Files.Icon]
38 | PowerShell.ico
39 |
40 | [StartPowerShellHere.Files.Clean]
41 | StartPowerShellHere.inf
42 |
43 | [StartPowerShellHere.Clean]
44 | HKLM,%CDHERE%
45 | HKCR,Directory\Shell\StartPowerShellHere
46 | HKCR,Directory\Background\Shell\StartPowerShellHere
47 | HKCR,Drive\Shell\StartPowerShellHere
48 |
49 | [StartPowerShellHereExtended.AddReg]
50 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
51 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
52 | HKLM,%UDHERE%,DisplayIcon,,"%11%\PowerShell.ico"
53 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\StartPowerShellHereExtended.inf"
54 |
55 | ;Adds entry when right-clicking a Directory
56 | HKCR,Directory\Shell\StartPowerShellHere,,,"%ContextText%"
57 | HKCR,Directory\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
58 | HKCR,Directory\Shell\StartPowerShellHere,Extended,,""
59 | HKCR,Directory\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
60 |
61 | ;Adds entry when right-clicking "empty space" in a directory
62 | HKCR,Directory\Background\Shell\StartPowerShellHere,,,"%ContextText%"
63 | HKCR,Directory\Background\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
64 | HKCR,Directory\Background\Shell\StartPowerShellHere,Extended,,""
65 | HKCR,Directory\Background\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""$host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
66 |
67 | ;Adds entry when right-clicking a Drive
68 | HKCR,Drive\Shell\StartPowerShellHere,,,"%ContextText%"
69 | HKCR,Drive\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
70 | HKCR,Drive\Shell\StartPowerShellHere,Extended,,""
71 | HKCR,Drive\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
72 |
73 | [StartPowerShellHereExtended.DelReg]
74 | HKLM,%UDHERE%
75 | HKCR,Directory\Shell\StartPowerShellHere
76 | HKCR,Directory\Background\Shell\StartPowerShellHere
77 | HKCR,Drive\Shell\StartPowerShellHere
78 |
79 | [Strings]
80 | DisplayName="Context Menu: Start PowerShell Here (Extended)"
81 | DisplayVersion="1.2"
82 | ContextText="Start &PowerShell Here"
83 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\StartPowerShellHereExtended"
84 | CDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\StartPowerShellHere"
85 |
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here/PowerShell.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Custom Installs/Start PowerShell Here/PowerShell.ico
--------------------------------------------------------------------------------
/Custom Installs/Start PowerShell Here/StartPowerShellHere.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [StartPowerShellHereInstall]
5 | CopyFiles = StartPowerShellHere.Files.Inf
6 | CopyFiles = StartPowerShellHere.Files.Icon
7 | DelFiles = StartPowerShellHere.Files.Clean
8 | DelReg = StartPowerShellHere.Clean
9 | AddReg = StartPowerShellHere.AddReg
10 |
11 | [DefaultInstall]
12 | CopyFiles = StartPowerShellHere.Files.Inf
13 | CopyFiles = StartPowerShellHere.Files.Icon
14 | DelFiles = StartPowerShellHere.Files.Clean
15 | DelReg = StartPowerShellHere.Clean
16 | AddReg = StartPowerShellHere.AddReg
17 |
18 | [DefaultUnInstall]
19 | DelFiles = StartPowerShellHere.Files.Inf
20 | DelReg = StartPowerShellHere.DelReg
21 |
22 | [SourceDisksNames]
23 | 55="PowerShell Prompt Here","",1
24 |
25 | [SourceDisksFiles]
26 | StartPowerShellHere.INF=55
27 | PowerShell.ico=55
28 |
29 | [DestinationDirs]
30 | StartPowerShellHere.Files.Inf = 17
31 | StartPowerShellHere.Files.Clean = 17
32 | StartPowerShellHere.Files.Icon = 11
33 |
34 | [StartPowerShellHere.Files.Inf]
35 | StartPowerShellHere.INF
36 |
37 | [StartPowerShellHere.Files.Icon]
38 | PowerShell.ico
39 |
40 | [StartPowerShellHereExtended.Files.Clean]
41 | StartPowerShellHereExtended.inf
42 |
43 | [StartPowerShellHereExtended.Clean]
44 | HKLM,%UDHERE%Extended
45 | HKCR,Directory\Shell\StartPowerShellHere
46 | HKCR,Directory\Background\Shell\StartPowerShellHere
47 | HKCR,Drive\Shell\StartPowerShellHere
48 |
49 | [StartPowerShellHere.AddReg]
50 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
51 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
52 | HKLM,%UDHERE%,DisplayIcon,,"%11%\PowerShell.ico"
53 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\StartPowerShellHere.inf"
54 |
55 | ;Adds entry when right-clicking a Directory
56 | HKCR,Directory\Shell\StartPowerShellHere,,,"%ContextText%"
57 | HKCR,Directory\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
58 | HKCR,Directory\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
59 |
60 | ;Adds entry when right-clicking "empty space" in a directory
61 | HKCR,Directory\Background\Shell\StartPowerShellHere,,,"%ContextText%"
62 | HKCR,Directory\Background\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
63 | HKCR,Directory\Background\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""$host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
64 |
65 | ;Adds entry when right-clicking a Drive
66 | HKCR,Drive\Shell\StartPowerShellHere,,,"%ContextText%"
67 | HKCR,Drive\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
68 | HKCR,Drive\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
69 |
70 | [StartPowerShellHere.DelReg]
71 | HKLM,%UDHERE%
72 | HKCR,Directory\Shell\StartPowerShellHere
73 | HKCR,Directory\Background\Shell\StartPowerShellHere
74 | HKCR,Drive\Shell\StartPowerShellHere
75 |
76 | [Strings]
77 | DisplayName="Context Menu: Start PowerShell Here"
78 | DisplayVersion="1.2"
79 | ContextText="Start &PowerShell Here"
80 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\StartPowerShellHere"
81 |
--------------------------------------------------------------------------------
/Default Install.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Install.exe
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x64) (64 bit)/Git.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x64) (64 bit)/Git.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x64) (64 bit)/PowerShell.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x64) (64 bit)/PowerShell.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x64) (64 bit)/PowerShellAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x64) (64 bit)/PowerShellAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x64) (64 bit)/cmd.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x64) (64 bit)/cmd.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x64) (64 bit)/cmdAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x64) (64 bit)/cmdAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x64) (64 bit)/elevate.cmd:
--------------------------------------------------------------------------------
1 | @setlocal
2 | @echo off
3 |
4 | set ELEVATE_CMDLINE=%*
5 | set ELEVATE_APP=%1
6 |
7 | start wscript //nologo "%~dpn0.vbs" %*
8 |
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x64) (64 bit)/elevate.vbs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x64) (64 bit)/elevate.vbs
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x86) (32 bit)/Git.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x86) (32 bit)/Git.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x86) (32 bit)/PowerShell.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x86) (32 bit)/PowerShell.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x86) (32 bit)/PowerShellAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x86) (32 bit)/PowerShellAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x86) (32 bit)/cmd.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x86) (32 bit)/cmd.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x86) (32 bit)/cmdAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x86) (32 bit)/cmdAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x86) (32 bit)/elevate.cmd:
--------------------------------------------------------------------------------
1 | @setlocal
2 | @echo off
3 |
4 | set ELEVATE_CMDLINE=%*
5 | set ELEVATE_APP=%1
6 |
7 | start wscript //nologo "%~dpn0.vbs" %*
8 |
--------------------------------------------------------------------------------
/Default Installs/Default Install (Git, x86) (32 bit)/elevate.vbs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (Git, x86) (32 bit)/elevate.vbs
--------------------------------------------------------------------------------
/Default Installs/Default Install (No Git)/ContextMenuTools.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [ContextMenuToolsInstall]
5 | CopyFiles = ContextMenuTools.Files.Inf
6 | CopyFiles = ContextMenuTools.Files.System
7 | CopyFiles = ContextMenuTools.Files.Icon
8 | DelFiles = ContextMenuTools.Files.Clean
9 | DelReg = ContextMenuTools.Clean
10 | AddReg = ContextMenuTools.AddReg
11 | DelReg = cmd.DelReg
12 |
13 | [DefaultInstall]
14 | CopyFiles = ContextMenuTools.Files.Inf
15 | CopyFiles = ContextMenuTools.Files.System
16 | CopyFiles = ContextMenuTools.Files.Icon
17 | DelFiles = ContextMenuTools.Files.Clean
18 | DelReg = ContextMenuTools.Clean
19 | AddReg = ContextMenuTools.AddReg
20 | DelReg = cmd.DelReg
21 |
22 | [DefaultUnInstall]
23 | DelFiles = ContextMenuTools.Files.Inf
24 | DelReg = ContextMenuTools.DelReg
25 | AddReg = cmd.AddReg
26 |
27 | [SourceDisksNames]
28 | 55 = "Context Menu Tools","",1
29 |
30 | [SourceDisksFiles]
31 | ContextMenuTools.INF = 55
32 | cmd.ico = 55
33 | cmdAdmin.ico = 55
34 | PowerShell.ico = 55
35 | PowerShellAdmin.ico = 55
36 |
37 | [DestinationDirs]
38 | ContextMenuTools.Files.Inf = 17
39 | ContextMenuTools.Files.Clean = 17
40 | ContextMenuTools.Files.System = 11
41 | ContextMenuTools.Files.Icon = 11
42 |
43 | [ContextMenuTools.Files.Inf]
44 | ContextMenuTools.INF
45 |
46 | [ContextMenuTools.Files.System]
47 | Elevate.cmd
48 | Elevate.vbs
49 |
50 | [ContextMenuTools.Files.Icon]
51 | cmd.ico
52 | cmdAdmin.ico
53 | PowerShell.ico
54 | PowerShellAdmin.ico
55 |
56 | [ContextMenuTools.Files.Clean]
57 | ;Remove .inf files
58 | AlwaysShowOpenWith.inf
59 | KeepPowerShellBlue.inf
60 | KeepCommandWindowScrollable.inf
61 |
62 | ContextMenuTools.inf
63 |
64 | GitBashHere.inf
65 |
66 | CommandPromptHere.inf
67 | CommandPromptHereExtended.inf
68 | CommandPromptHereAdministrator.inf
69 | CommandPromptHereAdministratorExtended.inf
70 |
71 | StartPowerShellHere.inf
72 | StartPowerShellHereExtended.inf
73 | StartPowerShellHereAdministrator.inf
74 | StartPowerShellHereAdministratorExtended.inf
75 |
76 | [ContextMenuTools.Clean]
77 | ;Remove Program Uninstall entries
78 | HKLM,%CDHERE%\KeepPowerShellBlue
79 | HKLM,%CDHERE%\KeepCommandWindowScrollable
80 |
81 | HKLM,%CDHERE%\ContextMenuTools
82 |
83 | HKLM,%CDHERE%\GitBashHere
84 |
85 | HKLM,%CDHERE%\CommandPromptHere
86 | HKLM,%CDHERE%\CommandPromptHereExtended
87 | HKLM,%CDHERE%\CommandPromptHereAdministrator
88 | HKLM,%CDHERE%\CommandPromptHereAdministratorExtended
89 |
90 | HKLM,%CDHERE%\StartPowerShellHere
91 | HKLM,%CDHERE%\StartPowerShellHereExtended
92 | HKLM,%CDHERE%\StartPowerShellHereAdministrator
93 | HKLM,%CDHERE%\StartPowerShellHereAdministratorExtended
94 |
95 | ;Remove Registry Entries
96 | HKCR,*\Shell\AlwaysShowOpenWith
97 |
98 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe
99 |
100 | HKCR,Directory\Shell\Git_Shell
101 | HKCR,Directory\Background\Shell\Git_Shell
102 | HKCR,Drive\Shell\Git_Shell
103 |
104 | HKCR,Directory\Shell\CommandPromptHere
105 | HKCR,Directory\Background\Shell\CommandPromptHere
106 | HKCR,Drive\Shell\CommandPromptHere
107 |
108 | HKCR,Directory\Shell\CommandPromptHereAdministrator
109 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator
110 | HKCR,Drive\Shell\CommandPromptHereAdministrator
111 |
112 | HKCR,Directory\Shell\StartPowerShellHere
113 | HKCR,Directory\Background\Shell\StartPowerShellHere
114 | HKCR,Drive\Shell\StartPowerShellHere
115 |
116 | HKCR,Directory\Shell\StartPowerShellHereAdministrator
117 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator
118 | HKCR,Drive\Shell\StartPowerShellHereAdministrator
119 |
120 | [ContextMenuTools.AddReg]
121 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
122 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
123 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\PowerShellAdmin.ico"
124 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\ContextMenuTools.inf"
125 |
126 | ;Adds entries when right-clicking a Directory
127 | HKCR,Directory\Shell\CommandPromptHere,,,"%cmdContextText%"
128 | HKCR,Directory\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
129 | HKCR,Directory\Shell\CommandPromptHere,NoWorkingDirectory,,""
130 | HKCR,Directory\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
131 |
132 | HKCR,Directory\Shell\CommandPromptHereAdministrator,,,"%cmdAdminContextText%"
133 | HKCR,Directory\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
134 | HKCR,Directory\Shell\CommandPromptHereAdministrator,Extended,,""
135 | HKCR,Directory\Shell\CommandPromptHereAdministrator,NoWorkingDirectory,,""
136 | HKCR,Directory\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
137 |
138 | HKCR,Directory\Shell\StartPowerShellHere,,,"%PowerShellContextText%"
139 | HKCR,Directory\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
140 | HKCR,Directory\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
141 |
142 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,,,"%PowerShellAdminContextText%"
143 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
144 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,Extended,,""
145 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
146 | HKCR,Directory\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle + ': ' + '%L' } else { $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%L' }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' '; }; "" "
147 |
148 | ;Adds entries when right-clicking "empty space" in a directory
149 | HKCR,Directory\Background\Shell\CommandPromptHere,,,"%cmdContextText%"
150 | HKCR,Directory\Background\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
151 | HKCR,Directory\Background\Shell\CommandPromptHere,NoWorkingDirectory,,""
152 | HKCR,Directory\Background\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
153 |
154 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,,,"%cmdAdminContextText%"
155 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
156 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,Extended,,""
157 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,NoWorkingDirectory,,""
158 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
159 |
160 | HKCR,Directory\Background\Shell\StartPowerShellHere,,,"%PowerShellContextText%"
161 | HKCR,Directory\Background\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
162 | HKCR,Directory\Background\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""$host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
163 |
164 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,,,"%PowerShellAdminContextText%"
165 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
166 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,Extended,,""
167 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
168 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%V'; if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle + ': ' + '%V' } else { $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V' }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) + '>') -nonewline; return ' '; }; "" "
169 |
170 | ;Adds entries when right-clicking a Drive
171 | HKCR,Drive\Shell\CommandPromptHere,,,"%cmdContextText%"
172 | HKCR,Drive\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
173 | HKCR,Drive\Shell\CommandPromptHere,NoWorkingDirectory,,""
174 | HKCR,Drive\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
175 |
176 | HKCR,Drive\Shell\CommandPromptHereAdministrator,,,"%cmdAdminContextText%"
177 | HKCR,Drive\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
178 | HKCR,Drive\Shell\CommandPromptHereAdministrator,Extended,,""
179 | HKCR,Drive\Shell\CommandPromptHereAdministrator,NoWorkingDirectory,,""
180 | HKCR,Drive\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
181 |
182 | HKCR,Drive\Shell\StartPowerShellHere,,,"%PowerShellContextText%"
183 | HKCR,Drive\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
184 | HKCR,Drive\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
185 |
186 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,,,"%PowerShellAdminContextText%"
187 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
188 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,Extended,,""
189 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
190 | HKCR,Drive\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle + ': ' + '%L' } else { $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%L' }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) + '>') -nonewline; return ' '; }; """
191 |
192 | ;Make PowerShell keep default blue when opened from .exe
193 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,,,
194 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ScreenColors,0x00010001,0x00000056
195 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,PopupColors,0x00010001,0x000000f3
196 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable00,0x00010001,0x00562401
197 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable01,0x00010001,0x00800000
198 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable02,0x00010001,0x00008000
199 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable03,0x00010001,0x00808000
200 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable04,0x00010001,0x00000080
201 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable05,0x00010001,0x00562401
202 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable06,0x00010001,0x00f0edee
203 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable07,0x00010001,0x00c0c0c0
204 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable08,0x00010001,0x00808080
205 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable09,0x00010001,0x00ff0000
206 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable10,0x00010001,0x0000ff00
207 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable11,0x00010001,0x00ffff00
208 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable12,0x00010001,0x000000ff
209 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable13,0x00010001,0x00ff00ff
210 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable14,0x00010001,0x0000ffff
211 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable15,0x00010001,0x00ffffff
212 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,InsertMode,0x00010001,0x00000001
213 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,QuickEdit,0x00010001,0x00000001
214 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ScreenBufferSize,0x00010001,0x0bb80064
215 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,WindowSize,0x00010001,0x00280064
216 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FontSize,0x00010001,0x000c0008
217 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FontFamily,0x00010001,0x00000030
218 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FontWeight,0x00010001,0x00000190
219 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FaceName,,"Terminal"
220 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,CursorSize,0x00010001,0x00000019
221 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,HistoryBufferSize,0x00010001,0x00000032
222 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,NumberOfHistoryBuffers,0x00010001,0x00000004
223 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,HistoryNoDup,0x00010001,0x00000000
224 |
225 | ;Make Command Window scrollable when opened from .exe
226 | HKCU,Console\%SystemRoot%_system32_cmd.exe,,,
227 | HKCU,Console\%SystemRoot%_system32_cmd.exe,InsertMode,0x00010001,0x00000001
228 | HKCU,Console\%SystemRoot%_system32_cmd.exe,QuickEdit,0x00010001,0x00000001
229 | HKCU,Console\%SystemRoot%_system32_cmd.exe,ScreenBufferSize,0x00010001,0x0bb80050
230 | HKCU,Console\%SystemRoot%_system32_cmd.exe,WindowSize,0x00010001,0x00200050
231 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FontSize,0x00010001,0x000c0008
232 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FontFamily,0x00010001,0x00000030
233 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FontWeight,0x00010001,0x00000190
234 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FaceName,,"Terminal"
235 | HKCU,Console\%SystemRoot%_system32_cmd.exe,CursorSize,0x00010001,0x00000019
236 | HKCU,Console\%SystemRoot%_system32_cmd.exe,HistoryBufferSize,0x00010001,0x00000032
237 | HKCU,Console\%SystemRoot%_system32_cmd.exe,NumberOfHistoryBuffers,0x00010001,0x00000004
238 | HKCU,Console\%SystemRoot%_system32_cmd.exe,HistoryNoDup,0x00010001,0x00000000
239 |
240 | [ContextMenuTools.DelReg]
241 | HKLM,%UDHERE%
242 |
243 | HKCR,Directory\Shell\CommandPromptHere
244 | HKCR,Directory\Background\Shell\CommandPromptHere
245 | HKCR,Drive\Shell\CommandPromptHere
246 |
247 | HKCR,Directory\Shell\CommandPromptHereAdministrator
248 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator
249 | HKCR,Drive\Shell\CommandPromptHereAdministrator
250 |
251 | HKCR,Directory\Shell\CommandPromptHereExtended
252 | HKCR,Directory\Background\Shell\CommandPromptHereExtended
253 | HKCR,Drive\Shell\CommandPromptHereExtended
254 |
255 | HKCR,Directory\Shell\CommandPromptHereAdministratorExtended
256 | HKCR,Directory\Background\Shell\CommandPromptHereAdministratorExtended
257 | HKCR,Drive\Shell\CommandPromptHereAdministratorExtended
258 |
259 | HKCR,Directory\Shell\Git_Shell
260 | HKCR,Directory\Background\Shell\Git_Shell
261 | HKCR,Drive\Shell\Git_Shell
262 |
263 | HKCR,Directory\Shell\StartPowerShellHere
264 | HKCR,Directory\Background\Shell\StartPowerShellHere
265 | HKCR,Drive\Shell\StartPowerShellHere
266 |
267 | HKCR,Directory\Shell\StartPowerShellHereAdministrator
268 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator
269 | HKCR,Drive\Shell\StartPowerShellHereAdministrator
270 |
271 | HKCR,Directory\Shell\StartPowerShellHereExtended
272 | HKCR,Directory\Background\Shell\StartPowerShellHereExtended
273 | HKCR,Drive\Shell\StartPowerShellHereExtended
274 |
275 | HKCR,Directory\Shell\StartPowerShellHereAdministratorExtended
276 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministratorExtended
277 | HKCR,Drive\Shell\StartPowerShellHereAdministratorExtended
278 |
279 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe
280 |
281 | HKCU,Console\%SystemRoot%_system32_cmd.exe
282 |
283 | [cmd.AddReg]
284 | HKCR,Directory\Shell\cmd,,,"@shell32.dll,-8506"
285 | HKCR,Directory\Shell\cmd,Extended,,""
286 | HKCR,Directory\Shell\cmd,NoWorkingDirectory,,""
287 | HKCR,Directory\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"""
288 |
289 | HKCR,Directory\Background\Shell\cmd,,,"@shell32.dll,-8506"
290 | HKCR,Directory\Background\Shell\cmd,Extended,,""
291 | HKCR,Directory\Background\Shell\cmd,NoWorkingDirectory,,""
292 | HKCR,Directory\Background\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"""
293 |
294 | HKCR,Drive\Shell\cmd,,,"@shell32.dll,-8506"
295 | HKCR,Drive\Shell\cmd,Extended,,""
296 | HKCR,Drive\Shell\cmd,NoWorkingDirectory,,""
297 | HKCR,Drive\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"""
298 |
299 | [cmd.DelReg]
300 | HKCR,Directory\Shell\cmd
301 | HKCR,Directory\Background\Shell\cmd
302 | HKCR,Drive\Shell\cmd
303 |
304 | [Strings]
305 | DisplayName="Context Menu Tools"
306 | DisplayVersion="1.2"
307 | cmdContextText="&Command Prompt Here"
308 | cmdAdminContextText="&Command Prompt Here (Administrator)"
309 | PowerShellContextText="Start &PowerShell Here"
310 | PowerShellAdminContextText="Start &PowerShell Here (Administrator)"
311 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\ContextMenuTools"
312 | CDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall"
313 |
--------------------------------------------------------------------------------
/Default Installs/Default Install (No Git)/PowerShell.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (No Git)/PowerShell.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (No Git)/PowerShellAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (No Git)/PowerShellAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (No Git)/cmd.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (No Git)/cmd.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (No Git)/cmdAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (No Git)/cmdAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/Default Install (No Git)/elevate.cmd:
--------------------------------------------------------------------------------
1 | @setlocal
2 | @echo off
3 |
4 | set ELEVATE_CMDLINE=%*
5 | set ELEVATE_APP=%1
6 |
7 | start wscript //nologo "%~dpn0.vbs" %*
8 |
--------------------------------------------------------------------------------
/Default Installs/Default Install (No Git)/elevate.vbs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/Default Install (No Git)/elevate.vbs
--------------------------------------------------------------------------------
/Default Installs/Default Install With Git.bat:
--------------------------------------------------------------------------------
1 | @ECHO Off
2 |
3 | ECHO Start
4 |
5 | SET RegQry=HKLM\Hardware\Description\System\CentralProcessor\0
6 |
7 | reg.exe Query %RegQry% > checkOS.txt
8 |
9 | FIND /i "x86" < CheckOS.txt > StringCheck.txt
10 |
11 | SET is64 = %ERRORLEVEL%
12 |
13 | DEL CheckOS.txt
14 |
15 | DEL StringCheck.txt
16 |
17 | IF is64 == 0 (
18 | ECHO 32 bit Machine Detected
19 | CD "Default Install (Git, x86) (32 bit)"
20 | ) ELSE (
21 | ECHO 64 bit Machine Detected
22 | CD "Default Install (Git, x64) (64 bit)"
23 | )
24 |
25 | ECHO Installing...
26 |
27 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\ContextMenuTools.inf
28 |
29 | ECHO End
--------------------------------------------------------------------------------
/Default Installs/Default Install Without Git.bat:
--------------------------------------------------------------------------------
1 | @ECHO Off
2 |
3 | ECHO Start
4 |
5 | CD "Default Install (No Git)"
6 |
7 | ECHO Installing...
8 |
9 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\ContextMenuTools.inf
10 |
11 | ECHO End
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x64) (64 bit)/Git.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x64) (64 bit)/Git.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x64) (64 bit)/PowerShell.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x64) (64 bit)/PowerShell.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x64) (64 bit)/PowerShellAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x64) (64 bit)/PowerShellAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x64) (64 bit)/cmd.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x64) (64 bit)/cmd.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x64) (64 bit)/cmdAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x64) (64 bit)/cmdAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x64) (64 bit)/elevate.cmd:
--------------------------------------------------------------------------------
1 | @setlocal
2 | @echo off
3 |
4 | set ELEVATE_CMDLINE=%*
5 | set ELEVATE_APP=%1
6 |
7 | start wscript //nologo "%~dpn0.vbs" %*
8 |
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x64) (64 bit)/elevate.vbs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x64) (64 bit)/elevate.vbs
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x86) (32 bit)/Git.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x86) (32 bit)/Git.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x86) (32 bit)/PowerShell.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x86) (32 bit)/PowerShell.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x86) (32 bit)/PowerShellAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x86) (32 bit)/PowerShellAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x86) (32 bit)/cmd.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x86) (32 bit)/cmd.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x86) (32 bit)/cmdAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x86) (32 bit)/cmdAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x86) (32 bit)/elevate.cmd:
--------------------------------------------------------------------------------
1 | @setlocal
2 | @echo off
3 |
4 | set ELEVATE_CMDLINE=%*
5 | set ELEVATE_APP=%1
6 |
7 | start wscript //nologo "%~dpn0.vbs" %*
8 |
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (Git, x86) (32 bit)/elevate.vbs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (Git, x86) (32 bit)/elevate.vbs
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (No Git)/ContextMenuTools.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [ContextMenuToolsInstall]
5 | CopyFiles = ContextMenuTools.Files.Inf
6 | CopyFiles = ContextMenuTools.Files.System
7 | CopyFiles = ContextMenuTools.Files.Icon
8 | DelFiles = ContextMenuTools.Files.Clean
9 | DelReg = ContextMenuTools.Clean
10 | AddReg = ContextMenuTools.AddReg
11 | DelReg = cmd.DelReg
12 |
13 | [DefaultInstall]
14 | CopyFiles = ContextMenuTools.Files.Inf
15 | CopyFiles = ContextMenuTools.Files.System
16 | CopyFiles = ContextMenuTools.Files.Icon
17 | DelFiles = ContextMenuTools.Files.Clean
18 | DelReg = ContextMenuTools.Clean
19 | AddReg = ContextMenuTools.AddReg
20 | DelReg = cmd.DelReg
21 |
22 | [DefaultUnInstall]
23 | DelFiles = ContextMenuTools.Files.Inf
24 | DelReg = ContextMenuTools.DelReg
25 | AddReg = cmd.AddReg
26 |
27 | [SourceDisksNames]
28 | 55 = "Context Menu Tools","",1
29 |
30 | [SourceDisksFiles]
31 | ContextMenuTools.INF = 55
32 | cmd.ico = 55
33 | cmdAdmin.ico = 55
34 | PowerShell.ico = 55
35 | PowerShellAdmin.ico = 55
36 | Git.ico = 55
37 |
38 | [DestinationDirs]
39 | ContextMenuTools.Files.Inf = 17
40 | ContextMenuTools.Files.Clean = 17
41 | ContextMenuTools.Files.System = 11
42 | ContextMenuTools.Files.Icon = 11
43 |
44 | [ContextMenuTools.Files.Inf]
45 | ContextMenuTools.INF
46 |
47 | [ContextMenuTools.Files.System]
48 | Elevate.cmd
49 | Elevate.vbs
50 |
51 | [ContextMenuTools.Files.Icon]
52 | cmd.ico
53 | cmdAdmin.ico
54 | PowerShell.ico
55 | PowerShellAdmin.ico
56 | Git.ico
57 |
58 | [ContextMenuTools.Files.Clean]
59 | ;Remove .inf files
60 | AlwaysShowOpenWith.inf
61 | KeepPowerShellBlue.inf
62 | KeepCommandWindowScrollable.inf
63 |
64 | ContextMenuTools.inf
65 |
66 | GitBashHere.inf
67 |
68 | CommandPromptHere.inf
69 | CommandPromptHereExtended.inf
70 | CommandPromptHereAdministrator.inf
71 | CommandPromptHereAdministratorExtended.inf
72 |
73 | StartPowerShellHere.inf
74 | StartPowerShellHereExtended.inf
75 | StartPowerShellHereAdministrator.inf
76 | StartPowerShellHereAdministratorExtended.inf
77 |
78 | [ContextMenuTools.Clean]
79 | ;Remove Program Uninstall entries
80 | HKLM,%CDHERE%\KeepPowerShellBlue
81 | HKLM,%CDHERE%\KeepCommandWindowScrollable
82 |
83 | HKLM,%CDHERE%\ContextMenuTools
84 |
85 | HKLM,%CDHERE%\GitBashHere
86 |
87 | HKLM,%CDHERE%\CommandPromptHere
88 | HKLM,%CDHERE%\CommandPromptHereExtended
89 | HKLM,%CDHERE%\CommandPromptHereAdministrator
90 | HKLM,%CDHERE%\CommandPromptHereAdministratorExtended
91 |
92 | HKLM,%CDHERE%\StartPowerShellHere
93 | HKLM,%CDHERE%\StartPowerShellHereExtended
94 | HKLM,%CDHERE%\StartPowerShellHereAdministrator
95 | HKLM,%CDHERE%\StartPowerShellHereAdministratorExtended
96 |
97 | ;Remove Registry Entries
98 | HKCR,*\Shell\AlwaysShowOpenWith
99 |
100 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe
101 |
102 | HKCR,Directory\Shell\CommandPromptHere
103 | HKCR,Directory\Background\Shell\CommandPromptHere
104 | HKCR,Drive\Shell\CommandPromptHere
105 |
106 | HKCR,Directory\Shell\CommandPromptHereAdministrator
107 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator
108 | HKCR,Drive\Shell\CommandPromptHereAdministrator
109 |
110 | HKCR,Directory\Shell\StartPowerShellHere
111 | HKCR,Directory\Background\Shell\StartPowerShellHere
112 | HKCR,Drive\Shell\StartPowerShellHere
113 |
114 | HKCR,Directory\Shell\StartPowerShellHereAdministrator
115 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator
116 | HKCR,Drive\Shell\StartPowerShellHereAdministrator
117 |
118 | [ContextMenuTools.AddReg]
119 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
120 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
121 | HKLM,%UDHERE%,DisplayIcon,,"%SystemRoot%\System32\PowerShellAdmin.ico"
122 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\ContextMenuTools.inf"
123 |
124 | ;Adds entries when right-clicking a Directory
125 | HKCR,Directory\Shell\CommandPromptHere,,,"%cmdContextText%"
126 | HKCR,Directory\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
127 | HKCR,Directory\Shell\CommandPromptHere,NoWorkingDirectory,,""
128 | HKCR,Directory\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
129 |
130 | HKCR,Directory\Shell\CommandPromptHereAdministrator,,,"%cmdAdminContextText%"
131 | HKCR,Directory\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
132 | HKCR,Directory\Shell\CommandPromptHereAdministrator,NoWorkingDirectory,,""
133 | HKCR,Directory\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
134 |
135 | HKCR,Directory\Shell\StartPowerShellHere,,,"%PowerShellContextText%"
136 | HKCR,Directory\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
137 | HKCR,Directory\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
138 |
139 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,,,"%PowerShellAdminContextText%"
140 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
141 | HKCR,Directory\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
142 | HKCR,Directory\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle + ': ' + '%L' } else { $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%L' }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' '; }; "" "
143 |
144 | ;Adds entries when right-clicking "empty space" in a directory
145 | HKCR,Directory\Background\Shell\CommandPromptHere,,,"%cmdContextText%"
146 | HKCR,Directory\Background\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
147 | HKCR,Directory\Background\Shell\CommandPromptHere,NoWorkingDirectory,,""
148 | HKCR,Directory\Background\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
149 |
150 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,,,"%cmdAdminContextText%"
151 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
152 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
153 |
154 | HKCR,Directory\Background\Shell\StartPowerShellHere,,,"%PowerShellContextText%"
155 | HKCR,Directory\Background\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
156 | HKCR,Directory\Background\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""$host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
157 |
158 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,,,"%PowerShellAdminContextText%"
159 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
160 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
161 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%V'; if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle + ': ' + '%V' } else { $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V' }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) + '>') -nonewline; return ' '; }; "" "
162 |
163 | ;Adds entries when right-clicking a Drive
164 | HKCR,Drive\Shell\CommandPromptHere,,,"%cmdContextText%"
165 | HKCR,Drive\Shell\CommandPromptHere,Icon,0x00020000,"%SystemRoot%\System32\cmd.ico"
166 | HKCR,Drive\Shell\CommandPromptHere,NoWorkingDirectory,,""
167 | HKCR,Drive\Shell\CommandPromptHere\command,,0x00020000,"cmd /s /k ""VER && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
168 |
169 | HKCR,Drive\Shell\CommandPromptHereAdministrator,,,"%cmdAdminContextText%"
170 | HKCR,Drive\Shell\CommandPromptHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\cmdAdmin.ico"
171 | HKCR,Drive\Shell\CommandPromptHereAdministrator,NoWorkingDirectory,,""
172 | HKCR,Drive\Shell\CommandPromptHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && TITLE Command Prompt: %V && PUSHD ""%V"" "" "
173 |
174 | HKCR,Drive\Shell\StartPowerShellHere,,,"%PowerShellContextText%"
175 | HKCR,Drive\Shell\StartPowerShellHere,Icon,0x00020000,"%SystemRoot%\System32\PowerShell.ico"
176 | HKCR,Drive\Shell\StartPowerShellHere\command,,0x00020000,"""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%V'; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
177 |
178 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,,,"%PowerShellAdminContextText%"
179 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,Icon,0x00020000,"%SystemRoot%\System32\PowerShellAdmin.ico"
180 | HKCR,Drive\Shell\StartPowerShellHereAdministrator,NoWorkingDirectory,,""
181 | HKCR,Drive\Shell\StartPowerShellHereAdministrator\command,,0x00020000,"cmd /c Elevate.cmd ""%SystemRoot%\System32\windowspowershell\v1.0\PowerShell.exe"" -NoExit -Command ""Set-Location -LiteralPath '%L'; if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle + ': ' + '%L' } else { $host.ui.rawui.windowtitle = $host.ui.rawui.windowtitle + ': ' + '%L' }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) + '>') -nonewline; return ' '; }; "" "
182 |
183 | ;Make PowerShell keep default blue when opened from .exe
184 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,,,
185 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ScreenColors,0x00010001,0x00000056
186 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,PopupColors,0x00010001,0x000000f3
187 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable00,0x00010001,0x00562401
188 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable01,0x00010001,0x00800000
189 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable02,0x00010001,0x00008000
190 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable03,0x00010001,0x00808000
191 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable04,0x00010001,0x00000080
192 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable05,0x00010001,0x00562401
193 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable06,0x00010001,0x00f0edee
194 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable07,0x00010001,0x00c0c0c0
195 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable08,0x00010001,0x00808080
196 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable09,0x00010001,0x00ff0000
197 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable10,0x00010001,0x0000ff00
198 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable11,0x00010001,0x00ffff00
199 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable12,0x00010001,0x000000ff
200 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable13,0x00010001,0x00ff00ff
201 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable14,0x00010001,0x0000ffff
202 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable15,0x00010001,0x00ffffff
203 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,InsertMode,0x00010001,0x00000001
204 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,QuickEdit,0x00010001,0x00000001
205 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ScreenBufferSize,0x00010001,0x0bb80064
206 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,WindowSize,0x00010001,0x00280064
207 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FontSize,0x00010001,0x000c0008
208 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FontFamily,0x00010001,0x00000030
209 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FontWeight,0x00010001,0x00000190
210 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FaceName,,"Terminal"
211 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,CursorSize,0x00010001,0x00000019
212 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,HistoryBufferSize,0x00010001,0x00000032
213 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,NumberOfHistoryBuffers,0x00010001,0x00000004
214 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,HistoryNoDup,0x00010001,0x00000000
215 |
216 | ;Make Command Window scrollable when opened from .exe
217 | HKCU,Console\%SystemRoot%_system32_cmd.exe,,,
218 | HKCU,Console\%SystemRoot%_system32_cmd.exe,InsertMode,0x00010001,0x00000001
219 | HKCU,Console\%SystemRoot%_system32_cmd.exe,QuickEdit,0x00010001,0x00000001
220 | HKCU,Console\%SystemRoot%_system32_cmd.exe,ScreenBufferSize,0x00010001,0x0bb80050
221 | HKCU,Console\%SystemRoot%_system32_cmd.exe,WindowSize,0x00010001,0x00200050
222 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FontSize,0x00010001,0x000c0008
223 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FontFamily,0x00010001,0x00000030
224 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FontWeight,0x00010001,0x00000190
225 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FaceName,,"Terminal"
226 | HKCU,Console\%SystemRoot%_system32_cmd.exe,CursorSize,0x00010001,0x00000019
227 | HKCU,Console\%SystemRoot%_system32_cmd.exe,HistoryBufferSize,0x00010001,0x00000032
228 | HKCU,Console\%SystemRoot%_system32_cmd.exe,NumberOfHistoryBuffers,0x00010001,0x00000004
229 | HKCU,Console\%SystemRoot%_system32_cmd.exe,HistoryNoDup,0x00010001,0x00000000
230 |
231 | [ContextMenuTools.DelReg]
232 | HKLM,%UDHERE%
233 |
234 | HKCR,Directory\Shell\CommandPromptHere
235 | HKCR,Directory\Background\Shell\CommandPromptHere
236 | HKCR,Drive\Shell\CommandPromptHere
237 |
238 | HKCR,Directory\Shell\CommandPromptHereAdministrator
239 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator
240 | HKCR,Drive\Shell\CommandPromptHereAdministrator
241 |
242 | HKCR,Directory\Shell\CommandPromptHereExtended
243 | HKCR,Directory\Background\Shell\CommandPromptHereExtended
244 | HKCR,Drive\Shell\CommandPromptHereExtended
245 |
246 | HKCR,Directory\Shell\CommandPromptHereAdministratorExtended
247 | HKCR,Directory\Background\Shell\CommandPromptHereAdministratorExtended
248 | HKCR,Drive\Shell\CommandPromptHereAdministratorExtended
249 |
250 | HKCR,Directory\Shell\Git_Shell
251 | HKCR,Directory\Background\Shell\Git_Shell
252 | HKCR,Drive\Shell\Git_Shell
253 |
254 | HKCR,Directory\Shell\StartPowerShellHere
255 | HKCR,Directory\Background\Shell\StartPowerShellHere
256 | HKCR,Drive\Shell\StartPowerShellHere
257 |
258 | HKCR,Directory\Shell\StartPowerShellHereAdministrator
259 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator
260 | HKCR,Drive\Shell\StartPowerShellHereAdministrator
261 |
262 | HKCR,Directory\Shell\StartPowerShellHereExtended
263 | HKCR,Directory\Background\Shell\StartPowerShellHereExtended
264 | HKCR,Drive\Shell\StartPowerShellHereExtended
265 |
266 | HKCR,Directory\Shell\StartPowerShellHereAdministratorExtended
267 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministratorExtended
268 | HKCR,Drive\Shell\StartPowerShellHereAdministratorExtended
269 |
270 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe
271 |
272 | HKCU,Console\%SystemRoot%_system32_cmd.exe
273 |
274 | [cmd.AddReg]
275 | HKCR,Directory\Shell\cmd,,,"@shell32.dll,-8506"
276 | HKCR,Directory\Shell\cmd,Extended,,""
277 | HKCR,Directory\Shell\cmd,NoWorkingDirectory,,""
278 | HKCR,Directory\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"""
279 |
280 | HKCR,Directory\Background\Shell\cmd,,,"@shell32.dll,-8506"
281 | HKCR,Directory\Background\Shell\cmd,Extended,,""
282 | HKCR,Directory\Background\Shell\cmd,NoWorkingDirectory,,""
283 | HKCR,Directory\Background\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"""
284 |
285 | HKCR,Drive\Shell\cmd,,,"@shell32.dll,-8506"
286 | HKCR,Drive\Shell\cmd,Extended,,""
287 | HKCR,Drive\Shell\cmd,NoWorkingDirectory,,""
288 | HKCR,Drive\Shell\cmd\command,,0x00020000,"cmd.exe /s /k pushd ""%V"""
289 |
290 | [cmd.DelReg]
291 | HKCR,Directory\Shell\cmd
292 | HKCR,Directory\Background\Shell\cmd
293 | HKCR,Drive\Shell\cmd
294 |
295 | [Strings]
296 | DisplayName="Context Menu Tools (SuperUser)"
297 | DisplayVersion="1.2"
298 | cmdContextText="&Command Prompt Here"
299 | cmdAdminContextText="&Command Prompt Here (Administrator)"
300 | PowerShellContextText="Start &PowerShell Here"
301 | PowerShellAdminContextText="Start &PowerShell Here (Administrator)"
302 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\ContextMenuTools"
303 | CDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall"
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (No Git)/Git.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (No Git)/Git.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (No Git)/PowerShell.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (No Git)/PowerShell.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (No Git)/PowerShellAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (No Git)/PowerShellAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (No Git)/cmd.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (No Git)/cmd.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (No Git)/cmdAdmin.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (No Git)/cmdAdmin.ico
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (No Git)/elevate.cmd:
--------------------------------------------------------------------------------
1 | @setlocal
2 | @echo off
3 |
4 | set ELEVATE_CMDLINE=%*
5 | set ELEVATE_APP=%1
6 |
7 | start wscript //nologo "%~dpn0.vbs" %*
8 |
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install (No Git)/elevate.vbs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Default Installs/SuperUser Install (No Git)/elevate.vbs
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install With Git.bat:
--------------------------------------------------------------------------------
1 | @ECHO Off
2 |
3 | ECHO Start
4 |
5 | SET RegQry=HKLM\Hardware\Description\System\CentralProcessor\0
6 |
7 | reg.exe Query %RegQry% > checkOS.txt
8 |
9 | FIND /i "x86" < CheckOS.txt > StringCheck.txt
10 |
11 | SET is64 = %ERRORLEVEL%
12 |
13 | DEL CheckOS.txt
14 |
15 | DEL StringCheck.txt
16 |
17 | IF is64 == 0 (
18 | ECHO 32 bit Machine Detected
19 | CD "SuperUser Install (Git, x86) (32 bit)"
20 | ) ELSE (
21 | ECHO 64 bit Machine Detected
22 | CD "SuperUser Install (Git, x64) (64 bit)"
23 | )
24 |
25 | ECHO Installing...
26 |
27 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\ContextMenuTools.inf
28 |
29 | ECHO End
--------------------------------------------------------------------------------
/Default Installs/SuperUser Install Without Git.bat:
--------------------------------------------------------------------------------
1 | @ECHO Off
2 |
3 | ECHO Start
4 |
5 | CD "SuperUser Install (No Git)"
6 |
7 | ECHO Installing...
8 |
9 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\ContextMenuTools.inf
10 |
11 | ECHO End
--------------------------------------------------------------------------------
/Images/AdministratorCommandPrompt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/AdministratorCommandPrompt.png
--------------------------------------------------------------------------------
/Images/ContextMenuTools.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/ContextMenuTools.ico
--------------------------------------------------------------------------------
/Images/ContextMenuTools.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/ContextMenuTools.png
--------------------------------------------------------------------------------
/Images/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/Default.png
--------------------------------------------------------------------------------
/Images/DefaultInstall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/DefaultInstall.png
--------------------------------------------------------------------------------
/Images/DefaultPrompts Branch - PoshGit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/DefaultPrompts Branch - PoshGit.png
--------------------------------------------------------------------------------
/Images/Git.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/Git.ico
--------------------------------------------------------------------------------
/Images/Icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/Icon.ico
--------------------------------------------------------------------------------
/Images/PowerShell.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/PowerShell.ico
--------------------------------------------------------------------------------
/Images/PowerShellDefault.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/PowerShellDefault.png
--------------------------------------------------------------------------------
/Images/Sample Context Menu (Default Install).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/Sample Context Menu (Default Install).png
--------------------------------------------------------------------------------
/Images/Sample Extended Context Menu (Default Install).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/Sample Extended Context Menu (Default Install).png
--------------------------------------------------------------------------------
/Images/SuperUser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/SuperUser.png
--------------------------------------------------------------------------------
/Images/SuperUserInstall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/SuperUserInstall.png
--------------------------------------------------------------------------------
/Images/Uninstall.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/Uninstall.ico
--------------------------------------------------------------------------------
/Images/button_overlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/button_overlay.png
--------------------------------------------------------------------------------
/Images/overlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Images/overlay.png
--------------------------------------------------------------------------------
/Installer/Installer/Installer.isproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Express
5 |
6 | Debug
7 | $(Configuration)
8 |
9 |
10 |
11 |
12 |
13 |
14 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/Installer/Installer/Installer.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2012
4 | Project("{6141683F-8A12-4E36-9623-2EB02B2C2303}") = "Installer", "Installer.isproj", "{18E107F4-8ABE-4CED-8DE5-FB6FB981BAAA}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | CD_ROM|Default = CD_ROM|Default
9 | DVD-5|Default = DVD-5|Default
10 | SingleImage|Default = SingleImage|Default
11 | EndGlobalSection
12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
13 | {18E107F4-8ABE-4CED-8DE5-FB6FB981BAAA}.CD_ROM|Default.ActiveCfg = CD_ROM
14 | {18E107F4-8ABE-4CED-8DE5-FB6FB981BAAA}.CD_ROM|Default.Build.0 = CD_ROM
15 | {18E107F4-8ABE-4CED-8DE5-FB6FB981BAAA}.DVD-5|Default.ActiveCfg = DVD-5
16 | {18E107F4-8ABE-4CED-8DE5-FB6FB981BAAA}.DVD-5|Default.Build.0 = DVD-5
17 | {18E107F4-8ABE-4CED-8DE5-FB6FB981BAAA}.SingleImage|Default.ActiveCfg = SingleImage
18 | {18E107F4-8ABE-4CED-8DE5-FB6FB981BAAA}.SingleImage|Default.Build.0 = SingleImage
19 | EndGlobalSection
20 | GlobalSection(SolutionProperties) = preSolution
21 | HideSolutionNode = FALSE
22 | EndGlobalSection
23 | EndGlobal
24 |
--------------------------------------------------------------------------------
/Installer/Installer/Installer.v11.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Installer/Installer/Installer.v11.suo
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Revised BSD License
2 | Copyright (c) 2010, Eric Menze
3 | All rights reserved.
4 |
5 | Redistribution and use in source and binary forms, with or without
6 | modification, are permitted provided that the following conditions are met:
7 |
8 | * Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 |
11 | * Redistributions in binary form must reproduce the above copyright
12 | notice, this list of conditions and the following disclaimer in the
13 | documentation and/or other materials provided with the distribution.
14 |
15 | * Neither the name of Eric Menze nor the
16 | names of contributors may be used to endorse or promote products
17 | derived from this software without specific prior written permission.
18 |
19 | THIS SOFTWARE IS PROVIDED BY Eric Menze ''AS IS'' AND ANY
20 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 | DISCLAIMED. IN NO EVENT SHALL Eric Menze BE LIABLE FOR ANY
23 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 |
30 | The views and conclusions contained in the software and documentation are those
31 | of the authors and should not be interpreted as representing official policies,
32 | either expressed or implied.
--------------------------------------------------------------------------------
/Other Tools/Always Show Open With/AlwaysShowOpenWith.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [AlwaysShowOpenWithInstall]
5 | CopyFiles = AlwaysShowOpenWith.Files.Inf
6 | AddReg = AlwaysShowOpenWith.AddReg
7 |
8 | [DefaultInstall]
9 | CopyFiles = AlwaysShowOpenWith.Files.Inf
10 | AddReg = AlwaysShowOpenWith.AddReg
11 |
12 | [DefaultUnInstall]
13 | DelFiles = AlwaysShowOpenWith.Files.Inf
14 | DelReg = AlwaysShowOpenWith.DelReg
15 |
16 | [SourceDisksNames]
17 | 55="Always Show Open With","",1
18 |
19 | [SourceDisksFiles]
20 | AlwaysShowOpenWith.INF=55
21 |
22 | [DestinationDirs]
23 | AlwaysShowOpenWith.Files.Inf = 17
24 |
25 | [AlwaysShowOpenWith.Files.Inf]
26 | AlwaysShowOpenWith.INF
27 |
28 | [AlwaysShowOpenWith.AddReg]
29 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
30 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
31 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\AlwaysShowOpenWith.inf"
32 |
33 | ;Adds entry when right-clicking any file type
34 | HKCR,*\Shell\AlwaysShowOpenWith,,,"%ContextText%"
35 | HKCR,*\Shell\AlwaysShowOpenWith\command,,,"C:\Windows\rundll32.exe shell32.dll,OpenAs_RunDLL %1"
36 |
37 | [AlwaysShowOpenWith.DelReg]
38 | HKLM,%UDHERE%
39 | HKCR,*\Shell\AlwaysShowOpenWith
40 |
41 | [Strings]
42 | DisplayName="Context Menu: Always Show Open With"
43 | DisplayVersion="1.0"
44 | ContextText="Op&en With..."
45 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\AlwaysShowOpenWith"
46 |
--------------------------------------------------------------------------------
/Other Tools/Command Description.txt:
--------------------------------------------------------------------------------
1 |
2 | Command Prompt:
3 |
4 | "cmd /s /k ""VER && TITLE %%%CD%%%"" "
5 |
6 | Command Prompt Administrator:
7 |
8 | "cmd /c Elevate.cmd cmd /s /k ""ECHO --- Administrator Command Prompt --- && VER && COLOR 0C && @cd %%%CD%%% && TITLE %%%CD%%%"" "
9 |
10 | PowerShell:
11 |
12 | "PowerShell.exe -NoExit -Command ""$global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('' + $CurrentUser.Name) -nonewline -foregroundcolor DarkGreen; Write-Host (' ' + $(get-location) +'>') -nonewline; return ' ' }; "" "
13 |
14 | PowerShell Administrator:
15 |
16 | "cmd /c Elevate.cmd PowerShell.exe -NoExit -Command ""if (!$host.ui.rawui.windowtitle.Contains('Administrator')) { $host.ui.rawui.windowtitle = 'Administrator: ' + $host.ui.rawui.windowtitle }; $global:CurrentUser = [System.Security.Principal.WindowsIdentity]::GetCurrent(); function Prompt { Write-Host ('Administrator') -nonewline -foregroundcolor Red; Write-Host (' ' + $(get-location) + '>') -nonewline; return ' '; };"" "
--------------------------------------------------------------------------------
/Other Tools/Keep Command Window Scrollable.reg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Other Tools/Keep Command Window Scrollable.reg
--------------------------------------------------------------------------------
/Other Tools/Keep PowerShell Blue.reg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ehryk/ContextMenuTools/d3e02e4d0a2a3b36248a080dd83a1095fbfbef44/Other Tools/Keep PowerShell Blue.reg
--------------------------------------------------------------------------------
/Other Tools/KeepCommandWindowScrollable.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [KeepPowerShellBlueInstall]
5 | CopyFiles = KeepCommandWindowScrollable.Files.Inf
6 | AddReg = KeepCommandWindowScrollable.AddReg
7 |
8 | [DefaultInstall]
9 | CopyFiles = KeepCommandWindowScrollable.Files.Inf
10 | AddReg = KeepCommandWindowScrollable.AddReg
11 |
12 | [DefaultUnInstall]
13 | DelReg = KeepCommandWindowScrollable.DelReg
14 |
15 | [SourceDisksNames]
16 | 55 = "Keep Command Window Scrollable","",1
17 |
18 | [SourceDisksFiles]
19 | KeepCommandWindowScrollable.INF = 55
20 |
21 | [DestinationDirs]
22 | KeepCommandWindowScrollable.Files.Inf = 17
23 |
24 | [KeepCommandWindowScrollable.Files.Inf]
25 | KeepCommandWindowScrollable.INF
26 |
27 | [KeepCommandWindowScrollable.AddReg]
28 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
29 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
30 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\KeepCommandWindowScrollable.inf"
31 |
32 | ;Make Command Window scrollable when opened from .exe
33 | HKCU,Console\%SystemRoot%_system32_cmd.exe,,,
34 | HKCU,Console\%SystemRoot%_system32_cmd.exe,InsertMode,0x00010001,0x00000001
35 | HKCU,Console\%SystemRoot%_system32_cmd.exe,QuickEdit,0x00010001,0x00000001
36 | HKCU,Console\%SystemRoot%_system32_cmd.exe,ScreenBufferSize,0x00010001,0x0bb80050
37 | HKCU,Console\%SystemRoot%_system32_cmd.exe,WindowSize,0x00010001,0x00200050
38 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FontSize,0x00010001,0x000c0008
39 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FontFamily,0x00010001,0x00000030
40 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FontWeight,0x00010001,0x00000190
41 | HKCU,Console\%SystemRoot%_system32_cmd.exe,FaceName,,"Terminal"
42 | HKCU,Console\%SystemRoot%_system32_cmd.exe,CursorSize,0x00010001,0x00000019
43 | HKCU,Console\%SystemRoot%_system32_cmd.exe,HistoryBufferSize,0x00010001,0x00000032
44 | HKCU,Console\%SystemRoot%_system32_cmd.exe,NumberOfHistoryBuffers,0x00010001,0x00000004
45 | HKCU,Console\%SystemRoot%_system32_cmd.exe,HistoryNoDup,0x00010001,0x00000000
46 |
47 | [KeepCommandWindowScrollable.DelReg]
48 | HKLM,%UDHERE%
49 | HKCU,Console\%SystemRoot%_system32_cmd.exe
50 |
51 | [Strings]
52 | DisplayName="Keep Command Window Scrollable"
53 | DisplayVersion="1.0"
54 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\KeepCommandWindowScrollable"
55 |
--------------------------------------------------------------------------------
/Other Tools/KeepGitBashScrollable.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [KeepPowerShellBlueInstall]
5 | CopyFiles = KeepGitBashScrollable.Files.Inf
6 | AddReg = KeepGitBashScrollable.AddReg
7 |
8 | [DefaultInstall]
9 | CopyFiles = KeepGitBashScrollable.Files.Inf
10 | AddReg = KeepGitBashScrollable.AddReg
11 |
12 | [DefaultUnInstall]
13 | DelReg = KeepGitBashScrollable.DelReg
14 |
15 | [SourceDisksNames]
16 | 55 = "Keep Git Bash Scrollable","",1
17 |
18 | [SourceDisksFiles]
19 | KeepGitBashScrollable.INF = 55
20 |
21 | [DestinationDirs]
22 | KeepGitBashScrollable.Files.Inf = 17
23 |
24 | [KeepGitBashScrollable.Files.Inf]
25 | KeepGitBashScrollable.INF
26 |
27 | [KeepGitBashScrollable.AddReg]
28 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
29 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
30 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\KeepGitBashScrollable.inf"
31 |
32 | ;Make Command Window scrollable when opened from .exe
33 | HKCU,Console\%SystemDrive%_Cygwin_sh.exe,,,
34 | HKCU,Console\%SystemDrive%_Cygwin_sh.exe,InsertMode,0x00010001,0x00000001
35 | HKCU,Console\%SystemDrive%_Cygwin_sh.exe,QuickEdit,0x00010001,0x00000001
36 | HKCU,Console\%SystemDrive%_Cygwin_sh.exe,ScreenBufferSize,0x00010001,0x0bb80050
37 | HKCU,Console\%SystemDrive%_Cygwin_sh.exe,HistoryBufferSize,0x00010001,0x00000032
38 | HKCU,Console\%SystemDrive%_Cygwin_sh.exe,NumberOfHistoryBuffers,0x00010001,0x00000004
39 | HKCU,Console\%SystemDrive%_Cygwin_sh.exe,HistoryNoDup,0x00010001,0x00000000
40 |
41 | [KeepGitBashScrollable.DelReg]
42 | HKLM,%UDHERE%
43 | HKCU,Console\%SystemDrive%_Cygwin_sh.exe
44 |
45 | [Strings]
46 | DisplayName="Keep Git Bash Scrollable"
47 | DisplayVersion="1.0"
48 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\KeepGitBashScrollable"
49 |
--------------------------------------------------------------------------------
/Other Tools/KeepPowerShellBlue.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [KeepPowerShellBlueInstall]
5 | CopyFiles = KeepPowerShellBlue.Files.Inf
6 | AddReg = KeepPowerShellBlue.AddReg
7 |
8 | [DefaultInstall]
9 | CopyFiles = KeepPowerShellBlue.Files.Inf
10 | AddReg = KeepPowerShellBlue.AddReg
11 |
12 | [DefaultUnInstall]
13 | DelReg = KeepPowerShellBlue.DelReg
14 |
15 | [SourceDisksNames]
16 | 55 = "Keep PowerShell Blue","",1
17 |
18 | [SourceDisksFiles]
19 | KeepPowerShellBlue.INF = 55
20 |
21 | [DestinationDirs]
22 | KeepPowerShellBlue.Files.Inf = 17
23 |
24 | [KeepPowerShellBlue.Files.Inf]
25 | KeepPowerShellBlue.INF
26 |
27 | [KeepPowerShellBlue.AddReg]
28 | HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
29 | HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
30 | HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\KeepPowerShellBlue.inf"
31 |
32 | ;Make PowerShell keep default blue when opened from .exe
33 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,,,
34 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ScreenColors,0x00010001,0x00000056
35 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,PopupColors,0x00010001,0x000000f3
36 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable00,0x00010001,0x00562401
37 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable01,0x00010001,0x00800000
38 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable02,0x00010001,0x00008000
39 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable03,0x00010001,0x00808000
40 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable04,0x00010001,0x00000080
41 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable05,0x00010001,0x00562401
42 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable06,0x00010001,0x00f0edee
43 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable07,0x00010001,0x00c0c0c0
44 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable08,0x00010001,0x00808080
45 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable09,0x00010001,0x00ff0000
46 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable10,0x00010001,0x0000ff00
47 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable11,0x00010001,0x00ffff00
48 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable12,0x00010001,0x000000ff
49 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable13,0x00010001,0x00ff00ff
50 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable14,0x00010001,0x0000ffff
51 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ColorTable15,0x00010001,0x00ffffff
52 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,InsertMode,0x00010001,0x00000001
53 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,QuickEdit,0x00010001,0x00000001
54 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,ScreenBufferSize,0x00010001,0x0bb80064
55 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,WindowSize,0x00010001,0x00280064
56 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FontSize,0x00010001,0x000c0008
57 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FontFamily,0x00010001,0x00000030
58 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FontWeight,0x00010001,0x00000190
59 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,FaceName,,"Terminal"
60 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,CursorSize,0x00010001,0x00000019
61 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,HistoryBufferSize,0x00010001,0x00000032
62 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,NumberOfHistoryBuffers,0x00010001,0x00000004
63 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe,HistoryNoDup,0x00010001,0x00000000
64 |
65 | [KeepPowerShellBlue.DelReg]
66 | HKLM,%UDHERE%
67 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe
68 |
69 | [Strings]
70 | DisplayName="Keep PowerShell Blue"
71 | DisplayVersion="1.0"
72 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\KeepPowerShellBlue"
73 |
--------------------------------------------------------------------------------
/Other Tools/Return Default Git Context Menu Entries/Bash(x64).inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [ReturnDefaultInstall]
5 | AddReg = ReturnDefault.AddReg
6 |
7 | [DefaultInstall]
8 | AddReg = ReturnDefault.AddReg
9 |
10 | [DefaultUnInstall]
11 |
12 | [SourceDisksNames]
13 | 55="Return Default(x86)","",1
14 |
15 | [SourceDisksFiles]
16 | ReturnDefault.INF=55
17 |
18 | [DestinationDirs]
19 |
20 | [ReturnDefault.Files.Inf]
21 | ReturnDefault.INF
22 |
23 | [ReturnDefault.Files.Icon]
24 |
25 | [ReturnDefault.AddReg]
26 | ;Adds entry when right-clicking a Directory
27 | HKCR,Directory\Shell\git_shell,,,"%ContextText%"
28 | HKCR,Directory\Shell\git_shell\command,,,"wscript ""%24%\Program Files (x86)\Git\Git Bash.vbs"" ""%1"""
29 |
30 | [ReturnDefault.DelReg]
31 |
32 | [Strings]
33 | ContextText="Git Ba&sh Here"
34 |
--------------------------------------------------------------------------------
/Other Tools/Return Default Git Context Menu Entries/Bash(x86).inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [ReturnDefaultInstall]
5 | AddReg = ReturnDefault.AddReg
6 |
7 | [DefaultInstall]
8 | AddReg = ReturnDefault.AddReg
9 |
10 | [DefaultUnInstall]
11 |
12 | [SourceDisksNames]
13 | 55="Return Default(x86)","",1
14 |
15 | [SourceDisksFiles]
16 | ReturnDefault.INF=55
17 |
18 | [DestinationDirs]
19 |
20 | [ReturnDefault.Files.Inf]
21 | ReturnDefault.INF
22 |
23 | [ReturnDefault.Files.Icon]
24 |
25 | [ReturnDefault.AddReg]
26 | ;Adds entry when right-clicking a Directory
27 | HKCR,Directory\Shell\git_shell,,,"%ContextText%"
28 | HKCR,Directory\Shell\git_shell\command,,,"wscript ""%24%\Program Files\Git\Git Bash.vbs"" ""%1"""
29 |
30 | [ReturnDefault.DelReg]
31 |
32 | [Strings]
33 | ContextText="Git Ba&sh Here"
34 |
--------------------------------------------------------------------------------
/Other Tools/Return Default Git Context Menu Entries/BashAndGUI(x64).inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [ReturnDefaultInstall]
5 | AddReg = ReturnDefault.AddReg
6 |
7 | [DefaultInstall]
8 | AddReg = ReturnDefault.AddReg
9 |
10 | [DefaultUnInstall]
11 |
12 | [SourceDisksNames]
13 | 55="Return Default(x86)","",1
14 |
15 | [SourceDisksFiles]
16 | ReturnDefault.INF=55
17 |
18 | [DestinationDirs]
19 |
20 | [ReturnDefault.Files.Inf]
21 | ReturnDefault.INF
22 |
23 | [ReturnDefault.Files.Icon]
24 |
25 | [ReturnDefault.AddReg]
26 | ;Adds entry when right-clicking a Directory
27 | HKCR,Directory\Shell\git_shell,,,"%BashContextText%"
28 | HKCR,Directory\Shell\git_shell\command,,,"wscript ""%24%\Program Files (x86)\Git\Git Bash.vbs"" ""%1"""
29 |
30 | HKCR,Directory\Shell\git_gui,,,"%GUIContextText%"
31 | HKCR,Directory\Shell\git_gui\command,,,"wscript ""%24%\Program Files (x86)\Git\libexec\git-core\git-gui"" ""-working-dir"" ""%1"""
32 |
33 | [ReturnDefault.DelReg]
34 |
35 | [Strings]
36 | BashContextText="Git Ba&sh Here"
37 | GUIContextText="Git &GUI Here"
--------------------------------------------------------------------------------
/Other Tools/Return Default Git Context Menu Entries/BashAndGUI(x86).inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [ReturnDefaultInstall]
5 | AddReg = ReturnDefault.AddReg
6 |
7 | [DefaultInstall]
8 | AddReg = ReturnDefault.AddReg
9 |
10 | [DefaultUnInstall]
11 |
12 | [SourceDisksNames]
13 | 55="Return Default(x86)","",1
14 |
15 | [SourceDisksFiles]
16 | ReturnDefault.INF=55
17 |
18 | [DestinationDirs]
19 |
20 | [ReturnDefault.Files.Inf]
21 | ReturnDefault.INF
22 |
23 | [ReturnDefault.Files.Icon]
24 |
25 | [ReturnDefault.AddReg]
26 | ;Adds entry when right-clicking a Directory
27 | HKCR,Directory\Shell\git_shell,,,"%BashContextText%"
28 | HKCR,Directory\Shell\git_shell\command,,,"wscript ""%24%\Program Files\Git\Git Bash.vbs"" ""%1"""
29 |
30 | HKCR,Directory\Shell\git_gui,,,"%GUIContextText%"
31 | HKCR,Directory\Shell\git_gui\command,,,"wscript ""%24%\Program Files\Git\libexec\git-core\git-gui"" ""-working-dir"" ""%1"""
32 |
33 | [ReturnDefault.DelReg]
34 |
35 | [Strings]
36 | BashContextText="Git Ba&sh Here"
37 | GUIContextText="Git &GUI Here"
38 |
--------------------------------------------------------------------------------
/Other Tools/Source for EXEs/Default Install With Git.bat:
--------------------------------------------------------------------------------
1 | REM Start
2 |
3 | ECHO off
4 |
5 | SET RegQry=HKLM\Hardware\Description\System\CentralProcessor\0
6 |
7 | reg.exe Query %RegQry% > checkOS.txt
8 |
9 | FIND /i "x86" < CheckOS.txt > StringCheck.txt
10 |
11 | SET is64 = %ERRORLEVEL%
12 |
13 | DEL CheckOS.txt
14 |
15 | DEL StringCheck.txt
16 |
17 | IF is64 == 0 (
18 | Echo 32 bit Machine Detected
19 | CD "Default Install (Git, x86) (32 bit)"
20 | ) ELSE (
21 | Echo 64 bit Machine Detected
22 | CD "Default Install (Git, x64) (64 bit)"
23 | )
24 |
25 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\ContextMenuTools.inf
26 |
27 | REM End
--------------------------------------------------------------------------------
/Other Tools/Source for EXEs/Default Install Without Git.bat:
--------------------------------------------------------------------------------
1 | REM Start
2 |
3 | ECHO off
4 |
5 | CD "Default Install (No Git)"
6 |
7 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\ContextMenuTools.inf
8 |
9 | REM End
--------------------------------------------------------------------------------
/Other Tools/Source for EXEs/Default Install.bat:
--------------------------------------------------------------------------------
1 | REM Start
2 |
3 | ECHO off
4 |
5 | CD "Default Installs"
6 |
7 | IF EXIST "%SystemDrive%\Program Files (x86)\Git\Git Bash.vbs" (
8 | Echo 64 bit Machine with Git Detected
9 | CD "Default Install (Git, x64) (64 bit)"
10 | ) ELSE (
11 | IF EXIST "%SystemDrive%\Program Files\Git\Git Bash.vbs" (
12 | Echo 32 bit Machine with Git Detected
13 | CD "Default Install (Git, x64) (64 bit)"
14 | ) ELSE (
15 | ECHO Git not Detected
16 | CD "Default Install (No Git)"
17 | )
18 | )
19 |
20 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\ContextMenuTools.inf
21 |
22 | REM End
--------------------------------------------------------------------------------
/Other Tools/Source for EXEs/SuperUser Install With Git.bat:
--------------------------------------------------------------------------------
1 | REM Start
2 |
3 | ECHO off
4 |
5 | SET RegQry=HKLM\Hardware\Description\System\CentralProcessor\0
6 |
7 | reg.exe Query %RegQry% > checkOS.txt
8 |
9 | FIND /i "x86" < CheckOS.txt > StringCheck.txt
10 |
11 | SET is64 = %ERRORLEVEL%
12 |
13 | DEL CheckOS.txt
14 |
15 | DEL StringCheck.txt
16 |
17 | IF is64 == 0 (
18 | Echo 32 bit Machine Detected
19 | CD "SuperUser Install (Git, x86) (32 bit)"
20 | ) ELSE (
21 | Echo 64 bit Machine Detected
22 | CD "SuperUser Install (Git, x64) (64 bit)"
23 | )
24 |
25 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\ContextMenuTools.inf
26 |
27 | REM End
--------------------------------------------------------------------------------
/Other Tools/Source for EXEs/SuperUser Install Without Git.bat:
--------------------------------------------------------------------------------
1 | REM Start
2 |
3 | ECHO off
4 |
5 | CD "SuperUser Install (No Git)"
6 |
7 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\ContextMenuTools.inf
8 |
9 | REM End
--------------------------------------------------------------------------------
/Other Tools/Source for EXEs/SuperUser Install.bat:
--------------------------------------------------------------------------------
1 | REM Start
2 |
3 | ECHO off
4 |
5 | CD "Default Installs"
6 |
7 | IF EXIST "%SystemDrive%\Program Files (x86)\Git\Git Bash.vbs" (
8 | Echo 64 bit Machine with Git Detected
9 | CD "SuperUser Install (Git, x64) (64 bit)"
10 | ) ELSE (
11 | IF EXIST "%SystemDrive%\Program Files\Git\Git Bash.vbs" (
12 | Echo 32 bit Machine with Git Detected
13 | CD "SuperUser Install (Git, x64) (64 bit)"
14 | ) ELSE (
15 | ECHO Git not Detected
16 | CD "SuperUser Install (No Git)"
17 | )
18 | )
19 |
20 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\ContextMenuTools.inf
21 |
22 | REM End
--------------------------------------------------------------------------------
/Other Tools/Source for EXEs/Uninstall.bat:
--------------------------------------------------------------------------------
1 | REM Start
2 |
3 | ECHO off
4 |
5 | CD "Other Tools"
6 |
7 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\UninstallAll.inf
8 |
9 | REM Give back any Git Entries they may have had
10 |
11 | CD "Return Default Git Context Menu Entries"
12 |
13 | IF EXIST "%SystemDrive%\Program Files (x86)\Git\Git Bash.vbs" (
14 | ECHO 64 bit Bash
15 | GOTO B64
16 | )
17 | )
18 |
19 | IF EXIST "%SystemDrive%\Program Files\Git\Git Bash.vbs" (
20 | ECHO 32 bit Bash
21 | GOTO B32
22 | )
23 | )
24 |
25 | ECHO Git Not Installed
26 | EXIT 0
27 |
28 | :B64
29 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %CD%\Bash(x64).inf
30 | EXIT 0
31 |
32 | :B32
33 | rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %CD%\Bash(x86).inf
34 | EXIT 0
35 |
36 | REM End
37 |
--------------------------------------------------------------------------------
/Other Tools/UninstallAll.inf:
--------------------------------------------------------------------------------
1 | [version]
2 | Signature="$Windows NT$"
3 |
4 | [UninstallUnInstall]
5 | DelFiles = Uninstall.Files.Inf
6 | DelFiles = Uninstall.Files.System
7 | DelFiles = Uninstall.Files.Icon
8 | DelReg = Uninstall.DelReg
9 | AddReg = Uninstall.AddReg
10 |
11 | [DefaultInstall]
12 | DelFiles = Uninstall.Files.Inf
13 | DelFiles = Uninstall.Files.System
14 | DelFiles = Uninstall.Files.Icon
15 | DelReg = Uninstall.DelReg
16 | AddReg = Uninstall.AddReg
17 |
18 | [DefaultUnInstall]
19 | DelFiles = Uninstall.Files.Inf
20 | DelFiles = Uninstall.Files.System
21 | DelFiles = Uninstall.Files.Icon
22 | DelReg = Uninstall.DelReg
23 | AddReg = Uninstall.AddReg
24 |
25 | [Uninstall.Files.Inf]
26 | ;Remove .inf files
27 | AlwaysShowOpenWith.inf
28 | KeepPowerShellBlue.inf
29 | KeepCommandWindowScrollable.inf
30 |
31 | ContextMenuTools.inf
32 |
33 | GitBashHere.inf
34 |
35 | CommandPromptHere.inf
36 | CommandPromptHereExtended.inf
37 | CommandPromptHereAdministrator.inf
38 | CommandPromptHereAdministratorExtended.inf
39 |
40 | StartPowerShellHere.inf
41 | StartPowerShellHereExtended.inf
42 | StartPowerShellHereAdministrator.inf
43 | StartPowerShellHereAdministratorExtended.inf
44 |
45 | [Uninstall.Files.System]
46 | Elevate.cmd
47 | Elevate.vbs
48 |
49 | [Uninstall.Files.Icon]
50 | cmd.ico
51 | cmdAdmin.ico
52 | PowerShell.ico
53 | PowerShellAdmin.ico
54 | Git.ico
55 |
56 | [Uninstall.DelReg]
57 | ;Remove Program Uninstall entries
58 | HKLM,%UDHERE%\AlwaysShowOpenWith
59 | HKLM,%UDHERE%\KeepPowerShellBlue
60 | HKLM,%CDHERE%\KeepCommandWindowScrollable
61 |
62 | HKLM,%UDHERE%\ContextMenuTools
63 |
64 | HKLM,%UDHERE%\GitBashHere
65 |
66 | HKLM,%UDHERE%\CommandPromptHere
67 | HKLM,%UDHERE%\CommandPromptHereExtended
68 | HKLM,%UDHERE%\CommandPromptHereAdministrator
69 | HKLM,%UDHERE%\CommandPromptHereAdministratorExtended
70 |
71 | HKLM,%UDHERE%\StartPowerShellHere
72 | HKLM,%UDHERE%\StartPowerShellHereExtended
73 | HKLM,%UDHERE%\StartPowerShellHereAdministrator
74 | HKLM,%UDHERE%\StartPowerShellHereAdministratorExtended
75 |
76 | ;Remove Registry Entries
77 | HKCR,*\Shell\AlwaysShowOpenWith
78 |
79 | HKCU,Console\%SystemRoot%_system32_WindowsPowerShell_v1.0_powershell.exe
80 |
81 | HKCR,Directory\Shell\Git_Shell
82 | HKCR,Directory\Background\Shell\Git_Shell
83 | HKCR,Drive\Shell\Git_Shell
84 |
85 | HKCR,Directory\Shell\CommandPromptHere
86 | HKCR,Directory\Background\Shell\CommandPromptHere
87 | HKCR,Drive\Shell\CommandPromptHere
88 |
89 | HKCR,Directory\Shell\CommandPromptHereAdministrator
90 | HKCR,Directory\Background\Shell\CommandPromptHereAdministrator
91 | HKCR,Drive\Shell\CommandPromptHereAdministrator
92 |
93 | HKCR,Directory\Shell\StartPowerShellHere
94 | HKCR,Directory\Background\Shell\StartPowerShellHere
95 | HKCR,Drive\Shell\StartPowerShellHere
96 |
97 | HKCR,Directory\Shell\StartPowerShellHereAdministrator
98 | HKCR,Directory\Background\Shell\StartPowerShellHereAdministrator
99 | HKCR,Drive\Shell\StartPowerShellHereAdministrator
100 |
101 | [Uninstall.AddReg]
102 | HKCR,Directory\Shell\cmd,,,"@shell32.dll,-8506"
103 | HKCR,Directory\Shell\cmd,Extended,,""
104 | HKCR,Directory\Shell\cmd,NoWorkingDirectory,,""
105 | HKCR,Directory\Shell\cmd\command,,,"cmd.exe /s /k pushd ""%V"""
106 |
107 | HKCR,Directory\Background\Shell\cmd,,,"@shell32.dll,-8506"
108 | HKCR,Directory\Background\Shell\cmd,Extended,,""
109 | HKCR,Directory\Background\Shell\cmd,NoWorkingDirectory,,""
110 | HKCR,Directory\Background\Shell\cmd\command,,,"cmd.exe /s /k pushd ""%V"""
111 |
112 | HKCR,Drive\Shell\cmd,,,"@shell32.dll,-8506"
113 | HKCR,Drive\Shell\cmd,Extended,,""
114 | HKCR,Drive\Shell\cmd,NoWorkingDirectory,,""
115 | HKCR,Drive\Shell\cmd\command,,,"cmd.exe /s /k pushd ""%V"""
116 |
117 | [Strings]
118 | UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall"
119 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Context Menu Tools
2 |
3 | - Version: 1.2
4 | - Author: Eric Menze
5 | - Windows 8, Windows 7, Windows Vista, Windows XP
6 |
7 | These tools add functionality to your context menu. They have easy uninstall entries in the Programs Control Panel option. They have were written for Windows 8 / 7 / Vista, but works in XP as well (you may need to install PowerShell manually). Setup explains the multitude of install options, or you can dive right in with the Default Install or SuperUser Install.
8 |
9 | 
10 |
11 | ###Installation
12 |
13 | You can use the Setup.hta, Default Install.exe, Superuser Install.exe, but the best way is to open the Default Installs folder, select the best matching option, open that subfolder, right click the .inf in that folder and choose 'Install'.
14 |
15 | *NOTE: The installs must sometimes be run as Administrator; right click the application and select "Run as Administrator" from the context menu if they menu entries don't appear.*
16 |
17 | If you have any bugs to report or features to request, please do so either at GitHub (https://github.com/Ehryk/ContextMenuTools) or my email (Ehryk42@gmail.com). I'd be interested in other commands that would be helpful in the context menu.
18 |
19 | ### The Story
20 |
21 | After using PowerShell and Git Bash a lot, I found it irritating to start in my home directory each time I opened a new prompt. Microsoft published their Elevation Power Toys, which would launch PowerShell and the command prompt from the context menus of drives and directories, but I found it lacking in a few features. What I wanted most was to right click the backgrounds of directories and drives, Git support, and other nitpicky details. This gave birth to this project.
22 |
23 | I used the basic structure of the .INF files to write my own, with custom icons and more features. I alter the Administrator prompts to reflect the elevated commands, customize the PowerShell prompts, set default colors, and most importantly add the ability to right click anywhere in a directory or drive.
24 |
25 | ### Default Install
26 |
27 | This should be your initial entry point: Start here. You can then modify the install at anytime by just installing a different one, no need to uninstall. To remove them, you can use the UninstallAll.exe or remove the entry in the Programs section of the Control Panel.
28 |
29 | 
30 |
31 | Default Installs add the following to the regular Context Menu (right click):
32 | - Command Prompt Here - Shortcut Key: c, Runs cmd.
33 | - Git Bash Here - Shortcut Key: g, Opens a Git Bash. Only added if Git is installed in the default location.
34 | - Start Powershell Here - Shortcut Key: p, Runs PowerShell.
35 |
36 | And the following to the Extended Context Menu (shift+right click):
37 | - Command Prompt Here - Shortcut Key: c, Runs cmd.
38 | - Command Prompt Here (Administrator) - Shortcut Key: c, Runs cmd as an Administrator.
39 | - Git Bash Here - Shortcut Key: g, Opens a Git Bash. Only added if Git is installed in the default location.
40 | - Start Powershell Here - Shortcut Key: p, Runs PowerShell.
41 | - Start Powershell Here (Administrator) - Shortcut Key: p, Runs PowerShell as an Administrator.
42 |
43 | ### SuperUser Install
44 |
45 | Superuser Installs add all of the following options, including the Administrative options, to both the regular Context Menu (right click) and the Extended Context Menu (shift+right click):
46 |
47 | 
48 |
49 | - Command Prompt Here - Shortcut Key: c, Runs cmd.
50 | - Command Prompt Here (Administrator) - Shortcut Key: c, Runs cmd as an Administrator.
51 | - Git Bash Here - Shortcut Key: g, Opens a Git Bash. Only added if Git is installed in the default location.
52 | - Start Powershell Here - Shortcut Key: p, Runs PowerShell.
53 | - Start Powershell Here (Administrator) - Shortcut Key: p, Runs PowerShell as an Administrator.
54 |
55 | ### Command Prompts
56 |
57 | ##### Command Prompt Here
58 | - Shortcut Key: c
59 | - By default Windows gives you "Open Command Window Here" on the extended context menu only (shift + right click) to Directories, Drives, and Directory Backgrounds. This adds a "Command Prompt Here" item with an icon to the normal (and extended) menu entry.
60 |
61 | ##### Command Prompt Here (Extended)
62 | - Shortcut Key: c
63 | - This replaces the Windows extended menu item with "Command Prompt Here" with an icon to Directories, Drives, and Directory Backgrounds. It returns the default when it is uninstalled.
64 |
65 | ##### Command Prompt Here (Administrator)
66 | - Shortcut Key: c
67 | - This adds "Command Prompt Here (Administrator)" to the context menu. The foreground text is red to distinguish it from normal command prompts.
68 |
69 | ##### Command Prompt Here (Administrator) (Extended)
70 | - Shortcut Key: c
71 | - This adds "Command Prompt Here (Administrator)" to the extended context menu only. The foreground text is red to distinguish it from normal command prompts.
72 |
73 | *Note: as an added feature, administrative command prompts are opened with red text as a reminder of their additional access level.*
74 |
75 | 
76 |
77 | ##### Keep Command Window Scrollable.reg / KeepCommandWindowScrollable.inf
78 | - When cmd.exe is launched directly from the .exe, it is not scrollable. These values are saved with the cmd.lnk that is usually called. These registry entries keep cmd.exe the way the link makes it, no matter what calls it.
79 |
80 | ### PowerShell
81 |
82 | ##### Start PowerShell Here
83 | - Shortcut Key: p
84 | - This will add the "Start PowerShell Here" context menu entry with a blue icon to Directories, Drives, and Directory Backgrounds. It is available in both the regular and extended context menu. The Command prompt is set to:
85 | - (User[Green]) (Location)>
86 |
87 | ##### Start PowerShell Here (Extended)
88 | - Shortcut Key: p
89 | - Adds "Start PowerShell Here" to the extended context menu only (Shift + Right Click). Command Prompt:
90 | - (User[Green]) (Location)>
91 |
92 | ##### Start PowerShell Here (Administrator)
93 | - Shortcut Key: p
94 | - This will add the "Start PowerShell Here (Administrator)" context menu entry with a red icon to Directories, Drives, and Directory Backgrounds. It is only available in the extended context menu. "Administrator: " is added to the window title, and the command prompt becomes:
95 | - Administrator\[Red\] (Location)>
96 |
97 | ##### Start PowerShell Here (Administrator) (Extended)
98 | - Shortcut Key: p
99 | - Adds "Start PowerShell Here (Administrator)" to the extended context menu only (Shift + Right Click). "Administrator: " is added to the window title. Command Prompt:
100 | - Administrator\[Red\] (Location)>
101 |
102 | ##### Keep PowerShell Blue.reg / KeepPowerShellBlue.inf
103 | - When PowerShell is launched directly from the .exe, it does not have the custom blue colors and other options. These values are saved with the PowerShell.lnk that is usually called. These registry entries keep PowerShell the way the link makes it, no matter what calls it.
104 |
105 | 
106 |
107 | ### Git Bash
108 |
109 | ##### Git Bash Here (x64)
110 | - Shortcut Key: g
111 | - This will add the "Git Bash Here" context menu entry with an icon to Directories, Drives, and Directory backgrounds. It will only work for the default install location for 64 bit machines (C:\Program Files(x86)\Git\Git Bash.vbs).
112 |
113 | ##### Git Bash Here (x86)
114 | - Shortcut Key: g
115 | - This will add the "Git Bash Here" context menu entry with an icon to Directories, Drives, and Directory Backgrounds. It will only work for the default install location for 32 bit machines (C:\Program Files\Git\Git Bash.vbs).
116 |
117 | ### Cygwin
118 |
119 | ##### Start Cygwin Here
120 | - Shortcut Key: y
121 | - This will add the "Start Cygwin Here" context menu entry with an icon to Directories, Drives, and Directory backgrounds. It will only work for the default install location (C:\Cygwin), however a quick edit of the .inf file before installation will let you customize the installation path.
122 |
123 | ##### Start Cygwin Here (Extended)
124 | - Shortcut Key: y
125 | - Same as Cygwin Here, but only in the extended context menu (shift + right click).
126 |
127 | ##### Start Cygwin Here (Administrator)
128 | - Shortcut Key: y
129 | - This will add the "Start Cygwin Here (Administrator)" context menu entry with an icon to Directories, Drives, and Directory backgrounds. It will only work for the default install location (C:\Cygwin), however a quick edit of the .inf file before installation will let you customize the installation path.
130 |
131 | ##### Start Cygwin Here (Administrator) (Extended)
132 | - Shortcut Key: y
133 | - Same as Cygwin Here (Administrator), but only in the extended context menu (shift + right click).
134 |
135 | ### Network and Local Drives
136 |
137 | ##### Map Network Drive Here
138 | - Shortcut Key: n
139 | - This will add a shorcut to map a network drive to the first available drive letter, starting at Z: and working backward.
140 |
141 | ##### Map Local Drive Here
142 | - Shortcut Key: l
143 | - This will add a shorcut to map a local folder as a drive to the first available drive letter, starting at Z: and working backward. This has proved extremely useful when working with extremely long paths from nested directories as the directory can be mapped to a drive letter which restarts the path length limit.
144 |
145 | ##### Map Local Drive Here - Static
146 | - Shortcut Key: l
147 | - Same as Map Local Drive Here, but with a set drive letter (Available: K:, L:, M:, N:, O:, P:). A quick edit of the .inf file can change them to any other drive letter, and this automatically unmounts any local drives that are on that drive letter first for reuse.
148 |
149 | ### Open With...
150 |
151 | ##### Always Show Open With
152 | - Shortcut Key: e
153 | Windows likes to pick and choose based on the file type when to give you the Open With... context menu entry. This forces the entry to be present no matter what file type is right clicked, however this causes a dual "Open With..." entry in situations where windows would normally show it, and isn't installed by default.
154 |
--------------------------------------------------------------------------------
/Setup.hta:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Context Menu Tools
9 |
10 |
11 |
12 |
23 |
24 |
41 |
42 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 | Isn't it annoying to enter the command prompt, PowerShell, or Git Bash from your home directory each time? Or to have to go a directory down to right click a folder to "Open Git Bash Here"? How about browsing for the executable to "Run as Administrator", and then hitting "OK" at the slow User Account Control window? Context Menu Tools fixes that.
213 |
214 | This tool adds some helpful functionality to your Windows context menus - both the normal one, when right clicking on OR in a directory or drive, and more advanced options in the Extended context menu (shift + right click). When you select any option marked (Administrator) from the extended context menu, the UAC window is bypassed and you are brought quickly to an elevated command prompt or PowerShell window.
215 |
216 | Even further, the elevated command prompts are clearly marked. PowerShell's prompt is set to (User) (Location)>, and it writes the user in green or "Administrator" in red, and "Administrator: " is added to the window title. Administrator command prompts open with red foreground text.
217 | I recommend starting with the default install.
218 |
219 |
Written for Windows 7/Vista only - use in XP at your own risk
220 |
221 |
222 |
223 |
263 |
264 |
302 |
303 |
327 |
328 |
329 |
Context Menu Tools v1.0
330 |
Written by Eric Menze
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 | After using PowerShell and Git Bash a lot, I found it irritating to start in my home directory each time I opened a new prompt. Microsoft published their Elevation Power Toys, which would launch PowerShell and the command prompt from the context menus when right clicking drives and directories, but I found it lacking in a few features. What I wanted most was to right click the backgrounds of directories and drives, Git support, and other nitpicky details. This gave birth to this project.
343 | I used the basic structure of their sample .INF files to write my own, with custom icons and more features. I alter the Administrator prompts to reflect the elevated status, customize the PowerShell prompts, set default colors, and most importantly add the ability to right click anywhere in a directory or drive.
344 | If you find any bugs to report or would like to request additional features, please do so either on the
Project Page at GitHub or
my email . I'd be interested in any other commands that would be helpful in the context menu
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
357 |
358 |
414 |
415 |
416 |
417 |