Feature Size Description Incorrect In Custom Install - Advanced Installer Community
Ruari
Posts: 2
Joined: Wed Apr 22, 2020 12:50 pm

Feature Size Description Incorrect In Custom Install

We have recently noticed that within choosing the 'custom install' option of our installer, that the space requirements of the individual features are quite significantly wrong.

To give you a bit more of an idea, the main feature should be ~2.5GB, but the dialog is showing that it will take up ~150MB on the specified drive. Interestingly, if I go into the 'Disk Usage' at the bottom of the window, it is significantly closer (2.51GB) and may actually be correct. The only thing I can think is that it's maybe not taking in to account subfolders in the tree? - Seems unlikely, but that's my best guess. I couldn't find any settings to suggest this was the case though.

I have been searching the forum posts to see if anybody else has had any similar issues, where I found the following:

viewtopic.php?t=23357
viewtopic.php?f=2&t=11776#p33308
viewtopic.php?t=21730
viewtopic.php?f=2&t=20891#p51725

Our version of Advance Installer is 16.6.1 so I believe the steps are slightly different in that I need to create the custom action 'Set Installer Property' with name PRIMARYFOLDER and value [APPDIR] (double checked this link and it definitely points to the topmost folder) then move the action into the 'Wizard Dialog Stage'; however, after I rebuild the package, unfortunately nothing has changed...

I also found something else (lost the link now) which put a lot of importance on making sure the 'Enhanced User Interface' is enabled, however I have tried that as well to no avail.

I was wondering if you could help me in trying to find out what I am doing wrong?


Thanks, in advance.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Feature Size Description Incorrect In Custom Install

Hello and welcome to Advanced Installer forums,

This is quite strange, indeed.

I have tested this and everything worked as expected on my side. Here's how I've tested this:

- downloaded a 1GB test file

- made 2 copies of it

- added all 3 files in Advanced Installer --> "Files and Folders" page --> under "Application Folder"

- in "Organization" page, beside the Main Feature, I have created one more feature (named Feature)

- added all 3 components related to the files under the "Feature" feature

- after doing so, I built and ran the project. After checking the "Feature" feature, I could see that it requires 2.95GB
files.png
files.png (33.82 KiB) Viewed 3784 times
organization.png
organization.png (79.76 KiB) Viewed 3784 times
run.png
run.png (52.88 KiB) Viewed 3784 times

In order for me to further investigate this issue, could you please forward me a copy of your .AIP file by e-mail at support at advancedinstaller dot com?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ruari
Posts: 2
Joined: Wed Apr 22, 2020 12:50 pm

Re: Feature Size Description Incorrect In Custom Install

Hi Catalin,

I'm not sure if my emails got through to support or not? - Our email system is behaving strangely and quarantining everything at the moment so I apologise if you have already seen this and replied.
I'll add slightly abridged versions of them here to update you and anyone else having this same issue.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Based on your reply, I have had a little bit more of a look at our layout comparing it with your test example and I think I might have an idea at what could be going wrong.
Under our main product feature, we have many components; however, I am noticing that we also have other features, which I believe may be causing the issue.

One of the features under the main product feature takes up the majority of our installer (~2.5GB), which must be getting skipped in the size calculation somehow…
Is it possible that having a feature underneath a parent feature doesn’t count towards that parent features’ total size?

I will need to ask around to see if there is any historical significance for this within the installer, as I am unsure if this is correct.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Just to update you a little bit… I tested moving the features which were under the parent ‘main product’ feature out to the same level, and the sizes
of the individual features now look to be displaying the correct sizes, so I guess having features under another feature is ignoring the sub-features
sizes.

I continued along this path trying to adjust our installer organisation however, a small thing which is stunting my progress is that the ‘move to feature’
context menu entry doesn’t appear to be there for me when attempting to move multiple components to a feature like this:
https://www.advancedinstaller.com/user- ... nents.html

This is basically why I ended up moving the entire feature left to the same level as it’s parent. Still a valid test for my feature under parent
feature theory, to see if that was the problem, but it’s not exactly how we want it to look in the end.
We don’t want to expose the install option for those child features. They need to be mandatory under the parent ‘main product’ feature.

