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 85739 - Installer fails on Windows Vista RC1 when UAC is turned on
Summary: Installer fails on Windows Vista RC1 when UAC is turned on
Status: RESOLVED WORKSFORME
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All Windows Vista
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords: RELNOTE
Depends on:
Blocks:
 
Reported: 2006-09-26 08:18 UTC by mslama
Modified: 2006-10-04 14:47 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception call stack (4.71 KB, text/plain)
2006-09-26 10:10 UTC, mslama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mslama 2006-09-26 08:18:45 UTC
User Account Control on Windows Vista RC1 prevents installer from running
external processes => installer fails. We must decide if/how will we handle this.
Comment 1 mslama 2006-09-26 10:10:38 UTC
Created attachment 34500 [details]
Exception call stack
Comment 2 mslama 2006-09-26 10:34:29 UTC
The reason is that InstallShield uses its own launcher LauncherMain.exe ran from
temp dir to start some external java process. As this exe is unknown to OS it is
not allowed to run when UAC is active. If I run JDK java.exe using Runtime.exec
it works fine. So it is IS who is breaking security constraints imposed by UAC.
There is no way in Java API how to increase security level for such call so far.
See issue http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6410605.
Comment 3 mslama 2006-09-26 10:38:06 UTC
Note: Workaround described in issue #6410605 (use "cmd","/c","prog" instead of
"prog" in Runtime.exec) is not appropriate for such usecase because it invokes
confirmation dialog and it is unacceptable for background tasks. (It would mean
user would have to approve such processes during installation manualy.)
Comment 4 Antonin Nebuzelsky 2006-09-27 11:21:00 UTC
Will send a waiver request.

This should be IMO mentioned in Release Notes together with issue 85361.
Comment 5 mslama 2006-10-04 12:30:28 UTC
Info for release notes (the same as in issue #85361):
Installer must be run on JDK 6.0 build 96 and newer. Also Compatibility mode
must be disabled. (Vista sets compatibility mode for installer exe automaticaly.
It must be switched off manually in File Properties -> Compatibility tab.) Then
installer exe runs fine even if UAC is enabled.
Comment 6 mslama 2006-10-04 12:39:22 UTC
Additional note: If both JDK 5 and JDK 6 are installed JDK 6 must be selected
explicitly using command line option -is:javahome <Path to JDK 6>. Otherwise JDK
5 will be selected by launcher - it is given by JVM resolution order defined in
installer launcher for Windows.

As we currently use common installer for all supported Windows versions we do
not want to change order for JVM resolution. Solution depends on when fix for
JFileChooser will be backported to JDK 5. If fix will not be backported to JDK
in  next update we can distribute separate installer for Vista with modified JVM
resolution - JDK 6.0 and newer will be required to run installer.
Comment 7 mslama 2006-10-04 14:31:43 UTC
Closing this issue as WORKSFORME because when issue #85658 is workarounded by
disabling compatility mode ie. installer exe can be run directly it does not
happen. In other words this problem happens only when running installer using
"java -jar setup.jar" which is not usual way.

If for any reason there is need to run setup.jar instead of exe UAC should be
disabled but it does not limit usual users.
Comment 8 Antonin Nebuzelsky 2006-10-04 14:36:23 UTC
Note, that issue 85658 is about something completely different. Issue 85361 is
the one that stays open for Vista.
Comment 9 mslama 2006-10-04 14:47:12 UTC
Yes right.