I am evaluating Advanced Installer for some Java products, most everything is now working, but I cannot
figure this one thing out.
I need functionality that will allow me to perform some actions during (but prior to) an uninstall.
The code for this functionality is in the same jar file that my application resides in.
So after some researching, a custom action seemed the way to achieve this.
- I created a custom action under InstallExecuteSequence - Uninstall
Source Path: = path to my jar
Source Type = .exe (jar is not an available option?)
Command Line = javaw -jar "[APPDIR]\\[#App.jar]" -UNINSTALLACTION
Synchronous execution, ignore return code
Deferred
Always Execute
REMOVE="ALL"
AI never seems to be calling this code during uninstall.
I image because Source Type is set to exe. Or perhaps my command line syntax is incorrect?
Is there a way to have the target of a custom action in a jar?
or
Am I going to have to remove the desired functionality out of the main App.jar, package up the files I need and create a separate exe?
Am I missing anything?
Thanks
FOLLOW US
Get the latest news in Application Packaging