This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Faking file cost for a Component
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 26, 2010
02:52 PM
Faking file cost for a Component
Is it possible to fake the file cost of a Component that is displayed to the user?
Here's the situation: One of my Features will run a third-party install.exe to install that software. I have included all the third-party files in the Support Files section. What happens is that the SUPPORTDIR will contain those files, and at the end of the install the SUPPORTDIR (and its contents) will be automatically deleted by InstallShield. Great!
However, when the user is looking at the Features they can install, that one Feature says that it will take up 0KB on the disk. This is not true, of course, it will take over 8MB. Is there some way I can influence that number?
One thought I had was to include all the third-party files as files to be installed in a Component of that Feature, and then at the end just delete the files again. Unfortunately that doesn't seem to be as easy as I had hoped, since I can't figure out how to tell InstallShield to nuke those temporary files.
Any ideas?
Here's the situation: One of my Features will run a third-party install.exe to install that software. I have included all the third-party files in the Support Files section. What happens is that the SUPPORTDIR will contain those files, and at the end of the install the SUPPORTDIR (and its contents) will be automatically deleted by InstallShield. Great!
However, when the user is looking at the Features they can install, that one Feature says that it will take up 0KB on the disk. This is not true, of course, it will take over 8MB. Is there some way I can influence that number?
One thought I had was to include all the third-party files as files to be installed in a Component of that Feature, and then at the end just delete the files again. Unfortunately that doesn't seem to be as easy as I had hoped, since I can't figure out how to tell InstallShield to nuke those temporary files.
Any ideas?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 26, 2010
05:42 PM
Please see the documentation for the ReserveCost table, which is exposed in the Direct Editor view.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 27, 2010
11:12 AM
Yep, that did the trick, thanks!
A tip: the ReserveLocal and ReserveSource fields require the number of bytes, not KB or MB.
A tip: the ReserveLocal and ReserveSource fields require the number of bytes, not KB or MB.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)