Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Pre-install 'hook' #2193

Open
2 tasks done
tushev opened this issue May 4, 2024 · 0 comments
Open
2 tasks done

[FEATURE REQUEST] Pre-install 'hook' #2193

tushev opened this issue May 4, 2024 · 0 comments
Assignees
Labels
new-feature A new feature that could be useful in WingetUI ready-to-go
Milestone

Comments

@tushev
Copy link

tushev commented May 4, 2024

Please confirm these before moving forward

  • I have searched for my feature proposal and have not found a work-in-progress/duplicate/resolved/discarded issue.
  • This proposal is a completely new feature. If you want to suggest an improvement or an enhancement, please use this template

Describe the new feature

A section in settings:

  • Checkbox: Enable pre-install hook
  • Label: A command to execute before installation of each package"
  • Text field: Path to executable + parameters
  • Checkbox: Do not proceed with package installation if command's exit code is different from 0
  • Description of variables that end-user can use inside text field:
    • $PackagePath: Path to newly downloaded package
    • $PackageID: ID of the Package
    • $InstallSystemType: winget/pip/scoop/etc
    • $NewVersion
    • $OldVersion

Describe how this new feature could help users.

This feature will allow advanced users to implement complex custom scenarios without having to request features from UnigetUI:

  • custom malware scan before installation
  • backing up packages to remote storage
  • sending notifications
  • custom logging
  • handling restart of service Y if package X updates
  • delaying updates for certain packages when required (i.e., via in-house API)
  • etc, etc
@tushev tushev added the new-feature A new feature that could be useful in WingetUI label May 4, 2024
@marticliment marticliment added this to the Features milestone May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature A new feature that could be useful in WingetUI ready-to-go
Projects
None yet
Development

No branches or pull requests

2 participants