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
- :
- Error -132 FeatureGetCostEx
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
‎Jul 16, 2009
04:45 AM
Error -132 FeatureGetCostEx
Hi
I hava a problem with my Install Script... But I don't know why...
This is my Script:
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
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 19, 2009
06:42 PM
What kind of project? FeatureGetCostEx works only for InstallScript and InstallScript MSI projects...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2009
01:59 AM
Hi
I've got a Basic MSI Project... 😮
Is there any way to finde out how great the size of the selected features is ?
regards
Blueeberry
I've got a Basic MSI Project... 😮
Is there any way to finde out how great the size of the selected features is ?
regards
Blueeberry
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2009
08:58 AM
It depends where you want the value; if nothing else, there's an MSI function MsiGetFeatureCost that might be of use to you...