This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Extract to file?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2010
02:02 PM
Extract to file?
Is anybody using this plugin with IA2010? I've seen some posts that explain how to do it in 2008, but not 2010.
I'd like to use this plugin during the Pre-install phase. I have a jar file that will be placed during Install that I'd like to access earlier. The file in my Install phase is in $USER_INSTALL_DIR$/lib in my project. But I can't seem to find the right way to reference it in the plugin's ExtractToFile_Source.
Does anyone have an example of a working "Extract to File"?
I'd like to use this plugin during the Pre-install phase. I have a jar file that will be placed during Install that I'd like to access earlier. The file in my Install phase is in $USER_INSTALL_DIR$/lib in my project. But I can't seem to find the right way to reference it in the plugin's ExtractToFile_Source.
Does anyone have an example of a working "Extract to File"?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2010
05:38 PM
Here is what i do:
1) Extract the file during a pre-install task
Note: using the $DOLLAR$ -> during the preinstall seems to resolve to the symbol $ -> which combined with the variable name in between passes to the plugin the correct path to the file.
2) Add the file in the $DO_NOT_INSTALL$ magic folder. Although in my install task I have mylibrary32.dll in the $USER_INSTALL_DIR$ section, you still need to add another identical entry to the $DO_NOT_INSTALL$ magic folder. Without the additional entry I believe your file that you want to extract will be in a different location.
Hope this works for you.
1) Extract the file during a pre-install task
ExtractToFile_Source = $DOLLAR$IA_PROJECT_DIR$DOLLAR$/ProjectFiles/Windows/mylibrary32.dll
ExtractToFile_Destination = $INSTALLER_TEMP_DIR$$/$mylibrary32.dll
Note: using the $DOLLAR$ -> during the preinstall seems to resolve to the symbol $ -> which combined with the variable name in between passes to the plugin the correct path to the file.
2) Add the file in the $DO_NOT_INSTALL$ magic folder. Although in my install task I have mylibrary32.dll in the $USER_INSTALL_DIR$ section, you still need to add another identical entry to the $DO_NOT_INSTALL$ magic folder. Without the additional entry I believe your file that you want to extract will be in a different location.
Hope this works for you.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 24, 2010
03:10 PM
Thanks for the help. I don't know anything about the "DO_NOT_INSTALL" folder and I don't see anything about it in the IA help. Does it exist in IA2010?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 24, 2010
04:52 PM
In the install section, InstallAnywhere only shows you the locations that contain files. If you want to add your first item to the $DO_NOT_INSTALL$ folder use the following steps:
In the Install section:
1) Add a file to any existing location, e.g. $USER_INSTALL_DIR$
2) Right click on the file and select Move to Magic Folder -> Other -> DO NOT INSTALL
3) You should see a new section of files with the heading $DO NOT INSTALL$
Going forward you can add files to that new section for any items you need during preinstall.
In the Install section:
1) Add a file to any existing location, e.g. $USER_INSTALL_DIR$
2) Right click on the file and select Move to Magic Folder -> Other -> DO NOT INSTALL
3) You should see a new section of files with the heading $DO NOT INSTALL$
Going forward you can add files to that new section for any items you need during preinstall.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 25, 2010
05:52 PM
That worked, thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 22, 2010
12:57 PM
Has anyone tried to use this "ExtractToFile" custom code to download file from Internet URL in the pre-install phase?
I have tried it but got "runtime exception" in the install log. Here is what I put in the action dialog:
ExtractToFile_Source=http://somewebsite/somefile.zip
ExtractToFile_Destination=/somefile.zip
The somefile.zip does exist. What did I do wrong?
I have tried it but got "runtime exception" in the install log. Here is what I put in the action dialog:
ExtractToFile_Source=http://somewebsite/somefile.zip
ExtractToFile_Destination=
The somefile.zip does exist. What did I do wrong?