Total Required Space

Got a problem you cannot solve? Try here.
SebSpiers
Posts: 38
Joined: Tue Dec 20, 2016 7:14 am
Location: Tewkesbury, UK

Total Required Space

Postby SebSpiers » Wed Jan 18, 2017 9:36 am

So, and I guess this could be a very silly question, but on the "componentstree" dialog there is a $TotalRequiredSpace$ label/value defined.

I've tried setting the variable within my script; eg:

Code: Select all

Set Variable TotalRequiredSpace to 3000000000

This doesn't seem to work, the installer shows this with a value of 0... where am I going wrong?

I've searched forums and googled with no luck!! I was expecting it to be a pre-defined variable, but it's not listed. :?: :?: :?: :?: :o :o :o :o
I'm not a developer, I just want to install things...

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Total Required Space

Postby FrancescoT » Wed Jan 18, 2017 11:08 am

Dear SebSpiers,

by default the TotalRequiredSpace Label gets populated via "Dialog Object Behavior". Doesn't exist any Pre-Defined variable at such purpose.
disk_space.png
disk_space.png (204.25 KiB) Viewed 3952 times

As reported by the IA Documentation;
Disk Space Calculations

If your products installation is reporting estimated disk space requirements as 0 or inaccurately, you are not making proper use of the Get Component State command in your script. InstallAware requires this command be used at least once in your installation to be able to accurately predict target disk space requirements. Please see the command reference for more information.


In case you want to display the value of a variable using a label dialog control;

- in your script, declare and intialialize your variable (Set Variable MY_VAR to xxxx) before to display the dialog.
- Load the dialog into the Editor.
- enter $MY_VAR" into the "Caption" property of the label.
- select "NONE" with the "Receives Information" field in "Dialog Object Behavior" (From Dialog Editor, double click the Label Control).
Object_b.png
Object_b.png (26.57 KiB) Viewed 3952 times


Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

SebSpiers
Posts: 38
Joined: Tue Dec 20, 2016 7:14 am
Location: Tewkesbury, UK

Re: Total Required Space

Postby SebSpiers » Wed Jan 18, 2017 11:29 am

That is very helpful thank you.

I now need to figure out how to format the value from bytes into MB to match the RemainingSpace value.
I'm not a developer, I just want to install things...

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Total Required Space

Postby FrancescoT » Thu Jan 19, 2017 10:02 am

You may have a look at the "Check Disk Space sample" from;
https://www.installaware.com/forums/viewtopic.php?f=2&t=6772

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

SebSpiers
Posts: 38
Joined: Tue Dec 20, 2016 7:14 am
Location: Tewkesbury, UK

Re: Total Required Space

Postby SebSpiers » Thu Jan 19, 2017 10:08 am

Yeah I looked at that, but it doesn't allow you to reformat the number, for example, 1000000 to 1,000,000.
I'm not a developer, I just want to install things...

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Total Required Space

Postby FrancescoT » Thu Jan 19, 2017 2:55 pm

You may use the "Parse String" command to modify your values as you prefer.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 65 guests