Skip to content

Comments

Start Menu Shortcuts in _AppID-template.ps1/_Mods-Functions.ps1#1033

Closed
KnifMelti wants to merge 12 commits intoRomanitho:developfrom
KnifMelti:feature/_AppID-template
Closed

Start Menu Shortcuts in _AppID-template.ps1/_Mods-Functions.ps1#1033
KnifMelti wants to merge 12 commits intoRomanitho:developfrom
KnifMelti:feature/_AppID-template

Conversation

@KnifMelti
Copy link
Contributor

Proposed Changes

Add an option to create Start Menu Shortcuts in template/functions

Related Issues

Closes #1032

@github-actions github-actions bot added the invalid-branch Invalid branch label Aug 21, 2025
@KnifMelti KnifMelti changed the base branch from main to develop August 21, 2025 21:32
@github-actions github-actions bot removed the invalid-branch Invalid branch label Aug 21, 2025
@KnifMelti KnifMelti changed the title Feature/ app id template Start Menu Shortcuts in _AppID-template.ps1/_Mods-Functions.ps1 Aug 21, 2025
@KnifMelti KnifMelti marked this pull request as ready for review November 30, 2025 15:10
Copilot AI review requested due to automatic review settings November 30, 2025 15:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-ProgramsShortcuts function in _Mods-Functions.ps1 to create Start Menu shortcuts using COM automation
  • Updated _AppID-template.ps1 to include $Shortcuts and $ShortcutsTargets arrays with example usage
  • Modified Winget-Upgrade.ps1 process 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>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@KnifMelti KnifMelti marked this pull request as draft November 30, 2025 17:27
@KnifMelti KnifMelti closed this Dec 1, 2025
@KnifMelti KnifMelti deleted the feature/_AppID-template branch December 1, 2025 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Shortcut Creation/Deletion

2 participants