Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c98290b9
Commit
c98290b9
authored
Mar 24, 2015
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes UI labels and ability to add/remove features.
parent
102f72cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
+21
-10
No files found.
Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
View file @
c98290b9
...
...
@@ -723,6 +723,11 @@ public: // IBootstrapperApplication
BalLog
(
BOOTSTRAPPER_LOG_LEVEL_STANDARD
,
"Skipping package: %ls, after restart because it was applied before the restart."
,
wzPackageId
);
*
pRequestState
=
BOOTSTRAPPER_REQUEST_STATE_NONE
;
}
else
if
((
_plannedAction
==
BOOTSTRAPPER_ACTION_INSTALL
||
_plannedAction
==
BOOTSTRAPPER_ACTION_MODIFY
)
&&
SUCCEEDED
(
BalInfoFindPackageById
(
&
_bundle
.
packages
,
wzPackageId
,
&
pPackage
)))
{
BOOL
f
=
FALSE
;
if
(
SUCCEEDED
(
_engine
->
EvaluateCondition
(
pPackage
->
sczInstallCondition
,
&
f
))
&&
f
)
{
*
pRequestState
=
BOOTSTRAPPER_REQUEST_STATE_PRESENT
;
}
}
...
...
@@ -1233,10 +1238,11 @@ private:
hr
=
LoadBootstrapperBAFunctions
();
BalExitOnFailure
(
hr
,
"Failed to load bootstrapper functions."
);
hr
=
UpdateUIStrings
(
_command
.
action
);
BalExitOnFailure
(
hr
,
"Failed to load UI strings."
);
GetBundleFileVersion
();
// don't fail if we couldn't get the version info; best-effort only
LExit:
ReleaseObject
(
pixdManifest
);
ReleaseStr
(
sczModulePath
);
...
...
@@ -1835,18 +1841,10 @@ private:
return
;
}
//
// OnPlan - plan the detected changes.
//
void
OnPlan
(
__in
BOOTSTRAPPER_ACTION
action
)
{
HRESULT
UpdateUIStrings
(
__in
BOOTSTRAPPER_ACTION
action
)
{
HRESULT
hr
=
S_OK
;
LPCWSTR
likeInstalling
=
nullptr
;
LPCWSTR
likeInstallation
=
nullptr
;
_plannedAction
=
action
;
switch
(
action
)
{
case
BOOTSTRAPPER_ACTION_INSTALL
:
likeInstalling
=
L"Installing"
;
...
...
@@ -1895,6 +1893,19 @@ private:
SUCCEEDED
(
hr
)
&&
locText
?
locText
->
wzText
:
likeInstallation
);
}
return
hr
;
}
//
// OnPlan - plan the detected changes.
//
void
OnPlan
(
__in
BOOTSTRAPPER_ACTION
action
)
{
HRESULT
hr
=
S_OK
;
_plannedAction
=
action
;
hr
=
UpdateUIStrings
(
action
);
BalExitOnFailure
(
hr
,
"Failed to update strings"
);
// If we are going to apply a downgrade, bail.
if
(
_downgrading
&&
BOOTSTRAPPER_ACTION_UNINSTALL
<
action
)
{
...
...
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