Custom Action to Unzip Files (javaw.exe) - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

birdman
Posts: 4
Joined: Mon Oct 29, 2007 9:48 am
Location: Annapolis, MD
Contact: Website

Custom Action to Unzip Files (javaw.exe)

I am testing the demo version 5.2.2 to see if it does what I need. I have a Java application in which I want to unzip several files after the installation is complete. I am using a Custom Action based on the javaw.exe that references an unzip.jar file (uses the java unzip api) as

javaw.exe -jar [APPDIR]\Unzip.jar [APPDIR]infofile.zip

I place the custom action after the "Commit". The files and the Unzip.jar
are located in the [APPDIR]. I can execute the command line from with the installed directory but nothing happens during the install, i.e. no error messages but the files are not unzipped. Am I doing something fundamentally wrong? Should I see something in the run log?

Thanks Birdman
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that the [APPDIR] property is ended with a backslash ("\"), therefore you are using an extra backslash in your command. The correct command is:

Code: Select all

javaw.exe -jar [APPDIR]Unzip.jar [APPDIR]infofile.zip 
If the problem persists create a log of the installation by using the "Run and Log" option in the "Project" menu or the following command line:

Code: Select all

msiexec /i package.msi /L*V log.txt
where package.msi is your package.

Please send us the log and the AIP (if it doesn't contain confidential information) or a small test case reproducing this behavior to support at advancedinstaller dot com so we can investigate this problem.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”