Replies: 1 comment
-
I found what was wrong, It was setting the ASSERVICE = false always when doing update, I save this value to the register and send ASSERVICE = empty and now does it work. I also add the DeleteServices to the InstallExecuteSequence <InstallServices><![CDATA[NOT Installed]]></InstallServices>
<DeleteServices><![CDATA[(REMOVE ~= "ALL" AND (NOT UPGRADINGPRODUCTCODE))]]></DeleteServices> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Try to fix a bug in one of our installation package that installs a service. The problem is that when doing an update (even with minor update) the service is uninstalled and then installed, as no data is saved in the register it always re-installs with account LocalSystem.
It has not been a problem before as the service has always been installed with the LocalSystem or the customer have not update the product, but now there is a need to update where it been installed with different Account and I have not find any good solution to fix this.
As it have been installed with different account the best solution have been if the service never will be uninstalled just stoped except on uninstall but I have not found any solution for that that's works.
I know I can save the settings in the register and it will fix it in the future, but there is some problems that we already have customer that have installed with different service account.
I have tested with many different things but nothing have worked.
I must say that I have not write the original code and have limit knowledge about Wix so i may have some problem to answer any question why it's done like it's done, I learn something new every day :).
Here is my code right now, it have been many iterations:
Beta Was this translation helpful? Give feedback.
All reactions