Граф коммитов

1088 Коммитов

Автор SHA1 Сообщение Дата
John Vintzel b8d4684a80
Update README.md 2019-07-24 09:30:19 -07:00
John Vintzel a88a524028
Update README.md 2019-07-24 08:01:00 -07:00
John Vintzel 6a46dbba47
Update README.md 2019-07-24 07:59:19 -07:00
John Vintzel 86ebef4c99
Update README.md
Add section to explain requirements for packages to deploy.
2019-07-24 07:50:15 -07:00
Ruben Guerrero aecdafe451
Fix not getting elements that belongs to different namespaces (#179) 2019-07-22 10:29:59 -07:00
wcheng-msft 8f8901f3d4
Split Extractor into extractor and VirtualFileHandler (#180)
* in progress, tryng to figure out how to best handle different error modes

* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba3.

* split in progress

* moved vfs changes over to  virtualfilehandler, unverified

* Split VFS handling from Extractor into a separate handler--VirtualFileHandler
Fixed start menu shortcut to write to per-machine instead of per-user (unintentionally missed when we switched back to per-machine)
Fixed the executable path pointed by the start menu shortcut and other paths to point to the devirtualized location rather than the copy inside the VFS directory.
Fixed issue where extra empty directories were left behind during removal.
Tests currently pass
2019-07-17 19:37:18 -07:00
Ruben Guerrero a3f4e6b511
Deprecate MSIX_VALIDATION_OPTION_SKIPAPPXMANIFEST and improve CMake MSIX SDK option processing (#177) 2019-07-16 15:49:49 -07:00
Ruben Guerrero 5e74c33992
Add third party code as linguist vendored code (#178) 2019-07-16 15:49:13 -07:00
Ruben Guerrero 9a9005bc9e
Make MSIX_PACK as non default option (#174) 2019-07-15 17:13:34 -07:00
Ruben Guerrero f9de0f016a
Validate output pack package using the Windows AppxPackaging APIs (#173) 2019-07-15 17:13:14 -07:00
Ruben Guerrero e40014b775
PackPackage entrypoint tests (#172) 2019-07-11 12:32:35 -07:00
Ruben Guerrero 7f7b7a144a
IAppxPackageReader tests (#170) 2019-07-10 16:51:44 -07:00
JohnMcPMS d4508c9b45
General improvements to pack (#171)
* All tests pass, pack and unpack work, makeappx can unpack

* Add RelWithDebInfo option for Windows, fix bug with negative seek in x86, PR feedback
2019-07-10 16:38:59 -07:00
wcheng-msft 5b20d92db4
Rename to msixmgr (#167)
* in progress, tryng to figure out how to best handle different error modes

* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba3.

* rename to msixmgr

* rename to msixmgr
2019-07-05 11:40:21 -07:00
jyvenugo ff44fa31db
MSIX Installer Istream interface passes installs to win 10 package manager api's (#162)
* Changes

* Convert stream to temp file and add package

* Refacor conversion from istream to package path in win10redirector

* Modify callback with progress add package method and add test for the same

* Reopen file with read and close file handle after add for security considerations

* Return error from Win10Redirector::AddPackage method

* Remove extra header

* remove hresult_from_win32 while returning error

* Remove reopening of file
2019-06-27 17:45:17 -07:00
stephenk-msft 2630e48352
Parsing changes to support unpack/apply ACLs (#160)
* Parsing changes to support unpack/apply ACLs

* Minor formatting changes

* Fix for incorrect default value for HasSuboptions
2019-06-24 18:52:28 -07:00
wcheng-msft cdba727bda
Switch back to per machine (#159)
* in progress, tryng to figure out how to best handle different error modes

* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba3.

* manual undo of the per-machine-to-per-user switch. compiles, not tested.

* fix devirtualized registry handling on remove scenarios, and make findpackages more resilient to unexpected files/directories

* fix compiler warning

* fix error handling to return errors, and fix startup task which was triggering errors.
2019-06-21 16:10:55 -07:00
stephenk-msft 7581e1c801
Create def file for windows (#156)
* Create def file for windows

* Check in cmakein file
2019-06-19 12:34:02 -07:00
jyvenugo ddbd74b699
Pass to win10 installer on 1709 or greater (#158) 2019-06-18 20:17:38 -07:00
jyvenugo 6a7d251b40
Firewall DEH (#157)
* add firewall rule

* Add local and remote ports

* create object to store rules from manifest

* Cleanup

* Comptr and return if failed comments

* Code review comments

* Redirect to win10 installer

* GetFullPathNameW to shell execute full file path when filename is only passed

* Implement execute remove request

* Store and delete rulename in the format Notepad++ (TCP-in)

* Back out changes for win10 redirection

* Comment
2019-06-18 17:03:24 -07:00
wcheng-msft 5c0e77375c
Reroute on win10 add package (#155)
* in progress, tryng to figure out how to best handle different error modes

* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba3.

* turn on c++17 and conformance mode off to verify can include winrt header

* this compiles, but won't run (except on win10) because of the dependency on WinRT stuffs

* compiles and runs on win7 with the code by linking in onecore_downlevel.lib and delayloading the other winrt stuff,

* in progress

* basic successful install scenario seemingly works

* check for error after completion and set error in msixResponse

* remove debug spew

* route removepackage and add some tests for the lib. Tested on 19H1 and win7

* add solution

* undo unintended temp changes
2019-06-17 12:08:00 -07:00
JohnMcPMS 4b7c4089ba
Rewrite command line handling (#154)
* Rewrite command line handling to make definition of commands more localized and handle more diverse commands more easily

* Fixes to use portable C++14
2019-06-13 17:08:26 -07:00
stephenk-msft dd73256768
Added APIs to unpack from package reader (#152)
* Added APIs to unpack from package reader

* CR Changes #1

* CR Changes #2

* CR Changes #3

* *FromStream APIs updated to call into Update*FromPackageReader*
2019-06-11 10:46:41 -07:00
Ruben Guerrero Samaniego e2d1dc2cda Fix bad merge 2019-06-05 00:38:11 -07:00
Ruben Guerrero Samaniego e804fafc71 Merge branch 'master' into packaging 2019-06-04 23:58:06 -07:00
Ruben Guerrero b1ec35b003
Minor pack improvements (#135) 2019-06-04 23:22:25 -07:00
jyvenugo f86e4a0e4d
Display error on UI in case of return error (#151)
* display error on UI in case of return error

* modify header

* String resource and hex conversion
2019-06-03 18:34:07 -07:00
stephenk-msft fad8a7bb21
Added tests for -pfn-flat and -extract-all options. (#150)
* Added tests for -pfn-flat and -extract-all options. Renamed -sa option as -extract-all

* Added test for -pfn -extract-all

* Added test for unpack -pfn-flat

* Updated help for unpack -pfn-flat

* Fixed Unbundle_StoreSigned_Desktop_x86_x64_MoviesTV test

* Remove !CompareDirectory check
2019-05-31 15:07:22 -07:00
stephenk-msft 234e6a1448
Add ability to unpack scale resource packages and unbundle with flat structure (#146)
* Added options to unbundle with flat structure and unpack scale resource packages

* Handle -flat -pfn

* Change how QI is done

* Removed comments

* John's CR Comments

* Ruben's CR Comments:

* Ruben's CR Comments #2

* CR changes #4

* Change scale to be UINT32

* Fix tabs

* Put back missing attr name

* Update GetResources and GetScale

* Rename -flat to -pfn-flat. Update GetResources

* Removed unnecessary check

* Remove numbers from XmlAttributeName

* Remove tabs

* Uncomment resource scale packages in unbundletestdata

* Update tests

* Fixed tests

* formatting
2019-05-30 15:53:08 -07:00
Ruben Guerrero 418393f8dd
msixtest - use catch2 as our test infrastructure for all supported platforms (#149) 2019-05-30 11:58:06 -07:00
JohnMcPMS 80ff93541b
Add more semantic checks when the validation parser is enabled (#148)
This change adds a few more semantic checks to the validation of the package manifest.  There are still many more to go, but there are some broad changes that need to go in beforehand.

All Win32 tests pass when built with -vp

In addition:
- Fixes a bug in the version parsing code
- Makes the XML query names based on what they actually find
- Makes the visitor more object oriented, containing the context within itself
- Adds a no context visitor constructor, and a type erasing visitor to consider for future use
2019-05-29 17:02:20 -07:00
JohnMcPMS 7137757a84
Update Readme.md and CODEOWNERS (#147)
Add git-lfs to pre-reqs, fix bad link to macos build pool, update CODEOWNERS for Readme.md
2019-05-29 14:32:41 -07:00
wcheng-msft 03ec9de467
Git lfs test (#145)
* in progress, tryng to figure out how to best handle different error modes

* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba3.

* scope to just preview tests

* and .appx

* update to readme to mention usage of git lfs
2019-05-29 11:14:57 -07:00
jyvenugo 2ccf90c80a
Check if registry file exists before copying file over (#143) 2019-05-24 14:44:24 -07:00
jyvenugo 1c51762786
FTA handler changes (#136)
* FTA handler changes

* Deleting key from registry works

* Call deletekeyifpresent from com interface, server, protocol handlers

* AddRemovePrograms handler

* Remove all extensions in processftaforremove method

* Copy registry.dat file, changes in PrepareVirtualizedRegistry

* Updated copyfile

* set hivenamexists to false once unloaded
2019-05-24 11:05:05 -07:00
wcheng-msft 4a03a1975a
Launch unelevated (#140)
* in progress, tryng to figure out how to best handle different error modes

* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba3.

* execute from explorer to avoid launching elevated

* fix compile warning, rename variable
2019-05-23 18:44:55 -07:00
wcheng-msft 1f528436e3
Per user startuptask (#139)
* in progress, tryng to figure out how to best handle different error modes

* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba3.

* make startup task per user (it was already per-user, but it'd be broken for second user) by adding the user sid to the name of the task
fix missing logo cases for FTA by checking against .empty() instead of a nullptr check.
2019-05-20 16:57:59 -07:00
William Kent df7ba5097e Fix VS2019 build (#138)
* Fix build of OpenSSL with VS2019

Also added conditional to not pass GCC/Clang-specific options to CL,
which was causing two warnings to be emitted per source file.

* Remove GCC/Clang-specific flag from MSVC linkline

* Fix probable typo

* Add missing include
2019-05-20 16:57:09 -07:00
wcheng-msft 2690b185ec
Make com and protocol handlers per user (#134)
* in progress, tryng to figure out how to best handle different error modes

* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba3.

* Remove "common programs" from file path mappings so that we don't spray other start menu shortcuts besides what was manifested
Convert PNG to ICO to display properly on Win7.
Convert all-user (HKLM) writes to per-user (HKCU) writes

* whoops, undoing the temp change to make it per-machine to debug why the icon was showing wrong

* change com and protocol to be per-user

* update test script for per-user changes to start menu
2019-05-15 15:31:09 -07:00
wcheng-msft 3e0b5fe212
Make fta per user (#129)
* in progress, tryng to figure out how to best handle different error modes

* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba3.

* Remove "common programs" from file path mappings so that we don't spray other start menu shortcuts besides what was manifested
Convert PNG to ICO to display properly on Win7.
Convert all-user (HKLM) writes to per-user (HKCU) writes

* whoops, undoing the temp change to make it per-machine to debug why the icon was showing wrong
2019-05-14 17:04:15 -07:00
wcheng-msft 247b246261
Per user database (#126)
* in progress, tryng to figure out how to best handle different error modes

* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba3.

* add database and handle add/remove of database and check database during update

* fix cases with new user and multiple users having it installed

* FindAllPackages now searches per-user database instead of looking at filesystem

* Remove unintended files

* remove completed todo/bad comment
2019-05-14 17:03:56 -07:00
Rudy Huyn 3b5922ff25 Support installation of packages via a IStream in addition to a file path. (#122) 2019-05-14 16:30:41 -07:00
Ruben Guerrero acc3972515
Disable pack for mobile (#131) 2019-05-12 22:12:51 -07:00
Ruben Guerrero 6968aa2c15
Packaging featureselector fix (#130) 2019-05-10 11:34:21 -07:00
Ruben Guerrero ed3bc904a8
Packaging sample (#128) 2019-05-10 09:51:33 -07:00
Ruben Guerrero 51d0235a3c
Fix merge conflict (#127) 2019-05-09 12:15:39 -07:00
Ruben Guerrero Samaniego ddf267a27c Merge branch 'master' into packaging 2019-05-08 14:22:47 -07:00
wcheng-msft 95348b15e2
Per user mode start menu and arp (#123)
* in progress, tryng to figure out how to best handle different error modes

* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba3.

* change addremoveprograms entry to per-user

* Create uninstall key if it doesn't exist, and fix namespace problem for AddRemovePrograms. Add per-user start menu link.
2019-05-08 14:17:32 -07:00
JohnMcPMS 13ac085652 Initial structure of the semantic validation (#102) 2019-05-08 14:06:58 -07:00
Ruben Guerrero 95ffec522b
ZipObjectWriter and finish packing (#124) 2019-05-08 12:14:51 -07:00