Announcement

Collapse
No announcement yet.

Estimated Size in ARP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • devdept
    replied
    Thanks Ulrich, this really help us.

    Leave a comment:


  • Ulrich
    replied
    Hum, this is strange. From the documentation I found, Windows apparently populates this information by scanning the folder. If this is not working for you, then you can add the desired information manually in the registry.
    Code:
    -- in the On Pre Install event script, add this line:
    g_nEstimatedSize = SetupData.CalculateRequiredSpace() / 1024;
    
    -- in the On Post Install event script, add this:
    -- Uninstall settings > Control Panel > Unique registry key = "%ProductName%"
    local sKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\%ProductName%";
    Registry.SetValue(HKEY_LOCAL_MACHINE, SessionVar.Expand(sKey), "EstimatedSize", g_nEstimatedSize, REG_DWORD);
    If you use the default setting for the unique registry key, "%ProductName%%ProductVersion%", you need to adapt the sKey accordingly.

    Ulrich

    Leave a comment:


  • devdept
    replied
    Hi Ulrich,

    I mean for the setup project you build, not for setup factory itself.

    We are long time customers and none of our product setups writes the estimated size in Add/Remove Programs. See the attached picture.

    Why? Is there any option to check?

    Thanks,

    Alberto
    Last edited by devdept; 11-18-2016, 12:47 AM.

    Leave a comment:


  • Ulrich
    replied
    I do not see any problems. Even Setup Factory 8 writes the used space into Programs and Features:

    Click image for larger version

Name:	SCRN-2016-11-17-01.png
Views:	106
Size:	28.3 KB
ID:	297339


    Ulrich

    Leave a comment:


  • devdept
    started a topic Estimated Size in ARP

    Estimated Size in ARP

    Does Setup Factory 9.5 write Estimated Size in Add/Remove Programs?

    Currently we are using an earlier version and this field is always blank.

    Thanks,

    Alberto
Working...
X
😀
🥰
🤢
😎
😡
👍
👎