doc/devdocs/core/installer.md
PowerToysSetupCustomActionsVNext DLL and signs itapplyBuildInfo.ps1 and generateFileList.ps1) dynamically update files list for installer
%LOCALAPPDATA%\PowerToysProgram Files\PowerToyspackage.h checks if a package is registered and verifies the version%LOCALAPPDATA%\Temp\PowerToys_bootstrapper_*.log - MSI tool logs%LOCALAPPDATA%\Temp\PowerToys_*.log - Custom installer logsDeveloper PowerShell for VS.For the first-time setup, please run the installer as an administrator. This ensures that the Wix tool can move wix.target to the desired location and trust the certificate used to sign the MSIX packages.
The following manual steps will not install the MSIX apps (such as Command Palette) on your local installer.
PowerToys uses WiX v5 for creating installers. The WiX v5 tools are automatically installed during the build process via dotnet tool.
For manual installation of WiX v5 tools:
dotnet tool install --global wix --version 5.0.2
Note: As of release 0.94, PowerToys has migrated from WiX v3 to WiX v5. The WiX v3 toolset is no longer required.
Developer Command Prompt for VSnuget.exe is in your %path%nuget restore .\tools\BugReportTool\BugReportTool.sln
msbuild -p:Platform=x64 -p:Configuration=Release .\tools\BugReportTool\BugReportTool.sln
nuget restore .\tools\StylesReportTool\StylesReportTool.sln
msbuild -p:Platform=x64 -p:Configuration=Release .\tools\StylesReportTool\StylesReportTool.sln
If you prefer, you can alternatively build prerequisite projects for the installer using the Visual Studio UI.
tools\BugReportTool\BugReportTool.slnSolutions Configuration drop-down menu select ReleaseBuild menu, choose Build Solution.tools\StylesReportTool\StylesReportTool.slnSolutions Configuration drop-down menu select ReleaseBuild menu, choose Build Solution.installer\PowerToysSetup.slnxSolutions Configuration drop-down menu select ReleaseBuild menu choose Build Solution.The resulting installer will be available in the installer\PowerToysSetupVNext\x64\Release\ folder.
To build the installer from the command line, run Developer Command Prompt for VS in admin mode and execute the following commands. The generated installer package will be located at \installer\PowerToysSetupVNext\{platform}\Release\MachineSetup.
git clean -xfd -e *exe -- .\installer\
MSBuild -t:restore .\installer\PowerToysSetup.slnx -p:RestorePackagesConfig=true /p:Platform="x64" /p:Configuration=Release
MSBuild -t:Restore -m .\installer\PowerToysSetup.slnx /t:PowerToysInstallerVNext /p:Configuration=Release /p:Platform="x64"
MSBuild -t:Restore -m .\installer\PowerToysSetup.slnx /t:PowerToysBootstrapperVNext /p:Configuration=Release /p:Platform="x64"
Head over to the wiki to see the full list of supported installer arguments.