- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Knowledge Base
- :
- Extracting files during Pre-Install with InstallAnywhere
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Extracting files during Pre-Install with InstallAnywhere
Extracting files during Pre-Install with InstallAnywhere
Summary
The ExtractToFile plugin can be used to access files from the Install task during runtime Pre-Install. The most common practice is to label the extracted file's Destination Path (in the Install task) to the "DO NOT INSTALL" Magic Folder so the INSTALLER_TEMP_DIR can be utilized for the Pre-Install plug-in's Destination.Synopsis
NOTE: When using Source Paths, the ExtractToFile plug-in requires the use of the InstallAnywhere variable $DOLLAR$ in place of the Source Path variable $'s to successfully resolve the Source Path via the ExtractToFile_Source variable. For information on Source Paths, please see the InstallAnywhere user's guide.
Discussion
Test it by adding an Execute Script/Batch File action after the ExtractToFile plug-in using the following command:
ExtractToFile_Source = C:\My Files\example.exe
ExtractToFile_Destination = $INSTALLER_TEMP_DIR$$/$example.exe
Test it by adding an Execute Script/Batch File action after the ExtractToFile plug-in using the following command:
Additional Information
NOTE: If all else fails, just stick the resources to extract during Pre-Install inside the ExtractToFile plug-in located in \plugins\ExtractToFile.jar. Then specify the filename in the ExtractToFile_Source field of the Plug-in.