UNINSTALLLINK and updates

Got a problem you cannot solve? Try here.
Post Reply
Dany
Posts: 13
Joined: Mon Feb 22, 2016 6:58 am

UNINSTALLLINK and updates

Post 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
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: UNINSTALLLINK and updates

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply