Start Menu Shortcuts in _AppID-template.ps1/_Mods-Functions.ps1#1033
Start Menu Shortcuts in _AppID-template.ps1/_Mods-Functions.ps1#1033KnifMelti wants to merge 12 commits intoRomanitho:developfrom
Conversation
Revert to Wait-Process since the change appears to skip log writing
Revert Wait-Process to fix logging
Release 2.8.0
There was a problem hiding this comment.
Pull request overview
This PR adds functionality to create Start Menu shortcuts through the WAU mods system, addressing issue #1032. The implementation provides a new template option for creating shortcuts in the Windows Start Menu Programs folder, complementing the existing desktop shortcut removal feature.
Key Changes:
- New
Add-ProgramsShortcutsfunction in_Mods-Functions.ps1to create Start Menu shortcuts using COM automation - Updated
_AppID-template.ps1to include$Shortcutsand$ShortcutsTargetsarrays with example usage - Modified
Winget-Upgrade.ps1process handling (unrelated to shortcuts feature)
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
Sources/Winget-AutoUpdate/mods/_Mods-Functions.ps1 |
Adds new Add-ProgramsShortcuts function that creates shortcuts in the Start Menu Programs folder using WScript.Shell COM object, with array validation and directory creation support |
Sources/Winget-AutoUpdate/mods/_AppID-template.ps1 |
Introduces $Shortcuts and $ShortcutsTargets array variables with example documentation, and adds function invocation in the main execution block |
Sources/Winget-AutoUpdate/Winget-Upgrade.ps1 |
Changes ServiceUI process handling from inline -Wait parameter to separate Wait-Process call (appears unrelated to shortcuts feature) |
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… validate input arrays
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Proposed Changes
Related Issues