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: access INSTALLER_NAME at the time of execution
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
‎Mar 01, 2011
02:34 AM
access INSTALLER_NAME at the time of execution
Hi,
I am trying to pass some arguments to the exe built using IA. These arguments are need for my batch file to run included in the installer.
Now I thought of making the Installer Name with the values, i.e. - Value1_Value2.exe; So that after the user clicks the exe I can get those values from the name of the installer and pass it to the batch file.
But as I searched through the standard variables list there is no variable to get the installer name.
Please let me know how can I get it? If you have any other idea to pass the arguments, please share it.
I am trying to pass some arguments to the exe built using IA. These arguments are need for my batch file to run included in the installer.
Now I thought of making the Installer Name with the values, i.e. - Value1_Value2.exe; So that after the user clicks the exe I can get those values from the name of the installer and pass it to the batch file.
But as I searched through the standard variables list there is no variable to get the installer name.
Please let me know how can I get it? If you have any other idea to pass the arguments, please share it.
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 01, 2011
02:44 AM
Hi,
You might find the installer executable full path in variable $EXTRACTOR_EXECUTABLE$ from which you can extract the executable name.
Is it what you need ?
--Jerome
You might find the installer executable full path in variable $EXTRACTOR_EXECUTABLE$ from which you can extract the executable name.
Is it what you need ?
--Jerome
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 01, 2011
02:57 AM
yes that should work and installer name is all I need, because it will only have the values I need to pass to the batch file. thanks.
And is there any other way, I can pass these values to the installer?
And is there any other way, I can pass these values to the installer?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 01, 2011
03:58 AM
agarwal.kunal19 wrote:
yes that should work and installer name is all I need, because it will only have the values I need to pass to the batch file. thanks.
And is there any other way, I can pass these values to the installer?
Yes, you can either set some command line arguments with '-D' or create a properties file that you will read later with the installer.
1/ e.g. install.exe -DSOME_VARIABLE=somevalue
2/ For the properties file (that you need to deliver with installer), you have some plugin available (properties file reader).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 01, 2011
05:29 AM
thanks for your reply...
Now there are a couple of issues with the methods you specified...
1....I need to deliver web installer...The client won't run through cmd...
2....i can deliver only the Exe file, can't archive the properties file with it...Otherwise it would have been the easiest solution for me...
Actually what I actually need to do, is here, from my server I need to deliver the exe making sure of all the parameters needed to run the batch file...And these parameters have to be restored from the database...The client doesn't have access to them...
It would be really helpful if you can show me a way to achieve this goal..thanks in advance...
Now there are a couple of issues with the methods you specified...
1....I need to deliver web installer...The client won't run through cmd...
2....i can deliver only the Exe file, can't archive the properties file with it...Otherwise it would have been the easiest solution for me...
Actually what I actually need to do, is here, from my server I need to deliver the exe making sure of all the parameters needed to run the batch file...And these parameters have to be restored from the database...The client doesn't have access to them...
It would be really helpful if you can show me a way to achieve this goal..thanks in advance...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 01, 2011
05:38 AM
regarding the way you said it can be achieved...I have a small doubt..
To extract the installer name from the path...I have to create a custom code plugin...Am I right...??
Actually I am quite new to using IA...I am going through the user doc to find out how to do this...:(
Thanks in advance...
To extract the installer name from the path...I have to create a custom code plugin...Am I right...??
Actually I am quite new to using IA...I am going through the user doc to find out how to do this...:(
Thanks in advance...
jerome_IA wrote:
Hi,
You might find the installer executable full path in variable $EXTRACTOR_EXECUTABLE$ from which you can extract the executable name.
Is it what you need ?
--Jerome
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 01, 2011
07:26 AM
I was not talking about how to extract name from full path, I was just giving you some other way to store your variables somewhere (so not in the installer name).
You have some built-in as well as some down-loadable plugins (from here: http://www.flexerasoftware.com/products/installanywhere/files-utilities.htm) that you can access from action/Plug-Ins tab.
Now if you want to keep your original idea of getting variable from installer executable name, you can get it via plugin called "modify string" which will search&replace through $EXTRACTOR_EXECUTABLE$ so there is no need to write some extra custom code there.
You have some built-in as well as some down-loadable plugins (from here: http://www.flexerasoftware.com/products/installanywhere/files-utilities.htm) that you can access from action/Plug-Ins tab.
Now if you want to keep your original idea of getting variable from installer executable name, you can get it via plugin called "modify string" which will search&replace through $EXTRACTOR_EXECUTABLE$ so there is no need to write some extra custom code there.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 01, 2011
11:06 PM
Hi,
thanks a lot...That's what I needed...:)
thanks a lot...That's what I needed...:)
jerome_IA wrote:
I was not talking about how to extract name from full path, I was just giving you some other way to store your variables somewhere (so not in the installer name).
You have some built-in as well as some down-loadable plugins (from here: http://www.flexerasoftware.com/products/installanywhere/files-utilities.htm) that you can access from action/Plug-Ins tab.
Now if you want to keep your original idea of getting variable from installer executable name, you can get it via plugin called "modify string" which will search&replace through $EXTRACTOR_EXECUTABLE$ so there is no need to write some extra custom code there.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)