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
- :
- hi can i use custom action template for this
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
Jan 03, 2008
08:32 AM
hi can i use custom action template for this
hi,
i want to know if i can use customaction class and in the install() method call
public void install(Installerproxy ip){
String some=ip.substitute("$USER_INSTALL_DIR$");
String another=some.subString(0,2);
ip.setVariable("XXX_HOME",another);
}
Am i right in this or is there anydiscrepancy
My aim is to get the value of User install folder ,Get the first two characters say
C: or 😧 or E: and set an environment variable XXX_HOME to C: or 😧 or E:
so that i can use it in my batch file for moving from Temp directory of Windows
Batch script code to be used:
%XXX_HOME%
call cd %SQL_HOME%
call mysql -ulocalhost -uroot -proot -P3306 < %SQL_HOME%\xxxx.sql
Any suggestions and the custom code for the above requirement are eagerly awaited.If i can do as described above
i want to know if i can use customaction class and in the install() method call
public void install(Installerproxy ip){
String some=ip.substitute("$USER_INSTALL_DIR$");
String another=some.subString(0,2);
ip.setVariable("XXX_HOME",another);
}
Am i right in this or is there anydiscrepancy
My aim is to get the value of User install folder ,Get the first two characters say
C: or 😧 or E: and set an environment variable XXX_HOME to C: or 😧 or E:
so that i can use it in my batch file for moving from Temp directory of Windows
Batch script code to be used:
%XXX_HOME%
call cd %SQL_HOME%
call mysql -ulocalhost -uroot -proot -P3306 < %SQL_HOME%\xxxx.sql
Any suggestions and the custom code for the above requirement are eagerly awaited.If i can do as described above
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 03, 2008
10:02 AM
Sure, have you tried it yet? Make sure you call your custom action before you want to use the XXX_HOME variable.
I use cd /d, although I don't know for sure what version of windows the /d switch became available.
I use cd /d