You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE REQUEST] Allow for post update command #2160
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
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.
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.
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.
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.
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.
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
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!
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.
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.
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.
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.
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.
Activity
marticliment commentedon Apr 22, 2024
Duplicate of #1225
ThioJoe commentedon Jun 6, 2024
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.
marticliment commentedon Jun 6, 2024
My bad, I guess I didn't properly understand the point of #1225
[-]Allow for post update command[/-][+][FEATURE REQUEST] Allow for post update command[/+]ThioJoe commentedon Jun 6, 2024
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.
killo3967 commentedon Jul 28, 2024
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.
marticliment commentedon Jun 20, 2025
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)
Brodieman commentedon Jun 20, 2025
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!
marticliment commentedon Jun 20, 2025
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?
Brodieman commentedon Jun 20, 2025
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.
marticliment commentedon Jun 20, 2025
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.
Brodieman commentedon Jun 20, 2025
Oh so it's like a way for me to save a group of installs. I will look into that. Thanks!
killo3967 commentedon Jun 21, 2025
I also testest the pre-install, post-uninstall and post-update
Already checked pre-post-install, pre-post-uninstall and pre-post-update package. All works fine.
Good work and thanks very much.