adding a warning message to jpackage installer [SOLVED]

48 Views Asked by At

Is there a way to display a warning message to .msi file created by jpackage? If user confirms the warning message of the installation, it will continue otherwise it will exit.

I didn't find any option for jpackage, do you know anything doing it for free?

Thanks

1

There are 1 best solutions below

1
Bora Ciner On

I managed to do it.. first create some custom resource directory for WIX installer then find and copy "InstallDirNotEmptyDlg.wxs" file in here Edit the file like :

enter image description here

then in jpackage command pass an additional parameter --resource-dir "C:\Projects\wixResource" --verbose

verbose is only to see the process in detail..

then during the installation , if the target path exists here we pop up this message