Hi, Im having an issue with a service start, i describe what im doing:
I have a per machine installer, and i was in need to remove previous per user versions, that is not possible in advanced installer right now so i did a trick.
With a custom action before FindRelatedProducts I detect previous per user installation, set that productcode in the OLDPRODUCTS property, and also set ALLUSERS property to an empty string (thats how I get advanced installer to remove previous version of a different type of installation), then, after FindRelatedProducts i set ALLUSERS back to "1".
Everything goes as expected, the installer removes previous per user versions, then installs the application, but my application has a service, and installer crashes because the service cant be started, because the service path is wrong, its path is taken from APPDIR variable, but it points to local user folder and not to program files, that problem is caused by the trick.
I tried to fix APPDIR value in another custom action, and im setting it in multiple different parts of the installer, but the service path keeps the wrong path no matter what i tried.
Can I get some ideas on how to fix it? when is the service path set in the installation?
Edit: How can i change the path of the service component in a custom action before it is installed?
Thanks in advance.