A destination dialog for a single component
A destination dialog for a single component
One of our installers has to install a fairly large component (200 meg to 4 gig). Because of it's size, we would like to let the user select it's install location separately from the main application. We would also like to use the space required/available/remaining functionality, since this component's size is so large. The problem I'm encountering is trying to get this dialog to display the component's size for the space required. How does one go about setting this value manually?
-
Alex_Ronquillo
- Site Admin
- Posts: 364
- Joined: Mon Jul 30, 2007 11:51 am
- Location: USA
- Contact:
You don't need to set this manually. You can set it as a separate feature, or you can also leave it in the general feature and create a custom dialog to ask the user where to install it, and install it to the user's selected folder. There is no need for you to manipulate the RequireDiskSpace. However, if you still want to manipulate it, you can use the Set Component Space command.
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
I'm afraid that for a number of marketing and upgrade reasons, we can not put this component's drive selection on the same page as the main program's.
the problem that I'm encountering is that I can not figure out how to set the TotalRequiredSpace variable for this single item. I'm fine with having to shuffle around some variable inside the script in order to make it work, but I can not figure out what to set in order to have two dialogs display different disk space requirements.
the problem that I'm encountering is that I can not figure out how to set the TotalRequiredSpace variable for this single item. I'm fine with having to shuffle around some variable inside the script in order to make it work, but I can not figure out what to set in order to have two dialogs display different disk space requirements.
-
Alex_Ronquillo
- Site Admin
- Posts: 364
- Joined: Mon Jul 30, 2007 11:51 am
- Location: USA
- Contact:
Hoooooo, now I understand. Let me suggest you this:
Create two separate features, one for the big component, and the other for the rest of the installation. Let's call these features "Big component" and "Rest". Now follow the following steps:
1.- Before the first destination dialog, (the one for the Rest feature), add the following lines of code. (Just an example, use the variables you want):
2.- After the dialog returns, and before the second destination dialog, add:
3.- After the second destination dialog returns, add:
That should do the job. I hope I explained it clearly. Note: You need to take into account the user may press back at any dialog, you need to manage that. The code I gave you works if the user doesn't press back.
Create two separate features, one for the big component, and the other for the rest of the installation. Let's call these features "Big component" and "Rest". Now follow the following steps:
1.- Before the first destination dialog, (the one for the Rest feature), add the following lines of code. (Just an example, use the variables you want):
Code: Select all
Set Variable TestVar to
Get Required Space by Component "Big Component" into variable TestVar
Set Component Big Component space requirements to 0 bytesCode: Select all
Set Component Big Component space requirements to $TestVar$ bytes
Get Required Space by Component "Rest" into variable TestVar
Set Component Rest space requirements to 0 bytesCode: Select all
Set Component Rest space requirements to $TestVar$Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

