Hello Silvio,
No worries about the late reply.
Hopefuly everything is fine now with your company!
Now, in what regards the encountered problem, thank you for the summary!
First thing I'd like to clarify here is this:
During upgrade (UPGRADINGPRODUCTCODE), I would like to avoid providing those details:
During an upgrade process, there are two properties that are set:
UPGRADINGPRODUCTCODE and
OLDPRODUCTS. The difference between these two is as it follows:
-
UPGRADINGPRODUCTCODE is set in the
old setup
-
OLDPRODUCTS is set in the
newer setup
The
UPGRADINGPRODUCTCODE condition would be used if you want to condition an action from the old package, while the
OLDPRODUCTS would be used if you want to condition an action in the newer package.
I felt like mentioning this because, in your scenario, those details would be provided during the installation of the newer setup, therefore if you want to condition that somehow, the correct condition would be
OLDPRODUCTS.
The suggestion you gave on your last post works fine for what regards the uninstall moment: if I uninstall from control panel, the service disappears from window services window.
I am glad to hear that this works as expected.
The reason we have used the
UPGRADINGPRODUCTCODE as our condition here is the fact that the service is removed during the uninstall process of the older version.
In case of upgrade I've noticed that the files are not overwritten.
This is quite strange. Could you please:
- make sure the file in subject does not have the
"Do not overwrite existing file" option set? To do so, please go to
"Files and Folders" page, select the file that is not overwritten --> right click on it -->
"Properties" -->
"Operations" tab.
- make sure that the component associated with your file does not have the
"Never Overwrite" or
"Permanent" attributes. To do so, please go to
"Files and Folders" page --> select your file --> right click -->
"Go to component".
Normally, the file should be removed and then added again in the newer setup. Beside the above, I do not quite see why the file would not be overwritten.
Hope this helps!
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging