-
Notifications
You must be signed in to change notification settings - Fork 6
/
CmdHere.inf
75 lines (63 loc) · 2.3 KB
/
CmdHere.inf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
; //***************************************************************************
; // ***** Script Header *****
; // =======================================================
; // Elevation PowerToys for Windows Vista v1.1 (04/29/2008)
; // =======================================================
; //
; // "CMD Prompt Here" PowerToy (with fixed uninstall)
; //
; // File: CmdHere.inf
; //
; // Purpose: To add a CMD Prompt Here entry to the Explorer context menu
; //
; // Version: 1.0.3
; // Date : 04/29/2008
; //
; // History:
; // 1.0.0 11/20/2006 Modified Windows Resource Kit version to fix the
; // uninstall.
; // 1.0.1 01/18/2007 Add /d switch to cd command. Added header.
; // 1.0.2 02/19/2007 Changed Registry Key name so that the command appears
; // next to the "CMD Prompt Here as Administrator"
; // PowerToy context menu entry.
; // 1.0.3 04/29/2008 Added DisplayVersion, DisplayIcon, and changed DisplayName.
; //
; // ***** End Header *****
; //***************************************************************************
[version]
Signature="$Windows NT$"
[CmdHereInstall]
CopyFiles = CmdHere.Files.Inf
AddReg = CmdHere.AddReg
[DefaultInstall]
CopyFiles = CmdHere.Files.Inf
AddReg = CmdHere.AddReg
[DefaultUnInstall]
DelFiles = CmdHere.Files.Inf
DelReg = CmdHere.DelReg
[SourceDisksNames]
55="CMD Prompt Here","",1
[SourceDisksFiles]
CmdHere.INF=55
[DestinationDirs]
CmdHere.Files.Inf = 17
[CmdHere.Files.Inf]
CmdHere.INF
[CmdHere.AddReg]
HKLM,%UDHERE%,DisplayName,,"%DisplayName%"
HKLM,%UDHERE%,DisplayVersion,,"%DisplayVersion%"
HKLM,%UDHERE%,DisplayIcon,,"%11%\ElevationPowertoys.ico"
HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\CmdHere.inf"
HKCR,Directory\Shell\rCmdHere,,,"%CmdHereAccel%"
HKCR,Directory\Shell\rCmdHere\command,,,"%11%\cmd.exe /k cd /d ""%1"""
HKCR,Drive\Shell\rCmdHere,,,"%CmdHereAccel%"
HKCR,Drive\Shell\rCmdHere\command,,,"%11%\cmd.exe /k cd /d ""%1"""
[CmdHere.DelReg]
HKLM,%UDHERE%
HKCR,Directory\Shell\rCmdHere
HKCR,Drive\Shell\rCmdHere
[Strings]
DisplayName="CMD Prompt Here PowerToy v1.0.3 (Uninstall only)"
DisplayVersion="1.0.3"
CmdHereAccel="CMD &Prompt Here"
UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\CmdHere"