The batch file is:
Code: Select all
keytool -genkey -keyalg RSA -alias tomcat -storepass %1 -validity 360 -keystore "%~dp0../.keystore" -keysize 2048 < "%~dp0../cert.txt"Code: Select all
"[#keystore.bat]"Code: Select all
"[#keystore.bat]" [KEYSTORE_PASSWORD]The script needs to run before the tomcat service is started (or I need to restart the tomcat service later on) and after a custom action which populates "cert.txt" in the first code block (again with values from installation dialogs). I currently have it in Install Execution Stage after Add Resources. I have it running as deferred with no impersonation.
If I leave the modal error box up during my install and run the script from an elevated command prompt in the installation path then it works fine (I moved it right after Finish Execution and restarted my tomcat server manually to test this).
Any suggestions would be most appreciated,
- Adam
FOLLOW US
Get the latest news in Application Packaging