Recompute disk space required after BrowseDlg - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

GBERT
Posts: 12
Joined: Fri Jul 10, 2009 10:41 am

Recompute disk space required after BrowseDlg

Testing AI i am finding this problem.
The setup doesn't create a GUID (it simply copies some files, so no need for all the multiple instance stuff) and when i execute the BrowseDlg dialog and point to a new directory the disk space cost is not recalculated (it was calculated with the original APPDIR value before CustomizeDlg was displayed).
Is there a simple method to force the re-computing of disk space required?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Recompute disk space required after BrowseDlg

Hi,

I'm afraid that this is not supported by Windows Installer. Can you please give me more details about why you need this? Note that another costing is performed right after the install process starts.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GBERT
Posts: 12
Joined: Fri Jul 10, 2009 10:41 am

Re: Recompute disk space required after BrowseDlg

It's rather simple.
I told my boss that our (very) old Installshield needs to be updated, but told him also that in my opinion it's a pile of crap, and proposed AI instead.
Now he requested me to tell him if it's OK to buy it, and i was digging some of the little problems i still have before saying him that it's OK.
I am building a setup that copies several files into a directory (and something more, like registry, etc, but doesn't matter now).
It's an addon for an application written by another company that supports multiple instances of the app on the same server, basically i copy some data files inside a directory, write some keys on the registry, and little more.
In the future i'm planning to write an hybrid 32/64 bit setup with a lot of features, but for the moment i'm working to produce a quick 'n dirty simple setup.
At the moment i'm not fighting with a multiple instance setup, i'm not generating a GUID for the product (so no uninstall but this is not a problem now) and i enabled BrowseDlg to change the target directory.
My problem is that i set the at startup i set the default APPDIR values (different names because i have several features and some subfeatures) and the disk space cost for each feature is estimated at startup, but it obviously should change after you execute BrowseDlg and select another target directory.
If i install the files in the default instance, and immediately after go to install the same file into another instance i'm told the required space is 0 instead of the real space required: when i update the default instances the setup correctly gives the difference of size ad data cost.
Having a separate list of dialogues and a list of custom actions i'm still trying to understand what is triggered when, in order to gain better control of the setup process.
Now i'm trying to solve some immediate problems creating quick 'n dirty setups, and then i will have some time to rethink completely the realt thing.
My plan is yo tell the boss to buy AI when i have an acceptable setup, we don't want to distribute a single bit of code before we have licensed AI.
If this can't be done for the moment i will simply remove the cost estimation, but i need at least to know if when i will use the multiple instances feature i will be able in some way to have a correct estimation after the target instance will have been selected, since probably i will have our tool installed in some instances and not in others, and this will completely change the cost.
Thanks for the support, your kind and quick reply is another good argument for my boss.
Giorgio
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Recompute disk space required after BrowseDlg

Hi,

For what you need you can try using a volume cost list control (on a custom dialog or on the dialog with the installation path) and the enhanced UI. This way you will be able to update the disk costing when the installation path is changed.

Please note that the enhanced UI can be used only in an Enterprise project.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”