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

947 Коммитов

Автор SHA1 Сообщение Дата
wcheng-msft 62cf3fb857
Add wix localization (#255)
* add icon to ARP

* post build works with french

* add postbuild script to generate and embed transforms

* add comments to script and combine for loops

* add localization with placeholder strings
2019-11-08 12:22:45 -08:00
jyvenugo 564c43a19f
Add notice file for rapidjson (#254)
* Add notice file

* Indentation

* Indentation again
2019-11-07 15:32:19 -08:00
wcheng-msft a23cc31e3b
Add clickonce (#252)
* add project

* Simple detection that it's from http, then simply download the file first before.
This is the simplest hack to get a working prototype, larger files will incur significant delay before being able to show packageInfo in the UX.

* fix win10 redirect code too.

* update pre-build task to auto-copy built versions of exe and dll
2019-11-06 16:24:18 -08:00
jyvenugo 998c3fa144
Correct commit id in cgmanifest.json (#253) 2019-11-05 14:50:33 -08:00
wcheng-msft 977a5f4db7
Change msixmgr name to MSIX Core per feedback (#250) 2019-11-01 16:29:02 -07:00
jyvenugo 1ca2b556dc
Manual json file (#251) 2019-11-01 14:52:43 -07:00
jyvenugo 87d4c3abc6
Json Parser for PSF (#249)
* Initial parse of json

* Id match

* Script struct

* Code review comments

* Code review comments

* CR comments

* Fix crash

* add via nuget

* Revert "add via nuget"

This reverts commit 3fc7a4752c650451320edc3f0172d3cd0cb38e8b.

	modified:   preview/MsixCore/msixmgr/msixmgr.vcxproj
	modified:   preview/MsixCore/msixmgr/msixmgr.vcxproj.filters
	deleted:    preview/MsixCore/msixmgr/packages.config
2019-11-01 12:55:04 -07:00
wcheng-msft 1f15274f5f
Free console in Remove cases so that ARP uninstall doesn't flash a console window. (#248) 2019-10-25 18:11:02 -07:00
wcheng-msft 8966c2a2ae
Psf handler (#247)
* Update expected PSF stuff through start menu link and shellexecute launch; still need to hook up to parser

* add test, update test package to contain script, works with hardcoded paths

* Log exit code in case it's used
2019-10-24 14:02:39 -07:00
wcheng-msft f53dc0ee09
update path to custom action for x64 change (#245) 2019-10-23 14:32:45 -07:00
wcheng-msft b8d171619d
replace bmps with smaller jpgs and check-in updated wixproj which was… (#244)
* replace bmps with smaller jpgs and check-in updated wixproj which was missed with the x64 split work

* reverse order of configuration/platform to be the standard ordering
2019-10-23 12:52:09 -07:00
wcheng-msft ef8dbb7856
create x64 version of msi package (#241) 2019-10-23 11:09:35 -07:00
jyvenugo eaf3183c87
Added Loc Strings (#243)
* PR feedback

* Remove period
2019-10-23 11:07:28 -07:00
jyvenugo 5c62fc47ea
Replace substring check with full string check (#240)
* Replace substring check with full string check

* Searh for first directory
2019-10-16 15:30:41 -07:00
jyvenugo 3ffa01eeb9
Create long file path before passing to mkdirp (#238)
* Create long file path before passing to mkdirp

* Updated other calls to mkdirp

* Updated mkdirp method to handle both long path and without long path strings
2019-10-15 12:36:29 -07:00
Ruben Guerrero add4a30436
Fix Issue 224 (#239) 2019-10-14 18:11:19 -07:00
stephenk-msft 52ee40d65f
Updated ApplyACLs.dll with bug fix; Updated README for unpacking/applying acls (#214) 2019-10-14 10:50:31 -07:00
jyvenugo 73629c4013
Append filepath with long length support (#236) 2019-10-10 14:22:36 -07:00
jyvenugo e1c9edb333
Load package from programFiles location (#235)
* Load package from programFiles location

* Remove unused method
2019-10-10 11:04:12 -07:00
wcheng-msft 8f32777cad
add VFS file paths and fix caseinsensitiveissubstring (#229) 2019-10-09 17:16:21 -07:00
wcheng-msft 17a344a3f6
Versions (#227)
* Update WiX msi version to match file version

* add script to update version and change in .rc and project files to add version string based off git describe

* Revert "add script to update version and change in .rc and project files to add version string based off git describe"

This reverts commit d9aa8cb9191f925fe437cd967a7580d73e5d572d.

* Add additional logging when win10 redirects, log version number of msixmgr and change msixmgr version for preview to 0.0.0.0
2019-10-03 15:01:24 -07:00
Ruben Guerrero 676288095f
Fix adding multiple files with the same name via AppxPackaging apis (#226) 2019-10-01 17:02:38 -07:00
stephenk-msft b5fe50dfb3
Changed default behavior to skip signature validation. Added option to perform signature validation (#225) 2019-10-01 11:20:01 -07:00
wcheng-msft 3011d76056
Shared dll handling (#223)
* expected changes for uninstall

* should write shareddll on install, but not on reinstall

* Shared DLL handling.
Also fixed issue with iterating maps matching on substrings of the VFS token instead of the full token. for example VFS\SystemX86\file.dll would match the "System" first instead of "SystemX86" token in full.
2019-09-26 11:23:54 -07:00
jyvenugo bfa7bf7400
Tests for shared binaries (#222)
* Fix existing tests

* Add test with shared binaries
2019-09-25 15:56:48 -07:00
stephenk-msft 1389e84cbb
Fix decoding problems and add support for unpacking large files on Windows (#221)
* Always decode file names; Fix encoding array; Support large files on Windows

* Remove variable decodedFileName

* Fixed formatting of EncodingToChar array

* Removed whitespace
2019-09-25 13:25:49 -07:00
wcheng-msft 4f4f8ca942
open and save bmps so they're in a format understood by win7 (#220) 2019-09-24 11:42:53 -07:00
jyvenugo 62ef00fbf2
Convert display percent from float to int (#219) 2019-09-23 16:18:23 -07:00
jyvenugo b1c95b6b4e
FindPackage * should return all packages and not just first (#217)
* FindPackage * should return all packages and not just first

* Remove FindAllPackages

* One method to search by fullName or familyName or *

* Revert changes to FindPackage and FindPackageByFamilyName

* Case insensitive match

* remove extra step to return no packages found

* Update readme

* Updated tests

* remove added package
2019-09-23 14:53:25 -07:00
stephenk-msft 592f7a6c68
Added warnings for required dependency packages/require license files (#218) 2019-09-18 15:37:02 -07:00
wcheng-msft fce35e159f
update graphics for MSI dialog. (#216) 2019-09-11 16:07:43 -07:00
jyvenugo b2ebb91a3a
Added fileversion to msixmgr binary (#215)
* Added fileversion to binary

* Indentation
2019-09-10 14:44:23 -07:00
jyvenugo c5d2160ff6
Find package by family name and wildcard support (#213)
* Find package by family name

* Update errors

* Code review comments

* Search by wildcards

* Search by wildcards in package Family Name

* Error handling when package is not found

* Addressed review comments

* Updated tests and code for no packages found

* Modified error condition

* Update readMe.md

* update readme
2019-09-06 14:35:57 -07:00
jyvenugo b204d4b08a
App Execution Alias DEH (#212)
* Parse manifest

* Write reg keys

* launching alias from win+r works

* Still testing, does not work from cmd prompt

* Implement remove

* Updated notepad package with test extension

* Updated correct namespace for appexecution alias
2019-08-22 14:40:45 -07:00
stephenk-msft 3c48599fc2
Add ability to unpack and apply acls to package folders in msixmgr.exe (#201)
* Add ability to unpack packages and apply ACLs to the resulting package folders to msixmgr.exe

* Add command to apply acls to already unpacked package. For Unpack command, add logging for invalid package path. Wrap hmodule in smart pointer. Gate ACL logic behind IsApplyACLs

* Reformated logging for invalid package path

* Bug fix for wrapping applyaclsdll module with unique_ptr

* Refactor: move unpack/acl logic out of msixmgr.cpp and into separate files/classes

* Remove classes from UnpackProvider and ApplyACLsProvider

* Bug Fix: ApplyACLs command could not accept package path parameter; Bug fix: use Text<WCHAR> instead of PWSTR

* Use the optional package's publisher, not its entire package family name, when no publisher specified for main package dependency

* Updated Api_AppxManifestReader_OptionalPackage test to reflect bug fix

* Removed logging from ApplyACLsProvider

* Test bug fix: missing command in expectedPublisherValues vector

* Test fix: wrong publisher specified in expectedPublisherValues

* Updated help text; Output info to user on failures

* Revert "Test fix: wrong publisher specified in expectedPublisherValues"

This reverts commit 8c4954c6c167e6c7446055dcbb395a1be80f83f8.

* Checking back in test changes

* Checking back in msixmgr.vcxproj* files

* Output errors in hex; Output error message specific to missing cert

* Added msixmgr.exe dependency ApplyACLs.dll
2019-08-20 16:58:11 -07:00
wcheng-msft e6f55f088e
update casing to msixmgr, set path environment for launching cmdline (#211) 2019-08-20 11:31:09 -07:00
mslucyyloo22 bab51e92a9 Update PowerShell commands (#176)
* Update PowerShell commands

* Update README.md

Adding in more commands
2019-08-19 17:45:26 -07:00
jyvenugo 8d6be80310
Case insensitive TDF comparison (#209) 2019-08-19 14:21:43 -07:00
wcheng-msft 78c399534a
Acl temp file and stream test msixtrace provider (#208)
* update msixtrace.ps1 to have both providers

* resource + stream api test

* fix merge and build

* Update packages so they're installable on Win10
Set ACL on temp file in win10 redirection to prevent local user write access to the temp file. (only admins can write to it)
Seek to beginning of stream in case passed-in stream is not already there.

* Change to relative path instead of my local path.
2019-08-16 17:39:41 -07:00
JohnMcPMS 61f0d885e3
Rename variable to indicate semantics (#207)
* Rename variable to indicate semantics

* Change names in implemntation as well
2019-08-16 16:27:20 -07:00
JohnMcPMS 8395c16596
Add a test for packaging a file larger than 4GB (#203)
The primary change is the addition of a test that packs a file larger than 4GB. This is done by creating a stream that returns easily compressed data, resulting in an ~6MB package file. The test is tagged with a hidden [.slow] tag, as it takes ~5 minutes to churn through the data and then open the resulting package for verification.

The change also reorganizes the msix in directory into categories for current and future use. The categories (and directories) are:

public: headers that we "publish" for consumption by external callers
shared: headers used by the functional tests; no linking allowed
internal: headers used by future unit tests, were linking will happen
This allows the tests to reuse product functionality, rather than re-implementing things like ComPtr.
2019-08-16 10:41:51 -07:00
wcheng-msft 8febefcb50
suppress ice validation so CI build can complete successfully. (#204)
* suppress ice validation so CI build can complete successfully.

* delete msixmgrSetup (vdproj)
2019-08-15 16:59:53 -07:00
wcheng-msft c1285dc171
Enable wix build in solution (#200)
* Revert "in progress, tryng to figure out how to best handle different error modes"

This reverts commit e9ab631ba32e0d23bff547fa06a78e4e84d2d977.

* Enable configuration manager to build the WiX and custom action projects.
Fix warning of long binary name in WiX project
Update Readme.md to point to WiX project instead of vdproj MSI

* fix weird merge.
2019-08-14 11:35:56 -07:00
wcheng-msft bbbaf9d635
Wix setup project (#198)
* 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 e9ab631ba32e0d23bff547fa06a78e4e84d2d977.

* playing around with trying to get full ui (instead of basic ui) when double clicked from ARP

* Progress so far on getting the full UX to show up on uninstall through ARP.

* mostly working, may need to tweak UI locations/wordings

* Rename things and add comments

* remove bad indentation in product.wxs
2019-08-13 16:59:35 -07:00
stephenk-msft 76ee121ba2 Implement IAppxManifestReader5 (#194)
* Implement IAppxManifestReader5

* Fix AppxManifestOptionalPackageInfo's GetMainPackageName API to return S_OK instead of fail when package is not optional package

* rename crypto.hpp to Crypto.hpp in include statement

* Added test Api_AppxManifestReader_OptionalPackage; Fix AppxManifestOptionalPackageInfo constructor to initialize m_factory

* Added new sample manifest containing main package dependencies

* Minor formatting change to new sample appxmanifest

* Test check in: confirm whether test failure is related to addition of new test manifest

* Test failure test #2: only include 1 mainpackagedependency

* Test failure test no. 3: only include main package dependency WITHOUT publisher

* Bug fix: manifest file cannot contain both main package dependencies and capabilities

* Test failure test no. 5: change uap3 to uap4

* Test failure test no. 6: just create stream on new file (no main package dependencies)

* Test failure test no. 7: just create stream on ORIGINAL manifest file

* test failure test no. 8: new manifest contains minimum elements

* Test failure test no. 8b: modify test to use new manifest file

* Test failure test no. 9: use main.cpp's actual appxmanifest

* New appxmanifest file has exact some content as original

* Go back to original test code and the new test manifest with main package dependencies

* Modify test to only run on Windows

* Bug fix: run test on non-IOS

* Test fix: publisher attribute in manifest file was invalid

* Removed ifndef statement

* Update project.pbxproj

Add new file to IOSBVT project
2019-08-13 16:55:01 -07:00
JohnMcPMS abd61afd0a
Fix for new cmake tar command that won't take no files (#199)
Starting in cmake 3.15, the tar command will error if given no files to work on. This change will work across all version by cutting off that scenario and instead generating a 1 byte resource array. The code is then updated to recognize that scenario and short circuit to returning a file not found for any resources requested.
2019-08-13 16:41:00 -07:00
jyvenugo ba913d8ffc
Show icon for autoplay in control panel and modify test app (#197)
* Show icon for autoplay in control panel and modify test app

* Remove commented method
2019-08-13 13:08:29 -07:00
jyvenugo 65c2322b4e
Auto play DEH (#186)
* Working on generateprogid

* Added method to generate prog id

* Placeholder changes

* GenerateProgId now works

* Generate handler name

* Write keys for autoPlayContent

* Method signature changes

* Get packagedirectory path

* Parse Desktop Appx content and device elements

* Write registry keys

* Changes while running code

* Tested changes and changes to certain keys

* Addressed certain PR comments

* Implement executeForRemoveRequest

* Replace macros with definition

* Remove usage of widestring.cpp

* return hresult from ntstatus

* Add AutoPlay to remove handlers

* Updated test package with autoPlayHandler extension

* Removed usage of byte buffer

* Corrected indentation

* Spaces and remove copyright line

* Removed comment
2019-08-09 15:30:33 -07:00
Ruben Guerrero ab322965d6
Delete packaging from branch (#192) 2019-08-06 15:10:58 -07:00
Ruben Guerrero bfaf56ac40
Merge pull request #191 from microsoft/packaging 2019-08-06 14:16:12 -07:00