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
- :
- How to set IA variable inside execute script/batch file action
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
Apr 26, 2010
02:27 AM
How to set IA variable inside execute script/batch file action
Hi,
I am trying to set a IA variable inside Execute Script/Batch file action as below
regsvr32 /s IDMESignature.dll
if %errorlevel% ==0 (echo IDMESignature.dll registration Succeded) else (
echo IDMESignature.dll registration failed
$IS_REGISTRATION$=$IS_REGISTRATION_FAILED$
both $IS_REGISTRATION$,$IS_REGISTRATION_FAILED$ are assigned with values using set Install Anywhere variable action.
But the variable is not setting if i set above.
even i tried by setting like $IS_REGISTRATION$="false" or $IS_REGISTRATION$="false" , still no i use.
Could you please let me know how to set a IA variable inside Execute script/batch file action.I am able to access the variable that was declared out side the script only thing is i can not set the variable.
Thanks,
Vijji123
I am trying to set a IA variable inside Execute Script/Batch file action as below
regsvr32 /s IDMESignature.dll
if %errorlevel% ==0 (echo IDMESignature.dll registration Succeded) else (
echo IDMESignature.dll registration failed
$IS_REGISTRATION$=$IS_REGISTRATION_FAILED$
both $IS_REGISTRATION$,$IS_REGISTRATION_FAILED$ are assigned with values using set Install Anywhere variable action.
But the variable is not setting if i set above.
even i tried by setting like $IS_REGISTRATION$="false" or $IS_REGISTRATION$="false" , still no i use.
Could you please let me know how to set a IA variable inside Execute script/batch file action.I am able to access the variable that was declared out side the script only thing is i can not set the variable.
Thanks,
Vijji123
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 26, 2010
06:46 AM
IA variables have meaning only inside IA, not inside a .bat script. IMHO, the correct logic would have been to use Execute Command and have the IA variable set to the desired variable based on the rule of testing the error level of the respective command.