Blueeberry
07-16-2009, 03:45 AM
Hi
I hava a problem with my Install Script... But I don't know why...
This is my Script:
export prototype FreeSpace(HWND)
function FreeSpace(hMSI)
STRING sTargetDir, sCostHigh, sCostLow;
NUMBER nTotalRequiredSpace, nResultValue;
INT nCostHigh, nCostLow;
begin
//Set Variables
sTargetDir = TARGETDIR;
//Creat Directory for FeatureGetCostEx
CreateDir(sTargetDir);
//Look for size of the Feature
nResultValue = FeatureGetCostEx(MEDIA, "", sTargetDir, nCostHigh, nCostLow);
//This is only for look, if command does Success
NumToStr(sCostLow, nCostLow);
NumToStr(sCostHigh, nCostHigh);
MessageBox(sCostHigh + " " + sCostLow, INFORMATION);
end;
When I debugg this Script the Variable nResultValue always is -132, I look in the Helpfile and there is written:
-132
The specified media cannot be found.
The media has been declared, but it not associated with any features. Make sure that script-created features are associated with the media.
What is my failure ????
Please help me and thanks for all replys
regards
Blueeberry
I hava a problem with my Install Script... But I don't know why...
This is my Script:
export prototype FreeSpace(HWND)
function FreeSpace(hMSI)
STRING sTargetDir, sCostHigh, sCostLow;
NUMBER nTotalRequiredSpace, nResultValue;
INT nCostHigh, nCostLow;
begin
//Set Variables
sTargetDir = TARGETDIR;
//Creat Directory for FeatureGetCostEx
CreateDir(sTargetDir);
//Look for size of the Feature
nResultValue = FeatureGetCostEx(MEDIA, "", sTargetDir, nCostHigh, nCostLow);
//This is only for look, if command does Success
NumToStr(sCostLow, nCostLow);
NumToStr(sCostHigh, nCostHigh);
MessageBox(sCostHigh + " " + sCostLow, INFORMATION);
end;
When I debugg this Script the Variable nResultValue always is -132, I look in the Helpfile and there is written:
-132
The specified media cannot be found.
The media has been declared, but it not associated with any features. Make sure that script-created features are associated with the media.
What is my failure ????
Please help me and thanks for all replys
regards
Blueeberry