We are using Wix to deploy our application. But for deploying our application we need to first deploy an application which is a prerequisite for our application. And the setup for that application is available to us as an external payload which we will be shipping along with our application setup.
Fig 1: this .exe is the main wix bundle we will be using to install our application. And the setup of prerequisite is inside the folder ”issetupprerequisites\{9BA97839-8D57-467D-8FDF-487966F8A4C2}”.
Fig 2: this is the setup.exe which we are shipping with our product which needs to be installed as a pre-requisite to our product.
But the problem we are facing is to give the path for that pre- requisite application exe , since that path will be a relative path because different user will be installing it from different location.
We decided to use a variable called [WixBundleOriginalSourceFolder] but are unable to use that.
Fig 3: Giving the path for that exe in this way so that we can install the external payload from our wix bundle on any machine , but failing to do so since path is not recognized.
Please guide us on how to give the path for that external payload exe so that it works on all the machines without any issues.
NOTE: we are using wix version 3.10 for our project.