Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
7850541a
Kaydet (Commit)
7850541a
authored
Şub 22, 2014
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20641: Run custom actions with the NoImpersonate flag to support UAC.
üst
9d4c5f46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
NEWS
Misc/NEWS
+3
-0
msi.py
Tools/msi/msi.py
+9
-11
No files found.
Misc/NEWS
Dosyayı görüntüle @
7850541a
...
...
@@ -71,6 +71,9 @@ Library
Build
-----
-
Issue
#
20641
:
Run
MSI
custom
actions
(
pip
installation
,
pyc
compilation
)
with
the
NoImpersonate
flag
,
to
support
elevated
execution
(
UAC
).
-
Issue
#
20221
:
Removed
conflicting
(
or
circular
)
hypot
definition
when
compiled
with
VS
2010
or
above
.
Initial
patch
by
Tabrez
Mohammed
.
...
...
Tools/msi/msi.py
Dosyayı görüntüle @
7850541a
...
...
@@ -435,12 +435,13 @@ def add_ui(db):
(
"SetLauncherDirToWindows"
,
307
,
"LAUNCHERDIR"
,
"[WindowsFolder]"
),
# msidbCustomActionTypeExe + msidbCustomActionTypeSourceFile
# See "Custom Action Type 18"
(
"CompilePyc"
,
18
,
"python.exe"
,
compileargs
),
(
"CompilePyo"
,
18
,
"python.exe"
,
"-O "
+
compileargs
),
(
"CompileGrammar"
,
18
,
"python.exe"
,
lib2to3args
),
# msidbCustomActionTypeInScript (1024); run during actual installation
(
"UpdatePip"
,
18
+
1024
,
"python.exe"
,
updatepipargs
),
(
"RemovePip"
,
18
,
"python.exe"
,
removepipargs
),
# msidbCustomActionTypeNoImpersonate (2048); run action in system account, not user account
(
"CompilePyc"
,
18
+
1024
+
2048
,
"python.exe"
,
compileargs
),
(
"CompilePyo"
,
18
+
1024
+
2048
,
"python.exe"
,
"-O "
+
compileargs
),
(
"CompileGrammar"
,
18
+
1024
+
2048
,
"python.exe"
,
lib2to3args
),
(
"UpdatePip"
,
18
+
1024
+
2048
,
"python.exe"
,
updatepipargs
),
(
"RemovePip"
,
18
+
1024
+
2048
,
"python.exe"
,
removepipargs
),
])
# UI Sequences, see "InstallUISequence Table", "Using a Sequence Table"
...
...
@@ -483,17 +484,14 @@ def add_ui(db):
# remove pip when state changes to INSTALLSTATE_ABSENT
# run before RemoveFiles
(
"RemovePip"
,
"&pip_feature=2"
,
3499
),
(
"CompilePyc"
,
"COMPILEALL"
,
6800
),
(
"CompilePyo"
,
"COMPILEALL"
,
6801
),
(
"CompileGrammar"
,
"COMPILEALL"
,
6802
),
(
"CompilePyc"
,
"COMPILEALL"
,
4002
),
(
"CompilePyo"
,
"COMPILEALL"
,
4003
),
(
"CompileGrammar"
,
"COMPILEALL"
,
4004
),
])
add_data
(
db
,
"AdminExecuteSequence"
,
[(
"InitialTargetDir"
,
'TARGETDIR=""'
,
750
),
(
"SetDLLDirToTarget"
,
'DLLDIR=""'
,
751
),
(
"SetLauncherDirToTarget"
,
'LAUNCHERDIR=""'
,
752
),
(
"CompilePyc"
,
"COMPILEALL"
,
6800
),
(
"CompilePyo"
,
"COMPILEALL"
,
6801
),
(
"CompileGrammar"
,
"COMPILEALL"
,
6802
),
])
#####################################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment