-
Notifications
You must be signed in to change notification settings - Fork 182
Added ability to create CIM files and unpack packages to them #377
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
Conversation
MsixCore/msixmgr/CIMProvider.cpp
Outdated
| { | ||
| std::wcout << "Failed to load createcim.dll. Please confirm the dll is next to this exe." << std::endl; | ||
| return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND); | ||
| } |
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.
it seems this is repeated for every function you call, maybe use a class to wrap the loadlibrary and have it free in the destructor?
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.
Created a new class to wrap the loadlibrary - let me know if this isn't what you had in mind.
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.
yes, that looks better; just because it's in a new class doesn't mean you can't have the output
MsixCore/msixmgr/msixmgr.cpp
Outdated
| hr = MsixCoreLib::UnpackBundle(packageFilePath, unpackDestination, cli.IsApplyACLs(), cli.IsValidateSignature()); | ||
| if (createFile) | ||
| { | ||
| // TO-DO: Add ability to create VHD |
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.
// TO-DO: Add ability to create VHD [](start = 20, length = 35)
don't push TODOs and commented code.
| if (UuidFromStringW((RPC_WSTR)(cli.GetVolumeId().c_str()), &volumeIdFromString) != RPC_S_OK) | ||
| { | ||
| std::wcout << std::endl; | ||
| std::wcout << "Failed to convert specified volume id {" << volumeIdString << "} to GUID" << std::endl; |
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.
volumeIdString [](start = 79, length = 14)
can this already have curly braces?
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.
The expected workflow is that the user would provide a GUID without the curly braces.
wcheng-msft
left a comment
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.
![]()
Changes
Notes