Changing the size listed in Add Remove Programs
Posted 10 June 2002 - 19:40
Regards,
Oscar
Posted 10 June 2002 - 20:57
Posted 17 June 2002 - 17:19
"Extended Information in Add/Remove Program Control Panel" on this website for some information. Most of the ARP info is in the registry. I documented many of the entries.
Posted 17 June 2002 - 18:46
http://www.installsi..._os.htm#ARPinfo
Also, I figured it was done using one of an uninstall registry entry value, but unfortunately I do NOT see something along these lines in your article.
Posted 18 June 2002 - 14:35
Posted 18 June 2002 - 17:22
However, after checking some of the other Uninstall entries on my box, I found the answer to our problem.
Create the following registry entry:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\<ProductGUID>\EstimatedSize (DWORD value)
For that registry value, set its contents to be the size of your install in terms of KBs. Once having been set, Windows 2000/XP Add/Remove Programs should show the expected value. In your case, it will probably show it in MBs (your DWORD value / 1024) due to the significant size involved.
Hope it helps. I'm gonna go add to my install right now.
Posted 18 June 2002 - 20:18
Posted 18 June 2002 - 20:41
All the other ARP entries that I looked at had a blank Size string, so I also added that, but it still didn't work. The math for those EstimatedSize values did work out though, so I think we're on the right track.
I highly doubt that Windows caches this information, but there's definitely more to it than this. I'm gonna keep playing around with it, but does anyone else have any ideas?
Posted 18 June 2002 - 20:57
You know this is pitiful. I have a ticket open with InstallShield... I have unlimited support. The support guy gives me the same reply he gave me last week... but it is delayed 72 hours because he sends it to my brother instead of me... maybe I am being too hard on him... maybe I did something wrong... you want to give this a try and see if it helps you?
"On a Win2k or WinXP machine, just make sure that you set the following in your OnFirstUIBefore() event... DISK1TARGET = TARGETDIR; ...and make sure you set this at the end of this event. Then, in the add/remove programs applet the OS should calculate an approximate size of the TARGETDIR directory and it's subdirectory as the size reported in the add/remove programs applet."
Hope this helps.
Phil H.
Posted 19 June 2002 - 14:02
Posted 19 June 2002 - 20:50
It has been awhile since I messed with this area of the registry...
Posted 19 June 2002 - 21:05
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Management\ARPCache\<InstallGUID>
It has Changed (DWORD value) which is normally 0.
I tried setting it to 1 as well as deleting the entire key, but I unfortunately I still see the wrong size in ARP.
Posted 17 July 2002 - 02:17
Any and all help/suggestions appreciated.
Posted 22 October 2002 - 20:45
Posted 23 October 2002 - 09:44
Posted 23 October 2002 - 15:35
I'm currently just writing the space required in KB to EstimatedSize. I don't even involve Size. I also delete
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Management\ARPCache
beforehand to force a re-cache. However, my current method doesn't work, so we'll see what this new one does for me. Thanks again.
Posted 23 October 2002 - 18:09
In trying it, it seemed very familiar, so I think I've seen & done it before. However, I think the application which I copied off of was MSI based and, from what I'm told, they have a built-in way of handling this.
Posted 24 October 2002 - 10:19
I wonder how ARP knows which directory size to calculate. I suspect it might be the first directory the setup copies files to, i.e. DISK1TARGET (the setup files are copied first). Or it's the directory where the uninstall registry key points to?
If it's the first copied file maybe you can copy a dummy file (or the readme.txt) into TARGETDIR before starting the normal data transfer.
Stefan Krüger
InstallSite.org twitter facebook