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: Console: Get User Input adds apostrophes
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 06, 2010
10:14 AM
Console: Get User Input adds apostrophes
Hi
I am using InstallAnywhere 2010 Enterprise and I want to allow a user to choose 2 folders when installing and I am allowing both panel or console installation. For the panel install, I can use the Panel: Choose Folder action. As there is no Console: Choose Folder action, I tried using the Console: Get User Input action to set $USER_MAGIC_FOLDER_2$ and then use the input as the 2nd installation folder - but this always adds apostrophes around the input: e.g. the user enters /export/home/someuser/somedir then in the Install-step I write folders e.g. $USER_MAGIC_FOLDER_2$/data and the system tries to install to "/export/home/someuser/somedir"/data/ instead of /export/home/someuser/somedir/data/ i.e. also the install-log explicitly shows the extra "" and obviously it does not work, although the install-log even shows a Status:SUCCESSFUL!! I tried this on SunOS 5.10.
This seems to be a bug in InstallAnywhere. Is there any work-around?
Thanks in advance for any replies.
Alex.
I am using InstallAnywhere 2010 Enterprise and I want to allow a user to choose 2 folders when installing and I am allowing both panel or console installation. For the panel install, I can use the Panel: Choose Folder action. As there is no Console: Choose Folder action, I tried using the Console: Get User Input action to set $USER_MAGIC_FOLDER_2$ and then use the input as the 2nd installation folder - but this always adds apostrophes around the input: e.g. the user enters /export/home/someuser/somedir then in the Install-step I write folders e.g. $USER_MAGIC_FOLDER_2$/data and the system tries to install to "/export/home/someuser/somedir"/data/ instead of /export/home/someuser/somedir/data/ i.e. also the install-log explicitly shows the extra "" and obviously it does not work, although the install-log even shows a Status:SUCCESSFUL!! I tried this on SunOS 5.10.
This seems to be a bug in InstallAnywhere. Is there any work-around?
Thanks in advance for any replies.
Alex.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 06, 2010
12:12 PM
It's not a bug it's a feature: please see this thread for an explanation of this behaviour: http://community.flexerasoftware.com/showthread.php?t=182597&highlight=simple+quotes
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 09, 2010
04:11 AM
Thank you very much Vlad.
OK after the Console: Get User Input I now added a Set IA Variable Action where I set $USER_MAGIC_FOLDER_2$ = $USER_MAGIC_FOLDER_2_1$ with the rule Compare IA Variables: $INSTALLER_UI$ equals ignore case CONSOLE. This is really awkward, but finally it works.
OK after the Console: Get User Input I now added a Set IA Variable Action where I set $USER_MAGIC_FOLDER_2$ = $USER_MAGIC_FOLDER_2_1$ with the rule Compare IA Variables: $INSTALLER_UI$ equals ignore case CONSOLE. This is really awkward, but finally it works.