I was wondering if you had any ideas on how to handle this properly?

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I can attempt to send through our .aip again if that helps.


Thanks again, Ruari.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Feature Size Description Incorrect In Custom Install

Hello Ruari,

First of all, please accept my apologies for the delayed reply. We had few days off recently and I was quite busy after those days off.

Secondly, please ignore my latest reply. It seems like I encountered some kind of glitch when I was last testing this, as it should not be possible to have 3GB of data in a setup file containing only 1 CAB file (as the limit for the CAB file is 2GB). The build process should have thrown the following exception:
Exception - Reason: Exception - CAB Format limit reached. The CAB file size is limited to 2GB, you can`t have more than 64K files in a CAB and you can`t compress files that are larger than 2GB.
Which happened when I have tried to re-test this.

Not quite sure how I managed to place all the 3 x 1GB files under the same CAB, I guess this will remain a mistery.

So basically I've run few more tests now (this time trying to respect the CAB file limit - using a 1 GB file and one 512 MB file), based on your feedback, and it seemed to be working as expected.

Then, with the thought in mind that I may have missed something, I have re-read the thread again and I noticed that you were actually using the 16.6.1 version of Advanced Installer.

With that in mind, I have downloaded AI 16.6.1 to re-do my tests. First thing I tested was this:
I continued along this path trying to adjust our installer organisation however, a small thing which is stunting my progress is that the ‘move to feature’ context menu entry doesn’t appear to be there for me when attempting to move multiple components to a feature like this:
I have tested this and I could indeed replicate the behavior.

Fortunately, this is fixed in our latest version of Advanced Installer - 17.0.

In what regards the required memory, this is what was displayed when moving the feature under another feature:

memory.png
memory.png (55.81 KiB) Viewed 3754 times
Just to update you a little bit… I tested moving the features which were under the parent ‘main product’ feature out to the same level, and the sizes of the individual features now look to be displaying the correct sizes, so I guess having features under another feature is ignoring the sub-features
sizes.
I am really glad to hear that you managed to get this working (somehow). However, I am not quite sure why this is not working when having the feature under another feature.

Here's what I would like to ask you to do:

- could you please download Advanced Installer 17.0 and re-test the "Move to feature" scenario?

- could you please forward a download link of your setup by e-mail? I will extract the files from the EXE and I will try to make the project you've already sent buildable so I can try to isolate this behavior.

Looking forward to hearing from you.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Feature Size Description Incorrect In Custom Install

Hello,

Just a followup after our discussion over the e-mail, in case anyone will come across the same scenario.

First of all, this behavior is caused by two things:

1. Enhanced User Interface ("Themes" page --> "Settings" tab --> "Enhanced User Interface")

2. the fact that your feature has its "Feature Tree" set to "Not displayed"

After playing a bit with Ruari's project, I also managed to reproduce this in a newly created project.

Here are the workarounds I found:

1. This is probably the best. The solution is to set the "Feature Tree" of your "X" feature to "Display Expanded" and to enable the "Always install feature [...]" option.

Here's why I say this is the best for our scenario: Basically, you wanted to hide the feature and pretty much always install it (since it did not have any condition on it).

Unfortunately, we have to give up on the "hiding" part here and set the "Feature Tree" to "Display Expanded".

The second part is, however, possible, by checking the option I mentioned above. By checking that option, the user will not be able to "avoid" installing the feature - it will always be installed.

The UI (when the setup will be launched) will look something like in the attached screenshot.

success.png
success.png (90.78 KiB) Viewed 3719 times


2. The second workaround I found is to set the "Enhanced User Interface" to "Never". Unfortunately, this is not very reliable since most probably you have something in your project that is dependent on it.

I have forwarded this to our development team already and hopefully this will be fixed in a future version of Advanced Installer.

I really hope the provided workaround(s) will be enough until then.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Feature Size Description Incorrect In Custom Install

Hello Ruari,

This has been fixed in version 17.1 of Advanced Installer, released on May 27th, 2020.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”