Added scripts and projects to create self-extracting installer on Windows#37
Merged
Conversation
Signed-off-by: chehan <chehan@qti.qualcomm.com>
Signed-off-by: chehan <chehan@qti.qualcomm.com>
76ae52d to
1f77973
Compare
hangzqcom
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Windows driver installer tool and build pipeline
Summary
This PR introduces a complete Windows driver installation solution: a native
qdinstalltool for low-level driver management, a self-extracting C# installer executable for end-user distribution, and the build scripts that tie everything together for x86, x64, and arm64 platforms.Changes
1. New:
qdinstalltool (src/windows/tools/qdinstall/)A native C++ command-line utility for driver lifecycle management:
-iqdclr.exe, installs all.infdrivers usingpnputil, triggers device re-enumeration, and registers the installation in the Windows registry (Add/Remove Programs).-xqdclr.exe, removes registry entries, and re-enumerates the device tree.-v-g-p <path>HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Qualcomm USB Drivers.Files:
main.cpp,main.h,registry.cpp,registry.h,qdinstall.sln,qdinstall.vcxproj2. New: Self-extracting installer (
build/build-installer.ps1)A PowerShell script that:
target/Drivers/andtarget/Tools/into a zip, promotingqdclr.exeandqdinstall.exeto the payload root for direct execution.csc.exe(Framework 4.0). The resulting executable:--install(default),--uninstall, and--versionflags.runasverb).qualcomm_userspace_driver,qud,qud.slt,qud.internal) viaqpm-cli, runsqdinstall.exe -i -p <installPath>, then copies all files to%ProgramFiles%\Qualcomm\Qualcomm USB Drivers.src/windows/qcversion.hand stamps it into the assembly metadata.3. New: Build scripts (
build/)build_tools.ps1build-installer.ps1build_installer.batbuild_tools.ps1,build-installer.ps1, andsign.ps1for each architecture. Producesqcom_usb_kernel_drivers_{x86,x64,arm64}.exe.4. Renames
build_all.bat→build_drivers.bat(clarifies scope — driver.sys/.infbuild only)build.ps1→build_drivers.ps1(same)Install Flow
Uninstall Flow
Testing
Let me know if you'd like any adjustments, or toggle to Act mode if you want me to save this to a file.