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
- :
- Use the installer variable INSTALLER_TEMP_DIR
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
‎Sep 29, 2014
10:29 AM
Custom code to display license agreement in console mode
My company's license agreement is very large. Someone installing in console mode has to hit carriage return 54 times before being allowed to agree. In GUI mode, there's a button to just accept the agreement without scrolling to the bottom. Customers have complained. So I've written a custom code pager that allows the user to agree at any point in the display.
All that remains is access to the license agreement file itself. I've examined the zip file in the installer temp directory, and the license agreement file is at the top. But I don't know how to access that, as the temp file directory is different each time I install.
I'm thinking that the only way to do this is to bundle the license in the same directory as the class files in my custom code jar, and access it via the .com path. It seems redundant to have the license agreement file packaged twice in the installer, that may be my only option.
Does anyone know another way, or is there a standard way of referencing the existing agreement?
- Scott
All that remains is access to the license agreement file itself. I've examined the zip file in the installer temp directory, and the license agreement file is at the top. But I don't know how to access that, as the temp file directory is different each time I install.
I'm thinking that the only way to do this is to bundle the license in the same directory as the class files in my custom code jar, and access it via the .com path. It seems redundant to have the license agreement file packaged twice in the installer, that may be my only option.
Does anyone know another way, or is there a standard way of referencing the existing agreement?
- Scott
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2014
04:09 PM
PassinThru wrote:
My company's license agreement is very large. Someone installing in console mode has to hit carriage return 54 times before being allowed to agree. In GUI mode, there's a button to just accept the agreement without scrolling to the bottom. Customers have complained. So I've written a custom code pager that allows the user to agree at any point in the display.
All that remains is access to the license agreement file itself. I've examined the zip file in the installer temp directory, and the license agreement file is at the top. But I don't know how to access that, as the temp file directory is different each time I install.
I'm thinking that the only way to do this is to bundle the license in the same directory as the class files in my custom code jar, and access it via the .com path. It seems redundant to have the license agreement file packaged twice in the installer, that may be my only option.
Does anyone know another way, or is there a standard way of referencing the existing agreement?
- Scott
The location of the temp directory is made available to custom code through an install time variable, INSTALLER_TEMP_DIR. You can access that through the proxy object passed to the custom code.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2014
08:39 AM
NigelM wrote:
The location of the temp directory is made available to custom code through an install time variable, INSTALLER_TEMP_DIR. You can access that through the proxy object passed to the custom code.
Yes! I actually discovered this independently while scanning the Variables section of the Project tab. I was scanning the list for anything that might have been of use in solving my problem. With the installer temp directory, I can access the installer.zip file, and stream our license file directly.
Thanks for the response.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 22, 2016
02:52 PM
Hi;
With IA 2015, INSTALLER_TEMP_DIR does exist, but I couldn't find our license agreement file in there. Either IA 2015 uses this INSTALLER_TEMP_DIR for some other purpose, or the way we package our stuff is not "standard" for IA.
So I use $prop.java.class.path$, with consoleProxy.substitute... It returns a String, a semi-colon-delimited list of installer resources, some 4 or 5 paths. I just open every zip among these paths, until I find a file with a name that matches the expected license agreement.
Enjoy;
Isabelle
With IA 2015, INSTALLER_TEMP_DIR does exist, but I couldn't find our license agreement file in there. Either IA 2015 uses this INSTALLER_TEMP_DIR for some other purpose, or the way we package our stuff is not "standard" for IA.
So I use $prop.java.class.path$, with consoleProxy.substitute... It returns a String, a semi-colon-delimited list of installer resources, some 4 or 5 paths. I just open every zip among these paths, until I find a file with a name that matches the expected license agreement.
Enjoy;
Isabelle
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 23, 2016
09:55 AM
One more amusing fact :
On windows, the installer's resources, such as the license agreement, are in Execute.zip. On linux, it's installer.zip (as previously mentioned by PassinThru). Yes, for the same version of IA.
Enjoy !
On windows, the installer's resources, such as the license agreement, are in Execute.zip. On linux, it's installer.zip (as previously mentioned by PassinThru). Yes, for the same version of IA.
Enjoy !
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 02, 2019
11:15 PM
i guess you need to run console -mode installation first . That might direct you to display license agreement .Trust me working in console mode is quite fun
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)