Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2004
    Location
    Braceville, IL
    Posts
    27

    Add/Remove Programs - Size Display

    Greetings,

    While not critical, I was wondering why when I build an Installer with SF 7.0 the "size" never shows up in the Add and Remove Programs module of the Control Panel. I have the latest rev (7.0.6.1) on an XPpro-SP2 system.

    What am I not doing?

    Regards,
    Keith
    Keith Weatherhead
    Discus Data, Ltd
    keithw@ddltd.com

  2. #2
    Join Date
    Aug 2004
    Posts
    98
    I think this is because SF does not write the size of an installation to the uninstall section of the registry. The value name that holds the installation size is 'Size' and it's a REG_SZ value data type.

    Maybe you should set it manually in one of the after install action sections ...

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\[PRODUCT NAME]

    Valuename: Size
    Datatype: REG_SZ

    Hope that helps.

    Steve

  3. #3
    Join Date
    Sep 2004
    Location
    Braceville, IL
    Posts
    27
    Quote Originally Posted by Steve_K View Post
    I think this is because SF does not write the size of an installation to the uninstall section of the registry. The value name that holds the installation size is 'Size' and it's a REG_SZ value data type.

    Maybe you should set it manually in one of the after install action sections ...

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\[PRODUCT NAME]

    Valuename: Size
    Datatype: REG_SZ

    Hope that helps.
    i
    Steve
    Thanx for the info, if no one else comes back with a better answer, yours just may be the winner of the day... if does not seem to be that much to implement, but I would presume that you would have to manually update that value... or is there a way for SF 7.0 to supply that value so that it was always correct at run-time?

    Regards,
    Keith
    Keith Weatherhead
    Discus Data, Ltd
    keithw@ddltd.com

  4. #4
    Join Date
    Jun 2005
    Posts
    470
    not sure if this info needs to be precise - it just has to give the user an idea about how much space the program components occupy. Nobody cares if it's 10.23 MB or 10.34 MB, so simply 10 MB seems OK for me.

    Another thing is the size may vary from system to system - say you have some 2 MB .dll, on some systems it may exist so your installer will not copy it to the target system. Should then these 2MB be added to the size?
    Or there may be conditionally installed files.

    The only way to have an exact size is to sum up the sizes of all files the installer actually copies to the target system, and from a post install script action to write this to the registry. But I doubt the effort is justified.

  5. #5
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    You can use SetupData.CalculateRequiredSpace() to get the amount of space required for the setup.

    If your project displays a Select Install Folder screen, that screen already calls SetupData.CalculateRequiredSpace() and stores the value in a Lua variable named _SpaceRequired, and a session variable named %SpaceRequired%.
    --[[ Indigo Rose Software Developer ]]

  6. #6
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,862
    Quote Originally Posted by Steve_K View Post
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\[PRODUCT NAME]

    Valuename: Size
    Datatype: REG_SZ
    Are you sure about that? I just added that entry to three things, set them all to "1000" and changed "EstimatedSize" to 2000 -- rebooted, checked, and no differences....


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Similar Threads

  1. Best way to share custom buttons with the group?
    By mwreyf1 in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 04-28-2010, 01:29 PM
  2. Example: Resize Runtime
    By Adam in forum AutoPlay Media Studio 7.5 Examples
    Replies: 113
    Last Post: 08-17-2009, 10:55 AM
  3. Example: Sending An Email Through Outlook
    By Brett in forum AutoPlay Media Studio 5.0 Examples
    Replies: 22
    Last Post: 12-05-2005, 06:11 PM
  4. Display Project to suit screen size
    By BaZZa400 in forum AutoPlay Media Studio 4.0
    Replies: 6
    Last Post: 05-28-2003, 01:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts