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
- :
- unexpectedly closed the hInstall handle (type MSIHANDLE) provided to it.
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
Jun 21, 2007
01:38 AM
unexpectedly closed the hInstall handle (type MSIHANDLE) provided to it.
Hi all,
I have a custom action which is not beeing executed. I tried to put a breakpoint in the Installscript but i never get to it. In the log file i get this :
MSI (s) (F4:64) [08:15:18:914]: NOTE: custom action InstallJungoDriver_script unexpectedly closed the hInstall handle (type MSIHANDLE) provided to it. The custom action should be fixed to not close that handle.
the installscript code is :
Am i doing somthing wrong ?
btw i am on Vista and i run the custom action as a Deferred Execution in System Context
thanks
mihai
I have a custom action which is not beeing executed. I tried to put a breakpoint in the Installscript but i never get to it. In the log file i get this :
MSI (s) (F4:64) [08:15:18:914]: NOTE: custom action InstallJungoDriver_script unexpectedly closed the hInstall handle (type MSIHANDLE) provided to it. The custom action should be fixed to not close that handle.
the installscript code is :
function InstallJungoWinDriver(hMsi)
STRING driverPath;
STRING wregPath;
STRING wregPathCmdLine;
STRING line;
NUMBER nvResult;
begin
WriteLineToFile("InstallJungoWinDriver");
driverPath = INSTALLDIR ^ "\Driver";
wregPath = driverPath ^ "wdreg.exe";
wregPathCmdLine = "-inf windrvr6.inf -log" ^ TempFolder ^ "driver.log -silent install";
nvResult = LaunchAppAndWait(wregPath,wregPathCmdLine,LAAW_OPTION_WAIT|LAAW_OPTION_HIDDEN);
//Let's check to see what return code we get back
switch (nvResult)
case 0:
//Driver installed successful
WriteLineToFile("WinDriver installed with success");
case 1:
//Driver failed
WriteErrorMessage("WinDriver cannot be installed");
NumToStr(line,LAAW_PARAMETERS.nLaunchResult);
WriteLineToFile("ERROR CODE for launching wreg.exe: " + line);
case 2:
//We need to reboot
MsiSetProperty(hMsi,"REBOOT","Suppress");
endswitch;
WriteLineToFile("Finish running InstallJungoWinDriver.");
end;
Am i doing somthing wrong ?
btw i am on Vista and i run the custom action as a Deferred Execution in System Context
thanks
mihai
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 21, 2007
11:32 AM
The log message can be ignored since it does not cause any adverse behavior.
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)