Page 1 of 1

UNINSTALLLINK and updates

Posted: Sun Feb 28, 2016 8:11 am
by Dany
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

Re: UNINSTALLLINK and updates

Posted: Mon Feb 29, 2016 2:21 pm
by FrancescoT
Dear Dany,

you may try to use the "OVERRIDECACHE" pre-defined variable.
"Overriding the value of this variable allows changing the installer cache location" (see IA documentation for more details)

However, it's not possible to change the name of the folder that will contain the setup cached.

Hope this helps you.

Regards