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
f466c2a2
Kaydet (Commit)
f466c2a2
authored
May 09, 2008
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Port to VS 2008. Drop W9x support.
üst
344d066a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
28 deletions
+3
-28
msisupport.c
Tools/msi/msisupport.c
+2
-11
msisupport.mak
Tools/msi/msisupport.mak
+1
-17
No files found.
Tools/msi/msisupport.c
Dosyayı görüntüle @
f466c2a2
#include "windows.h"
#include "msiquery.h"
int
isWinNT
;
/* Print a debug message to the installer log file.
* To see the debug messages, install with
* msiexec /i pythonxy.msi /l*v python.log
...
...
@@ -30,21 +28,14 @@ UINT __declspec(dllexport) __stdcall CheckDir(MSIHANDLE hInstall)
DWORD
size
=
PSIZE
;
DWORD
attributes
;
isWinNT
=
(
GetVersion
()
<
0x80000000
)
?
1
:
0
;
if
(
isWinNT
)
result
=
MsiGetPropertyW
(
hInstall
,
L"TARGETDIR"
,
wpath
,
&
size
);
else
result
=
MsiGetPropertyA
(
hInstall
,
"TARGETDIR"
,
path
,
&
size
);
result
=
MsiGetPropertyW
(
hInstall
,
L"TARGETDIR"
,
wpath
,
&
size
);
if
(
result
!=
ERROR_SUCCESS
)
return
result
;
wpath
[
size
]
=
L'\0'
;
path
[
size
]
=
L'\0'
;
if
(
isWinNT
)
attributes
=
GetFileAttributesW
(
wpath
);
else
attributes
=
GetFileAttributesA
(
path
);
attributes
=
GetFileAttributesW
(
wpath
);
if
(
attributes
==
INVALID_FILE_ATTRIBUTES
||
!
(
attributes
&
FILE_ATTRIBUTE_DIRECTORY
))
{
...
...
Tools/msi/msisupport.mak
Dosyayı görüntüle @
f466c2a2
!IF "$(CPU)" == ""
# VS environment
# /OPT: REF and ICF are added by VS.NET by default
# NOWIN98 saves 7k of executable size, at the expense of some
# slowdown on Win98
msisupport.dll: msisupport.obj
link.exe /OUT:msisupport.dll /INCREMENTAL:NO /NOLOGO /DLL /
MACHINE:X86 /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /OPT:NOWIN98
msisupport.obj msi.lib kernel32.lib
link.exe /OUT:msisupport.dll /INCREMENTAL:NO /NOLOGO /DLL /
SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF
msisupport.obj msi.lib kernel32.lib
# We request a static CRT, so that there will be no CRT dependencies
# for the target system. We cannot do without a CRT, since it provides
# the DLL entry point.
msisupport.obj: msisupport.c
cl /O2 /D WIN32 /D NDEBUG /D _WINDOWS /MT /W3 /c msisupport.c
!ELSE
# SDK environment: assume all options are already correct
msisupport.dll: msisupport.obj
link.exe /OUT:msisupport.dll /INCREMENTAL:NO /NOLOGO /DLL msisupport.obj msi.lib kernel32.lib
msisupport.obj: msisupport.c
cl /O2 /D WIN32 /D NDEBUG /D _WINDOWS /MD /W3 /GS- /c msisupport.c
!ENDIF
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