Cannot rerun JPackage installer if already installed, second time just seems to exit without warning, is this correct behaviour on Windows ?
You may ask why I want to do this anyway?
Well in my case I am trying to build a JPackage installer for my Java application, so I am building it installing it, then tweaking the settings, rebuilding it and try to reinstall. It took me some time to work out that I couldn't not reinstall it unless i uninstall the first installation (using Control Panel, Program and Features)
My case may not be the usual usecase, but it doesn't feel correct that it just exits without giving any reason.
It also means that if I deploy a new version to customers, and I later need to amend the installer than I would have to modify the version number to let the user reinstall, this may generally be best practise but is something I would not particulary want to do if the application itself had not changed.
Update:Since found out by looking at TaskManager it is still running but doesnt seem to be doing anything and gives no indication to user !
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…