Add ability to reference old style action names #7210
Replies: 7 comments 7 replies
-
Why do you want to reference them by a shorter name? We need more details to motivate the need for a solution and why you can't reference the CustomActions by their architecture specific name. |
Beta Was this translation helpful? Give feedback.
-
I am sorry, I do not understand. How it worked in WIX 3? There was support for 2 platfoms and action names were without suffix. I attached 3 files: Product.wxs, Snapshots of X86 CustomAction table and X64 CustomAction table. You can see that all action names are the same without suffix. And everything works fine. |
Beta Was this translation helpful? Give feedback.
-
WiX v3 had only a couple of platform-specific custom actions for x64; almost all CAs were 32-bit x86, even in an x64 package. In WiX v4, every custom action (almost) is available in three architectures, so the WiX v3 approach won't work. |
Beta Was this translation helpful? Give feedback.
-
This I understand, But now you have three different dll files compiled for each platform and they are imported to MSI during build from different locations. All functions in all dll files have the same signatures regradless of platform they were compiled. So It is possible to mantain the same signature for Custom Actions too. I use this approach for my library of custom actions: when I build for x86 I link to x86 dll and the same for x64. My code looks like this:
Can you use the same approach in WIX4? |
Beta Was this translation helpful? Give feedback.
-
Sorry, xml formatting did no pass, The code: |
Beta Was this translation helpful? Give feedback.
-
Sorry, I may look like a nagger but here is example of the code from WIX 4: |
Beta Was this translation helpful? Give feedback.
-
Finally I start understanding the internals of WIX after couple days of debugging and I admit that my attempt to slove my problem was a quite hasty. Currently I do not see the resolution through WXS code on extension level but it indeed can be resolved on the end uder level through preprocessor. Therefore I do not think that this "required" feature needs much attension at this point. |
Beta Was this translation helpful? Give feedback.
-
I would like to be able to mention WIX custom action names with the form WiX4ConfigXmlFile.
The approach I see is to replace this names with actual Action names the build uses: WiX4ConfigXmlFile_X86. I think that this can be done at compile stage.
Beta Was this translation helpful? Give feedback.
All reactions