Skip to content

[FEATURE REQUEST] Allow for post update command #2160

Closed

Description

@Brodieman

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 improvement refers to an existing feature. If you want to suggest a new feature, please use this template
  • This improvement is not a bug. If you want to report a bug, please use this template

Describe the improvement

I would like the option to add a command after a program is updated. Some programs create desktop icons, I hate that. I would like to be able to add a command after the program updates to delete that icon.

Describe how this improvement could help users.

Would save me from having to delete the icons over and over again when the program updates

Activity

  1. added
    enhancement
    on Apr 22, 2024
  2. marticliment commented on Apr 22, 2024

    @marticliment
    Collaborator

    Duplicate of #1225

  3. ThioJoe commented on Jun 6, 2024

    @ThioJoe

    Martí Climent (@marticliment) This isn't a duplicate of 1225 - post install update scripts would be much simpler to implement than what 1225 is requesting which is custom entire installation scripts from my understanding. And frankly useful to far more people.

  4. marticliment commented on Jun 6, 2024

    @marticliment
    Collaborator

    My bad, I guess I didn't properly understand the point of #1225

  5. added
    new-feature
    and removed
    enhancement
    on Jun 6, 2024
  6. changed the title [-]Allow for post update command[/-] [+][FEATURE REQUEST] Allow for post update command[/+] on Jun 6, 2024
  7. ThioJoe commented on Jun 6, 2024

    @ThioJoe

    My bad, I guess I didn't properly understand the point of #1225

    No worries, I had to re-read the other post a couple times myself to be sure of what he was getting at.

    Also I realize I was saying post-install "scripts", but really just the ability to run a specified command per app would be enough, since the command could simply call any batch script or other script. And cmd and powershell commands can be chained anyway.

  8. killo3967 commented on Jul 28, 2024

    @killo3967

    I also need this feature. I use the Bleachbit program to clean the operating system and would like to run it after all installations are done.
    This is also done by the BCUninstaller software which allows a program to run "before and after" an uninstall. I think it would be very convenient for system cleanup.

  9. marticliment commented on Jun 20, 2025

    @marticliment
    Collaborator

    Hello,

    I have published a PreRelease version of UniGetUI that allows to specify pre/post install/update/uninstall commands/scripts. I'd appreciate if you could test it and provide some feedback.

    Thanks!
    Download link: 3.2.1-beta1 (release)

  10. Brodieman commented on Jun 20, 2025

    @Brodieman
    Author

    Hello,

    I have published a PreRelease version of UniGetUI that allows to specify pre/post install/update/uninstall commands/scripts. I'd appreciate if you could test it and provide some feedback.

    Thanks! Download link: 3.2.1-beta1 (release)

    I have tested this with a package and it's working! Thanks! Is there a way to add that command from command line by chance? Whilst I did not mention this (MY FAULT), I have a script that installs a ton of programs for a new Windows install. So something like

    winget install -e -h --accept-package-agreements --accept-source-agreements --force --id MartiCliment.UniGetUI --post-install-command "ipconfig"

    or something like that?

    A way to not have to go into each one and add this to all of them after first install? If not, not major, it will still be nice to be able to add them as they update to know which ones I want to add a script to. The CLI option might be limited by winget too, I would think. Or maybe even a UniGet command line that I can run after the install that is done via CLI that adds it? Just suggestions.

    Thanks for even adding this option it will be nice for me!

  11. marticliment commented on Jun 20, 2025

    @marticliment
    Collaborator

    What you could do, to add the pre/post commands to UniGetUI, is create a package bundle, changing the packages options to match your preferences, and then importing said bundle on the new machine. Then, UniGetUI will import and store the commands.

    Is that what you meant?

  12. Brodieman commented on Jun 20, 2025

    @Brodieman
    Author

    I am not sure what you mean by create a package bundle. If you mean create my own package in Winget, not sure I want to do that? If it's not possible, I 100% understand. I can keep a list of packages that require a post install\update command and just do it manually.

  13. marticliment commented on Jun 20, 2025

    @marticliment
    Collaborator

    UniGetUI is not injecting the commands into winget, unigetui runs the pre-install command, then calls winget to install the package, and then runs the post-install command.

    On UniGetUI, you have the ability to create bundles of packages. A bundle is a list of packages, each package with its install options, that can be then opened on another machine running UniGetUI, and then the packages (with their install options) can be installed on that other machine.

  14. Brodieman commented on Jun 20, 2025

    @Brodieman
    Author

    Oh so it's like a way for me to save a group of installs. I will look into that. Thanks!

  15. killo3967 commented on Jun 21, 2025

    @killo3967

    Hello,

    I have published a PreRelease version of UniGetUI that allows to specify pre/post install/update/uninstall commands/scripts. I'd appreciate if you could test it and provide some feedback.

    Thanks! Download link: 3.2.1-beta1 (release)

    I also testest the pre-install, post-uninstall and post-update

    Hello,

    I have published a PreRelease version of UniGetUI that allows to specify pre/post install/update/uninstall commands/scripts. I'd appreciate if you could test it and provide some feedback.

    Thanks! Download link: 3.2.1-beta1 (release)

    Already checked pre-post-install, pre-post-uninstall and pre-post-update package. All works fine.
    Good work and thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

new-featureready-to-go

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions