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
- :
- Available and required drive space
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
‎Oct 07, 2008
07:03 PM
Available and required drive space
I have a problem with display available and required space in Dlg_SdFeatureTree. I tried set szDir param which specifies the path that is used in calculating required and available drive space to variable TARGETDIR and INSTALLDIR but dialog still display available space and required space value 0. Can any help me? Thanks
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 08, 2008
09:49 AM
Can you post a code block where you call SdFeatureTree?
This should work. I am assuming you are working with a pure InstallScript setup here though.
szTitle = "";
szMsg = "";
szFeatures = "";
nLevel = 2;
nResult = SdFeatureTree( szTitle, szMsg, TARGETDIR, szFeatures, nLevel );
This should work. I am assuming you are working with a pure InstallScript setup here though.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 08, 2008
06:35 PM
Dlg_SdFeatureTree:
if ((nResult = BACK) && (nSetupType != CUSTOM)) goto Dlg_SetupType;
szTitle = "";
szMsg = "";
szTargetdir = TARGETDIR;
szFeatures = "";
nLevel = 2;
if (nSetupType = CUSTOM) then
nResult = SdFeatureTree(szTitle, szMsg, szTargetdir, szFeatures, nLevel); .....
it's my code. Project was created in older version InstallShield but I don't know which version. I don't understand how it's possible 😞 . Thanks for help
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 08, 2008
08:42 PM
Have you stepped through the debugger to verify that TARGETDIR has a valid directory? That is the only reason I can see is that TARGETDIR is not being set correctly prior to this call.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 09, 2008
03:28 AM
so, TARGETDIR variable have same value like a INSTALLDIR variable - C:\Program Files\My Company Name\My Company product. I tried set to szDir param value like "C:\\" or "D:\\" but with same result.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)