Wix4 - Triggerring custom action on feature enabled #7882
Replies: 4 comments 4 replies
-
https://learn.microsoft.com/en-us/windows/win32/msi/conditional-statement-syntax but that won't work because you can't install one MSI from another so you need https://wixtoolset.org/docs/tools/burn/. |
Beta Was this translation helpful? Give feedback.
-
@AntonyNifosi MSI has a mutex that limits 1 installation execute sequence at a time or 1 UI sequence per process. It is technically possible for an MSI to shell out to another MSI from it's UI sequence but this isn't a best practice because 1) System state changes shouldn't be happening prior to InstallInitialize and 2) this precudes your installer from running silently. However I note that your wix code shows it being called from the execute sequence. That is 100% not possible. VCRedist should return 1618 and fail. https://learn.microsoft.com/en-us/windows/win32/msi/-msiexecute-mutex |
Beta Was this translation helpful? Give feedback.
-
Every VCRedist package I've ever seen has included MSI inside. I just downloaded the latest and it's still a wix bundle with MSIs inside. |
Beta Was this translation helpful? Give feedback.
-
1618 means VCRedist wasn't installed. That's not a 0 ERROR_SUCCESS. The correct way to do it is use a bundle like Bob suggested. Yes, ExePackage inside of a bundle is better. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to trigger a custom action when the user will install a feature.
Let's say for example you have your main program and a Visual Redist feature, if you select to install this feature it will execute the vcredist.exe installer.
I did like this :
But it doesn't seem to work, if I remove the "Condition=...." it works properly, so it's problably the way I am trying to access to the Vcredist value which is wrong.
Anyone knows the good way to do that ?
Thank's in advance for your answers !
Beta Was this translation helpful? Give feedback.
All reactions