UNINSTALLLINK and updates
Posted: Sun Feb 28, 2016 8:11 am
Hello!
I created a Win32 project from the template checked "Receive Application Updates" and entered a valid URL.
When an installation is uninstalled (REMOVE) the directory specified in $UNINSTALLLINK$ (on my test machine C:\ProgramData\{REVISIONCODEGUID}) gets renamed to ~7 (or another number) and those directories are removed at the next reboot. Nice.
When an upgrade to the next version is done, however, the directory never gets renamed. Probably because the update is ran in a spawned installer process.
Eventually the target system ends up with one directory per update and that will build up until the disk is full. Should be easy to reproduce.
Oh, and i have searched but only came up with posts regarding this issue and reboots, not updates. Also, it would be interesting to know if it is possible to prepend the GUID with $COMPANY$ so as to hold these things a bit more together. But i could not find out how or when this variable is created.
TIA,
/Dany
I created a Win32 project from the template checked "Receive Application Updates" and entered a valid URL.
When an installation is uninstalled (REMOVE) the directory specified in $UNINSTALLLINK$ (on my test machine C:\ProgramData\{REVISIONCODEGUID}) gets renamed to ~7 (or another number) and those directories are removed at the next reboot. Nice.
When an upgrade to the next version is done, however, the directory never gets renamed. Probably because the update is ran in a spawned installer process.
Eventually the target system ends up with one directory per update and that will build up until the disk is full. Should be easy to reproduce.
Oh, and i have searched but only came up with posts regarding this issue and reboots, not updates. Also, it would be interesting to know if it is possible to prepend the GUID with $COMPANY$ so as to hold these things a bit more together. But i could not find out how or when this variable is created.
TIA,
/Dany