LWJGInstaller: Run the uninstaller before installing instead of at VM exit
This commit is contained in:
parent
02d9944b2f
commit
c2ed404c44
|
@ -110,11 +110,7 @@ public class LWJGLInstaller {
|
||||||
|
|
||||||
AccessController.doPrivileged(new PrivilegedAction() {
|
AccessController.doPrivileged(new PrivilegedAction() {
|
||||||
public Object run() {
|
public Object run() {
|
||||||
Runtime.getRuntime().addShutdownHook(new Thread() {
|
uninstall();
|
||||||
public void run() {
|
|
||||||
uninstall();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue