This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 57251 - Can't cancel installation when the storage is built
Summary: Can't cancel installation when the storage is built
Status: RESOLVED WONTFIX
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-31 12:55 UTC by Petr Blaha
Modified: 2007-03-29 15:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2005-03-31 12:55:39 UTC
[Build 20050330]
Steps:
1) start installer and installation
2) click Cancel button when the progress bar is in 13 %
3) confirm cancel

Installer doesn't stop installation and resumes in building the storage.
Comment 1 mslama 2005-03-31 14:57:17 UTC
Need more investigation. It seems on Windows Java is not able to stop external
process which is batch running another java process. I will create some test
cases. The same scenario works fine on Linux. Process.destroy() is used. No
other API is available to stop external process.
Comment 2 mslama 2007-03-29 15:48:29 UTC
Storage builder is not run for NB 6.0 Dev installer. If there will be similar
longer task during installer this will appear again. There should be support for
it directly in task code.
Comment 3 mslama 2007-03-29 15:50:18 UTC
In addition storage builder was run in the same JVM as installer so there is no
problem with stopping external process. In any case task itself must provide
some way how to cancel it cleanly.