GRCD
Posts: 18
Joined: Thu Sep 04, 2014 12:05 pm

No volume space information

Hi guys,

I'm trying to display the primary volume information, but next properties have always a value of 0:

[PrimaryVolumeSpaceAvailable] = 0
[PrimaryVolumeSpaceRequired] = 0

The others properties that I'm not displaying right now have the same issues:

[PrimaryVolumePath] = ""
[PrimaryVolumeSpaceRemaining] = 0

Is there a way to force to recalculate these properties?


Thanks in advance.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: No volume space information

Hi,

In order for those properties to have the appropriate values you can follows the steps described in the "How to add disk space indication" thread.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GRCD
Posts: 18
Joined: Thu Sep 04, 2014 12:05 pm

Re: No volume space information

ScreenShot_AdvancedInstaller_CustomActions.jpg
ScreenShot_AdvancedInstaller_CustomActions.jpg (88.91 KiB) Viewed 6273 times
Hello Eusebiu,


Firstly thanks for your response.


I've tried the solution you have given me, but it is not working. I've checked with all posible variations (with and without []):
ScreenShot_AdvancedInstaller_CustomActions.jpg
ScreenShot_AdvancedInstaller_CustomActions.jpg (88.91 KiB) Viewed 6273 times
My Advanced Installer project has two output builds, single exe and web installer. This problem only happens in the single exe build.

When I execute the web installer the required/available space is being calculated but not correctly formatted (it's shown a large numeric value without KB/MB/GB at the end).

As I wrote before when I'm executing the SingleEXE installer these properties have a default value of 0.

I've checked and the selected features are being installed and everything works fine but still I cannot show this information to the user.


More info:
- Advanced Installer version: 12.6.1
- Theme: Classic ('default' variation), originally created with Surface theme.


King regards.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: No volume space information

Hi,

Please keep in mind that the "Set property" custom action should be placed before the "Wizard Dialogs Stage -> Searches" action group. The "APPDIR" property should be written as displayed in your screenshot, without square brackets "[]".

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GRCD
Posts: 18
Joined: Thu Sep 04, 2014 12:05 pm

Re: No volume space information

Thanks a lot Eusebiu,


Your solution has worked, now these properties have value.

But I have another question related. In other projects (mostly using Surface themes) these properties are "formatted". I mean if the value for me is 123456 kB what is shown is 123 MB, same for larger values in GB, etc.

Now I'm always getting the kB values (I guess), may this be related to Surface themes? Can I convert/simulate this behaviour?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: No volume space information

Hi,

In order to have those properties correctly formatted, you can select them on your dialogs and set the "Format Size" attribute to "True" in the "Properties" pane. I tested the scenario and it shows me the correct values. Furthermore this is handled by Windows Installer, so we do not have to much options for it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GRCD
Posts: 18
Joined: Thu Sep 04, 2014 12:05 pm

Re: No volume space information

Thanks again Eusebiu,

All my questions have been resolved. Now everything works fine!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: No volume space information

You're welcome. I'm glad I could help.

Just let us know anytime you have a problem.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”