I create a file (build_id.txt) in the $TARGETDIR$, that holds the Jenkins BUILD_ID. I need to delete this when installing over an existing product version. However, at the point where I would do this ([DEFINE REGION: Install Application Pre-Requisites]), the user hasn't specified where they want to install the product. Which means the value held by $TARGETDIR$ is the default (c:\Program Files...), which may not be where the product was installed.
What I need to know at this point, is where the current product is installed. This location must be known in order to un-install and update. I have searched the docs for a suitable variable, without success. I have scanned the main MSI code, and 'updates' for inspiration, and drawn a blank.
Got a problem you cannot solve? Try here.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest