Custom Action executes Powershell script after installation? #8915
-
Hello, I am trying to implement a custom action that executes a Powershell script after the installation is finished. thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I don't recall there being too much different in CustomActions between WiX v3 and WiX v4+ You're likely going to need to provide actual details for your specific problems. Have you looked at this: It's got the whole WiX v3 Extension thing wrapped around the CustomAction that you wouldn't really need. |
Beta Was this translation helpful? Give feedback.
Ahh, so you're not really trying to implement a Custom Action. You're just trying to use an existing Custom Action.
You might want to have a review of the Windows Installer doco for these various built in custom actions.
Given you've used ExeCommand and Directory, then I think it's the Type 34 that you're trying to use.
https://learn.microsoft.com/en-us/windows/win32/msi/custom-action-type-34
The base requirements of the MSI Windows Installer Custom Action are required, but those requirements get mapped into Wix world via this authoring symbol
https://wixtoolset.org/docs/schema/wxs/customaction/
Ultimately, you might want to look at the Wix QuietExec custom action instead
https://wixtools…