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: Modifying installvariable in customcode with ProxyInstaller.SetVariable
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
‎Feb 27, 2008
09:49 AM
Modifying installvariable in customcode with ProxyInstaller.SetVariable
I have a InstallAnywhere named $answer$
I need to modify this value in my java custom code.
My understanding is that i need to do something like:
ProxyInstaller.SetVariable("answer","yes");
But this won't compile as ProxyInstaller.SetVariable complains about a non-static method being called.
My java skills are not that strong, but my understanding is that I need to instantiate a InstallerProxy object.
Is this correct? As 5 objects are needed to instantiate an InstallerProxy object that I know nothing about I am hoping that I am missing something.
Ideas?
Bill
I need to modify this value in my java custom code.
My understanding is that i need to do something like:
ProxyInstaller.SetVariable("answer","yes");
But this won't compile as ProxyInstaller.SetVariable complains about a non-static method being called.
My java skills are not that strong, but my understanding is that I need to instantiate a InstallerProxy object.
Is this correct? As 5 objects are needed to instantiate an InstallerProxy object that I know nothing about I am hoping that I am missing something.
Ideas?
Bill
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 27, 2008
10:16 AM
What type of custom code? The install method of a class that extends CustomCodeAction is automatically passed an InstallerProxy object that you can use. In this method, for example:
public void install(InstallerProxy ip) { ... }you can use ip. There are also static installerProxy (note the capitalization) and uninstallerProxy class variables included in CustomCodeAction and other classes that you can use.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 27, 2008
10:38 AM
RobertDickau wrote:
What type of custom code? The install method of a class that extends CustomCodeAction is automatically passed an InstallerProxy object that you can use. In this method, for example:public void install(InstallerProxy ip) { ... }you can use ip. There are also static installerProxy (note the capitalization) and uninstallerProxy class variables included in CustomCodeAction and other classes that you can use.
The Custom Code is a custom panel. (Sorry for not stating before).
So it is extending CustomCodePanel not CustomCodeAction.
Does this make difference?
Thanks for your time,
Bill
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 27, 2008
10:44 AM
Please see the javadoc documentation for the InstallAnywhere API (available in the javadoc directory of your IA installation); CustomCodePanel has a similar customCodePanelProxy class variable you should be able to use, and the setupUI method automatically gets an object of the same type.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 27, 2008
01:02 PM
will start reading
Bill
Bill
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 27, 2008
02:04 PM
so something like
customCodePanelProxy.setVariable(....
customCodePanelProxy.setVariable(....