-
Notifications
You must be signed in to change notification settings - Fork 1.8k
WSLC SDK install API update #40949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JohnMcPMS
wants to merge
10
commits into
microsoft:master
Choose a base branch
from
JohnMcPMS:install-api-update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+379
−66
Open
WSLC SDK install API update #40949
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
472eba4
commit for merge
JohnMcPMS b073089
.\FormatSource.ps1
JohnMcPMS ab47ea7
Merge remote-tracking branch 'upstream/master' into install-api-update
JohnMcPMS 484712f
C changes and beginning of midl changes
JohnMcPMS 6e29da6
format
JohnMcPMS 0f0d558
winrt changes
JohnMcPMS a1bd8af
update tests
JohnMcPMS bc87857
add no-update install test
JohnMcPMS 42ce029
Merge from master
JohnMcPMS 41d5894
PR feedback
JohnMcPMS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| /*++ | ||
|
|
||
| Copyright (c) Microsoft. All rights reserved. | ||
|
|
||
| Module Name: | ||
|
|
||
| InstallOptions.cpp | ||
|
|
||
| Abstract: | ||
|
|
||
| This file contains the implementation of the WinRT wrapper for the WSLC SDK InstallOptions class. | ||
|
|
||
| --*/ | ||
|
|
||
| #include "precomp.h" | ||
| #include "InstallOptions.h" | ||
| #include "Microsoft.WSL.Containers.InstallOptions.g.cpp" | ||
|
|
||
| namespace winrt::Microsoft::WSL::Containers::implementation { | ||
|
|
||
| winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::WSL::Containers::Component> InstallOptions::Components() | ||
| { | ||
| return m_components; | ||
| } | ||
|
|
||
| void InstallOptions::Components(winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::WSL::Containers::Component> value) | ||
| { | ||
| m_components = std::move(value); | ||
| } | ||
|
|
||
| bool InstallOptions::Repair() | ||
| { | ||
| return m_repair; | ||
| } | ||
|
|
||
| void InstallOptions::Repair(bool value) | ||
| { | ||
| m_repair = value; | ||
| } | ||
|
|
||
| } // namespace winrt::Microsoft::WSL::Containers::implementation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| /*++ | ||
|
|
||
| Copyright (c) Microsoft. All rights reserved. | ||
|
|
||
| Module Name: | ||
|
|
||
| InstallOptions.h | ||
|
|
||
| Abstract: | ||
|
|
||
| This file contains the definition of the WinRT wrapper for the WSLC SDK InstallOptions class. | ||
|
|
||
| --*/ | ||
|
|
||
| #pragma once | ||
| #include "Microsoft.WSL.Containers.InstallOptions.g.h" | ||
| #include "Helpers.h" | ||
|
|
||
| namespace winrt::Microsoft::WSL::Containers::implementation { | ||
| struct InstallOptions : InstallOptionsT<InstallOptions> | ||
| { | ||
| InstallOptions() = default; | ||
|
|
||
| winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::WSL::Containers::Component> Components(); | ||
| void Components(winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::WSL::Containers::Component> value); | ||
| bool Repair(); | ||
| void Repair(bool value); | ||
|
|
||
| private: | ||
| winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::WSL::Containers::Component> m_components = nullptr; | ||
| bool m_repair = false; | ||
| }; | ||
| } // namespace winrt::Microsoft::WSL::Containers::implementation | ||
|
|
||
| namespace winrt::Microsoft::WSL::Containers::factory_implementation { | ||
| struct InstallOptions : InstallOptionsT<InstallOptions, implementation::InstallOptions> | ||
| { | ||
| }; | ||
| } // namespace winrt::Microsoft::WSL::Containers::factory_implementation | ||
|
|
||
| DEFINE_TYPE_HELPERS(InstallOptions); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not necessarily true (the MSI can be installed before reboot). From a UX perspective, I think installing the dependencies and then returning
ERROR_SUCCESS_REBOOT_REQUIREDis nicer, since one rebooted, everything will be ready for use