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: Plug-in: Dynamic variable creation
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Jan 20, 2010
04:42 PM
Plug-in: Dynamic variable creation
Hello everyone,
I just finished packaging my first plug-in. Took me 3 hours of ripping out my hair just to find out that my .properties file was called CustomCode.properties instead of the required customCode.properties. Just a tip for beginners out there. 😉
On to the actual question...
In the .properties file we can specify a number of IA internal variables with default values. What our plug-in does are things like searching for string in a file and replacing it with some other string, adding a line after, deleting lines between, etc. This was done to mimic InstallShield functionality.
My question is if there is a way to tell IA that there could be many variables for this plug-in (i.e. not a constant number of parameters)?
The current work around which we are using is simply having 10 parameters as placeholders in the .properties file. This seems to be enough for now, but clearly is not the optimal solution.
Thank you in advance.
Alex
I just finished packaging my first plug-in. Took me 3 hours of ripping out my hair just to find out that my .properties file was called CustomCode.properties instead of the required customCode.properties. Just a tip for beginners out there. 😉
On to the actual question...
In the .properties file we can specify a number of IA internal variables with default values. What our plug-in does are things like searching for string in a file and replacing it with some other string, adding a line after, deleting lines between, etc. This was done to mimic InstallShield functionality.
My question is if there is a way to tell IA that there could be many variables for this plug-in (i.e. not a constant number of parameters)?
The current work around which we are using is simply having 10 parameters as placeholders in the .properties file. This seems to be enough for now, but clearly is not the optimal solution.
Thank you in advance.
Alex
(2) Replies
‎Jan 22, 2010
03:48 PM
I might not fully understand what you are asking, but when you use a plugin, the IA UI has an area for setting variables for the plugin. The plugin will start you off with a number of default variables (the 10 in your properties file), but you can add as many as you want after hitting the 'Edit Variables' button. The customCode.properties file is only used to set up a starting point. Your code would have to somehow know what these variables would be called, though.
‎Jan 22, 2010
04:06 PM
Oh, thank you! That helps a lot!
I wanted to have unlimited number of variables in the plug-in, that's all.
I wanted to have unlimited number of variables in the plug-in, that's all.