cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kiritoxf
Level 3

How to close the SdDiskSpace2 dialog?

Jump to solution

Hi all,

I'm using InstallShield 2016 and my project is InstallScript MSI.

I faced a problem today. My installer need to 

When i click "install" button on SdStartCopy2 dialog, I need to check if there is enough diskspace. If isn't, i need to jump to SdDiskSpace2 dialog. On SdDiskSpace2 dialog, click the "OK" button and the installer will go to SdSetupCompleteError dialog.

It looks like:

... => SdStartCopy2  => SdDiskSpace2  => SdSetupCompleteError  => END

But when I use the codes below,  of course SdSetupCompleteError  dialog will show. Howerver, SdDiskSpace2 dialog is still there. And I want to close it.

SdSetupCompleteError("", "", "");

I have tried following codes, but they didn't work.

EndDialog("SdDiskSpace2");
ReleaseDialog("SdDiskSpace2");
SdSetupCompleteError("", "", "");

It seems the name is wrong and i couldn't find the correct name of SdDiskSpace2 dialog.

It will be nice if anyone have any ideas.

Thanks a lot.

Labels (2)
0 Kudos
(1) Solution
kiritoxf
Level 3

Oh, I have found the name. 

It's just at the beginning of the function.

The name will be "SD_DLG_OUTOFDISKSPACE" or "SD_DLG_DISKSPACEREQUIREMENTS"

View solution in original post

0 Kudos
(1) Reply
kiritoxf
Level 3

Oh, I have found the name. 

It's just at the beginning of the function.

The name will be "SD_DLG_OUTOFDISKSPACE" or "SD_DLG_DISKSPACEREQUIREMENTS"

0 Kudos