mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
* added diagnostic tool project * Add copy to a temp folder, escape private info and zip it * Added diagnostic tool to installer * zip folder path as cmd argument * renamed project to BugReportTool * do not use precompile headers for release * Added zip lib * Added license * Delete old zip source files * Use fork version while PR is not merged * fix spelling * exclude deps folder from spell checking * exclude only zip * removed redundant configuration from zip project * fix spelling * Add error handling to implementation * Added build of BugReportTool.sln to pipeline * Delete redundant info from BugReportTool.vcxproj * Deleted submodule * Added submodule * fix build * Restore nuget packages for BugReportTool.sln on CI * spelling fix * Use SettingsAPI * changed git submodule * added new sensitive info * Removed zip project * use json.h, add date to zipfolder, handle zip is not created * fix spelling * delete bad_alloc catch * add new sensative info * report monitor info * report windows version * fix spelling * delete platform specific configuration * fix output
PowerToys installer instructions
MSI installer instructions
- Install the WiX Toolset Visual Studio 2019 Extension.
- Install the WiX Toolset build tools in the development machine.
- Open
powertoys.sln, select the "Release" and "x64" configurations and build thePowerToysSetupproject. - The resulting installer will be built to
PowerToysSetup\bin\Release\PowerToysSetup.msi.
MSIX installer instructions
One-time tasks
Create and install the 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.
- Open
Developer PowerShell for VSas an Admin - Navigate to your repo's
installer\MSIX - Run
.\generate_self_sign_cert.ps1
Note: if you delete the folder, you will have to regenerate the key
Elevate Developer PowerShell for VS permissions due to unsigned file
reinstall_msix.ps1 is unsigned, you'll need to elevate your prompt.
- Open
Developer PowerShell for VSas admin - Run
Set-ExecutionPolicy -executionPolicy Unrestricted
Allow Sideloaded apps
In order to install the MSIX package without using the Microsoft Store, sideloading apps needs to be enabled. This can be done by enabling Developer Options > Sideload apps or Developer Options > Developer mode.
Building the MSIX package
- Make sure you've built the
Releaseconfiguration ofpowertoys.sln - Open
Developer PowerShell for VS - Navigate to your repo's
installer\MSIX - Run
.\reinstall_msix.ps1from the devenv powershell
What reinstall_msix.ps1 does
reinstall_msix.ps1 removes the current PowerToys installation, restarts explorer.exe (to update PowerRename and ImageResizer shell extension), builds PowerToys-x64.msix package, signs it with a PowerToys_TemporaryKey.pfx, and finally installs it.
Cleanup - 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." }
}