Skip to content

[FEATURE REQUEST] Pre/Post install hooks #3221

@PurplProto

Description

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

The feature would allow users to create/specify an arbitrary script Batch/PowerShell to be executed pre-install and/or post-install of a package.

Describe how this new feature could help users

For me personally, the primary motivation is that some packages will persistently fail to install, due to part of them being in use by other software, for example OBS as mentioned in #3095.

Allowing the user to add a pre-install script would allow them to kill off the processes using that package in their preferred way, have the install proceed without failure due to the example issue, and then perhaps restart them post-install if they so wish.

This is more of a convenience thing IMO as some interactive installers allow this (as noted in that issue), although as also noted in that issue, many do not have such feature. Besides that, being able to automate it without user interaction would be very convenient.

Metadata

Metadata

Labels

new-featureA new feature that could be useful in WingetUI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions