Announcement

Collapse
No announcement yet.

Estimated Size in ARP

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

  • 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

  • #2
    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

    Comment


    • #3
      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.

      Comment


      • #4
        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

        Comment


        • #5
          Thanks Ulrich, this really help us.

          Comment

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