Page 1 of 1

Size displayed in 'AddRemovePrograms' applet

Posted: Tue Feb 13, 2007 10:21 am
by jweksej
it is estimated as size of $TARGETDIR$ folder defined in installer. How to pass only to ARP another path, in my case it is $TARGETDIR$ subfolder '$TARGETDIR$\\ComponentName' ?

Posted: Tue Feb 13, 2007 3:11 pm
by CandiceJones
Actually, this is estimated internally by Windows Installer. I don't think it has anything to do with $TARGETDIR$.

You can hard-code your own size if you wish, by directly writing to the registry.

Posted: Wed Feb 14, 2007 4:28 pm
by jweksej
But the size displayed is exactly as TARGETDIR folder size...
Do you know where in registry is this size stored?

Posted: Fri Feb 16, 2007 7:51 am
by CandiceJones
A quick Google search reveals this location to be:

HKLM (for ALLUSERS=TRUE)
HKCU (for ALLUSERS=FALSE)

\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\$TITLE$
EstimatedSize (INTEGER)= $MYSIZE$

Posted: Fri Feb 16, 2007 9:37 am
by jweksej
and quick test on registry editor - and it doesn't work. Either on 2k or Xp. ARP displays the same value all the time.
This was the reason of my previous post.

Posted: Sun Feb 18, 2007 4:19 pm
by CandiceJones
You may have modified the wrong area of the registry. You can search for this field in other ARP entries and correlate your findings.

Posted: Mon Feb 19, 2007 3:03 am
by jweksej
This is exactly what I've done before. I've changed Microsoft components size and it looks, ARP is not using EstimatedSize anymore.