Skip to content

Conversation

@stephenk-msft
Copy link
Contributor

Changes

  • Added ability to create CIM files and unpack packages to them
  • Added ability to unpack a directory of packages instead of a single package at a time
  • Laid the groundwork for creating VHD files and unpacking packages to then

Notes

  • The CIM changes will require CreateCIM.dll to be placed beside msixmgr.exe

{
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);
}
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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

hr = MsixCoreLib::UnpackBundle(packageFilePath, unpackDestination, cli.IsApplyACLs(), cli.IsValidateSignature());
if (createFile)
{
// TO-DO: Add ability to create VHD
Copy link
Contributor

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;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@wcheng-msft wcheng-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@stephenk-msft stephenk-msft merged commit de8184b into master Aug 23, 2020
@stephenk-msft stephenk-msft deleted the user/stkwok/createvhd branch August 23, 2020 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants