Size displayed in 'AddRemovePrograms' applet

For all your non-technical questions.
Post Reply
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Size displayed in 'AddRemovePrograms' applet

Post 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' ?
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post 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.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Post by jweksej »

But the size displayed is exactly as TARGETDIR folder size...
Do you know where in registry is this size stored?
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post 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$
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Post 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.
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post 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.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Post 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.
Post Reply