how can I do to get the installation path that the user choose in the installer ,not the default one specified in the xml, a custom one?
It may be useful if I have my install code launched by the OEM installer in order to add my files to the global installation.
that is fairly easy.
When the OEM installer has run its course, there is a registry key called Location where the install path of the OEM application is saved.
I will demonstrate this with our AutoSTAGE application with AutoCAD OEM 2023 German (disclaimer: I am the lead developer for AutoSTAGE).
Look for a key that looks like this:
There you will find a string called Location where the full path to the install folder is stored.
When you use WiX (Windows Installer Xml), you can get the path as property with something like this:
Obviously, this only works after the OEM installer is done with its magic. You would have to call your installer after the OEM msi has been installed.
This will not work, because it injects the your installer before the main OEM msi installer is called.
There is surely a way to add the call to your installer after the main OEM msi is done, but I would have to think about it more deeply.
Thank you very much, that’s what I needed. I’ve only to change something in my msi in order to be executed AFTER the main msi, but as in the past, there should be something like “Post requisite” that worked similar the “pre requisites”, I will check for it.
Actually your post aswered to my question.