cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
m_stretavsky
Level 4

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
Labels (1)
0 Kudos
(4) Replies
DLee65
Level 13

Can you post a code block where you call SdFeatureTree?

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.
0 Kudos
m_stretavsky
Level 4


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
0 Kudos
DLee65
Level 13

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.
0 Kudos
m_stretavsky
Level 4

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.
0 Kudos