PowerToys/installer
2020-01-29 13:06:19 +01:00
..
MSIX MSIX: update identity name and publisher (#1176) 2020-01-29 13:06:19 +01:00
PowerToysSetup wix: run ngen on FancyZonesEditor (#898) 2019-12-09 19:02:47 +03:00
PowerToysSetupCustomActions MSIX: minor cleanup, add certificate generation script 2019-12-24 17:06:10 +03:00
PowerToysSetup.sln FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
README.md MSIX build instructions adjustmnet (#1170) 2020-01-28 15:01:17 -08:00

PowerToys Setup Project

MSIX instructions

1-time Run

Create Self-sign certificate

For the first-time installation, you'll need to generate a self-signed certificate. The script below will generate and add a cert to your TRCA store.

  1. Open Developer PowerShell for VS as an Admin
  2. Navigate to your repo's installer\MSIX
  3. Run .\generate_self_sign_cert.ps1

Elevate Developer PowerShell for VS permissions

msix_reinstall.ps1 is unsigned, you'll need to elevate your prompt.

  1. Open Developer PowerShell for VS as admin
  2. Run Set-ExecutionPolicy -executionPolicy Unrestricted

To Build MSIX

  1. Make sure you've built the Release configuration of powertoys.sln
  2. Open Developer PowerShell for VS
  3. Navigate to your repo's installer\MSIX
  4. Run .\msix_reinstall.ps1 from the devenv powershell

What msix_reinstall.ps1 does

msix_reinstall.ps1 removes the current PowerToys installation, restarts explorer.exe (to update PowerRename shell extension), builds PowerToys-x64.msix package, signs it with a PowerToys_TemporaryKey.pfx, and finally installs it.

Removing all .msi/.msix PowerToys installations

$name='PowerToys'
Get-AppxPackage -Name $name | select -ExpandProperty "PackageFullName" | Remove-AppxPackage
gwmi win32_product -filter "Name = '$name'" -namespace root/cimv2 | foreach {
  if ($_.uninstall().returnvalue -eq 0) { write-host "Successfully uninstalled $name " }
  else { write-warning "Failed to uninstall $name." }
}

MSI Build instructions (Deprecated)