Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
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ç
LibreOffice
core
Commits
1e7e9bea
Kaydet (Commit)
1e7e9bea
authored
May 28, 2010
tarafından
Ingo Schmidt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
native305 #i92977# new Windows INSTALLLOCATION settings
üst
c8384bf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
reg64.cxx
setup_native/source/win32/customactions/reg64/reg64.cxx
+7
-5
No files found.
setup_native/source/win32/customactions/reg64/reg64.cxx
100644 → 100755
Dosyayı görüntüle @
1e7e9bea
...
@@ -56,13 +56,14 @@ WINADVAPI LONG WINAPI RegDeleteKeyExW(HKEY,LPCWSTR,REGSAM,DWORD);
...
@@ -56,13 +56,14 @@ WINADVAPI LONG WINAPI RegDeleteKeyExW(HKEY,LPCWSTR,REGSAM,DWORD);
// in mingw 3.13 KEY_WOW64_64KEY isn't available < Win2003 systems.
// in mingw 3.13 KEY_WOW64_64KEY isn't available < Win2003 systems.
// Also defined in setup_native\source\win32\customactions\reg64\reg64.cxx,source\win32\customactions\shellextensions\shellextensions.cxx and
// Also defined in setup_native\source\win32\customactions\reg64\reg64.cxx,source\win32\customactions\shellextensions\shellextensions.cxx and
// extensions\source\activex\main\so_activex.cpp
// extensions\source\activex\main\so_activex.cpp
#ifndef KEY_WOW64_64KEY
#ifndef KEY_WOW64_64KEY
#define KEY_WOW64_64KEY (0x0100)
#define KEY_WOW64_64KEY (0x0100)
#endif
#endif
#define TABLE_NAME L"Reg64"
#define TABLE_NAME L"Reg64"
#define
BASISINSTALLLOCATION L"[BASIS
INSTALLLOCATION]"
#define
INSTALLLOCATION L"[
INSTALLLOCATION]"
bool
isInstall4AllUsers
;
bool
isInstall4AllUsers
;
wchar_t
*
sBasisInstallLocation
;
wchar_t
*
sBasisInstallLocation
;
...
@@ -214,9 +215,10 @@ wchar_t* GetBasisInstallLocation( MSIHANDLE hMSI )
...
@@ -214,9 +215,10 @@ wchar_t* GetBasisInstallLocation( MSIHANDLE hMSI )
OutputDebugStringFormat
(
L"GetBasisInstallLocation - START
\n
"
);
OutputDebugStringFormat
(
L"GetBasisInstallLocation - START
\n
"
);
bool
bResult
=
FALSE
;
bool
bResult
=
FALSE
;
wchar_t
*
pVal
=
NULL
;
wchar_t
*
pVal
=
NULL
;
GetMsiProp
(
hMSI
,
L"
BASIS
INSTALLLOCATION"
,
&
pVal
);
GetMsiProp
(
hMSI
,
L"INSTALLLOCATION"
,
&
pVal
);
OutputDebugStringFormat
(
L"GetBasisInstallLocation - ENDE
\n
"
);
OutputDebugStringFormat
(
L"GetBasisInstallLocation - ENDE
\n
"
);
return
pVal
;
return
pVal
;
}
}
...
@@ -325,14 +327,14 @@ bool DoRegEntries( MSIHANDLE& rhMSI, OPERATION op, MSIHANDLE& rhView)
...
@@ -325,14 +327,14 @@ bool DoRegEntries( MSIHANDLE& rhMSI, OPERATION op, MSIHANDLE& rhView)
wchar_t
*
nPos
=
wcsstr
(
szValue
,
BASIS
INSTALLLOCATION
);
wchar_t
*
nPos
=
wcsstr
(
szValue
,
INSTALLLOCATION
);
if
(
NULL
!=
nPos
)
if
(
NULL
!=
nPos
)
{
{
DWORD
nPrefixSize
=
nPos
-
szValue
;
DWORD
nPrefixSize
=
nPos
-
szValue
;
DWORD
nPropSize
=
wcslen
(
sBasisInstallLocation
);
DWORD
nPropSize
=
wcslen
(
sBasisInstallLocation
);
DWORD
nPostfixSize
=
dwValue
-
wcslen
(
BASIS
INSTALLLOCATION
);
DWORD
nPostfixSize
=
dwValue
-
wcslen
(
INSTALLLOCATION
);
DWORD
nNewValueBytes
=
(
nPropSize
+
nPostfixSize
+
1
)
*
sizeof
(
wchar_t
);
DWORD
nNewValueBytes
=
(
nPropSize
+
nPostfixSize
+
1
)
*
sizeof
(
wchar_t
);
wchar_t
*
newValue
=
reinterpret_cast
<
wchar_t
*>
(
malloc
(
nNewValueBytes
)
);
wchar_t
*
newValue
=
reinterpret_cast
<
wchar_t
*>
(
malloc
(
nNewValueBytes
)
);
...
@@ -345,7 +347,7 @@ bool DoRegEntries( MSIHANDLE& rhMSI, OPERATION op, MSIHANDLE& rhView)
...
@@ -345,7 +347,7 @@ bool DoRegEntries( MSIHANDLE& rhMSI, OPERATION op, MSIHANDLE& rhView)
wcsncat
(
newValue
,
sBasisInstallLocation
,
nPropSize
*
sizeof
(
wchar_t
));
wcsncat
(
newValue
,
sBasisInstallLocation
,
nPropSize
*
sizeof
(
wchar_t
));
// postfix
// postfix
wcsncat
(
newValue
,
nPos
+
(
wcslen
(
BASIS
INSTALLLOCATION
)
),
nPropSize
*
sizeof
(
wchar_t
));
wcsncat
(
newValue
,
nPos
+
(
wcslen
(
INSTALLLOCATION
)
),
nPropSize
*
sizeof
(
wchar_t
));
wcsncpy
(
szValue
,
newValue
,
nNewValueBytes
<=
1024
?
nNewValueBytes
:
1024
);
wcsncpy
(
szValue
,
newValue
,
nNewValueBytes
<=
1024
?
nNewValueBytes
:
1024
);
...
...
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