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
- :
- Am i right when i call up.getValue
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 21, 2008
07:28 AM
Am i right when i call up.getValue
hi,,
i am writing custom code for deleting all the files and folders which are getting cached but for it i need to pass the path of one of the files of $USER_INSTALL_DIR$
say $USER_INSTALL_DIR$$/$yyyy , this yyyy folder is what i want to get in the string . And then pass it through some means.
Am i right when i call
up.getValue("$USER_INSTALL_DIR$$/$YYYY$");
where up is UninstallerProxy.
i am writing custom code for deleting all the files and folders which are getting cached but for it i need to pass the path of one of the files of $USER_INSTALL_DIR$
say $USER_INSTALL_DIR$$/$yyyy , this yyyy folder is what i want to get in the string . And then pass it through some means.
Am i right when i call
up.getValue("$USER_INSTALL_DIR$$/$YYYY$");
where up is UninstallerProxy.
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 21, 2008
08:23 AM
5 $ signs can't be correct; you always need a pair number of $ signs.
Best Regards,
Yves
Best Regards,
Yves
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 21, 2008
09:16 AM
hi
, how can i get $USER_INSTALL_DIR$ value in the uninstall() method.
can i use up.getValue()
or how shall i call ip.getsubstitute("$USER_INSTALL_DIR$");
aNALOGOUS to (ip.getsubstitute("$USER_INSTALL_DIR$") in the uninstall () method in the execute custom code.
james
, how can i get $USER_INSTALL_DIR$ value in the uninstall() method.
can i use up.getValue()
or how shall i call ip.getsubstitute("$USER_INSTALL_DIR$");
aNALOGOUS to (ip.getsubstitute("$USER_INSTALL_DIR$") in the uninstall () method in the execute custom code.
james
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 21, 2008
04:36 PM
up.getValue("$USER_INSTALL_DIR$$/$$YYYY$");
or
up.getValue("$USER_INSTALL_DIR$$/$YYYY");
should work.
Best Regards,
Yves
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 22, 2008
10:50 PM
hi,
i am calling up.getValue() in the uninstall method and writing its value to a file but it does not contain anything
.
My code is given below but i dont know why its not happening.
My aim is to store the value of an application server say jboss in a string.
String toBeManipulated=up.getValue("$USER_INSTALL_DIR$$/$jboss");
And then delete all the subfolders,folders and files under the jboss folder
which contains some files which get cached up.
How shall i do this using custom code.
i am calling up.getValue() in the uninstall method and writing its value to a file but it does not contain anything
.
My code is given below but i dont know why its not happening.
My aim is to store the value of an application server say jboss in a string.
String toBeManipulated=up.getValue("$USER_INSTALL_DIR$$/$jboss");
And then delete all the subfolders,folders and files under the jboss folder
which contains some files which get cached up.
How shall i do this using custom code.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 22, 2008
11:03 PM
hi,
i have attached the custom code action ,it would be a pleasure if anyone can verify the abnormalities in the code or any new features to be added to make it work.
Basically i want to get the path to the folder(application server say jboss)
and delete it completely including the files which get cached after installation.
Regards,
james.
i have attached the custom code action ,it would be a pleasure if anyone can verify the abnormalities in the code or any new features to be added to make it work.
Basically i want to get the path to the folder(application server say jboss)
and delete it completely including the files which get cached after installation.
Regards,
james.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 12, 2008
01:38 PM
I never use getValue I thought that was for localization. I use substitiute.