-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathElevateMSI.inf
89 lines (74 loc) · 2.8 KB
/
ElevateMSI.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
; //***************************************************************************
; // ***** Script Header *****
; // =======================================================
; // Elevation PowerToys for Windows Vista v1.1 (04/29/2008)
; // =======================================================
; //
; // "Elevate Windows Installer Package" PowerToy for Windows Vista
; //
; // File: ElevateMSI.inf
; //
; // Additional files required: ElevationPowertoys.ico
; //
; // Purpose: To add an "Install as Administrator" entry to the Explorer context
; // menu for Windows Installer packages (.msi) and "Apply Patch as
; // Administrator" for Windows Installer patches (.msp)
; //
; // Version: 1.0.1
; // Date : 04/29/2008
; //
; // History:
; // 1.0.0 03/01/2007 Created initial version.
; // 1.0.1 04/29/2008 Changed Regsitry values to REG_EXPAND_SZ and changed
; // commands to better match the default open actions.
; // Added DisplayVersion, DisplayIcon, and version number
; // to DisplayName.
; //
; // ***** End Header *****
; //***************************************************************************
[version]
Signature="$Windows NT$"
[ElevateMSIInstall]
CopyFiles = ElevateMSI.Files.Inf
CopyFiles = ElevateMSI.Files.Icon
AddReg = ElevateMSI.AddReg
[DefaultInstall]
CopyFiles = ElevateMSI.Files.Inf
CopyFiles = ElevateMSI.Files.Icon
AddReg = ElevateMSI.AddReg
[DefaultUnInstall]
DelFiles = ElevateMSI.Files.Inf
DelReg = ElevateMSI.DelReg
[SourceDisksNames]
55="Elevate HTA","",1
[SourceDisksFiles]
ElevateMSI.INF=55
ElevationPowertoys.ico=55
[DestinationDirs]
ElevateMSI.Files.Inf = 17
ElevateMSI.Files.Icon = 11
[ElevateMSI.Files.Inf]
ElevateMSI.INF
[ElevateMSI.Files.Icon]
ElevationPowertoys.ico
[ElevateMSI.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%\ElevateMSI.inf"
HKCR,Msi.Package\shell\runas
HKCR,Msi.Package\shell\runas,,,"%ElevateMSIAccel%"
HKCR,Msi.Package\shell\runas\command,,0x00020000,"""%SystemRoot%\System32\msiexec.exe"" /i ""%1"" %*"
HKCR,Msi.Patch\shell\runas
HKCR,Msi.Patch\shell\runas,,,"%ElevateMSPAccel%"
HKCR,Msi.Patch\shell\runas\command,,0x00020000,"""%SystemRoot%\System32\msiexec.exe"" /p ""%1"" %*"
[ElevateMSI.DelReg]
HKLM,%UDHERE%
HKCR,Msi.Package\shell\runas
HKCR,Msi.Patch\shell\runas
[Strings]
DisplayName="Elevate Windows Installer Package PowerToy for Windows Vista v1.0.1 (Uninstall only)"
DisplayVersion="1.0.1"
ElevateMSIAccel="Install as Administrator"
ElevateMSPAccel="Apply Patch as Administrator"
UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\ElevateMSI"