[v3.11] Custom Action prevents .msi upgrade #8706
Unanswered
josenetodgg
asked this question in
Questions
Replies: 2 comments
-
If I use my custom action simply as running notepad.exe, during upgrade I get:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I think you're using CustomActions wrong. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created an msi for an application that relies on a deferred custom action to do a few necessary things.
This custom action is supposed to run when the program is not installed or being upgraded. During installation, it goes well and does what it needs to do. However, during upgrade, it just breaks.
As for the upgrade, I expect the old folder containing the previous installation to be removed and that everything gets installed in the new one (another name, since the version of the program is part of it - currently changing from 0.1.0 to 0.1.1).
I ran some tests with the upgrade and my custom action is running before the new folder is actually created. Since I need some files that are moved/copied into the target dir during installation to run the custom action, I thought that the crash happened due to referencing a file that doesn't exist yet. However, if I change my custom action to something that just starts the notepad or any other known app/service, for instance, it breaks anyway. It seems that having this custom action, no matter what it is, breaks the upgrade.
I tried using
later added a new step to the install sequence
and finally
But none of these have worked as intended. As extra information, in the new wix file I changed the version, package id, and product id.
It seems a similar issue was described here, but still no responses so far.
What changes in the context of a custom action to be executed during upgrade compared to the installation step? For the upgrade I expect to have the old folder deleted, then the creation of the new folder and installation with the custom action.
Wix version: 3.11
OS: Windows 11
Beta Was this translation helpful? Give feedback.
All reactions