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
- :
- Command with wild card character "*" is not working
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
‎Dec 16, 2008
07:02 AM
Command with wild card character "*" is not working
Hi
Let me give the background for this question. We have an installer built using InstallAnywhere 2008, which acts as a fresh installer as well as a refresh installer. Think of a fresh install being the product built a few months back and installed on a machine for the first time and the refresh install being the product built today, with patches to problems found in the fresh install and installed over an existing installation.
1) On AIX, In the install step of the refresh install, InstallAnywhere extracts the jre into a folder named $USER_INSTALL_DIR$/ia_jre_extraction_dir_xxxx.tmp folder, where xxxx is some random number.
This folder is not cleaned up by InstallAnywhere at the completion of the installation (only on AIX). Even if we uninstall the product this folder is left over.
So for any number of refresh installs, we would see a new ia_jre_extraction_dir_xxxx.tmp folder left out. where xxxx varies per installation
Why is this left out and whether this is a known issue that InstallAnywhere plans to handle in future?
2) I tried adding an action to the installAnywhere package file to delete these folders using a wild card character * like
rm -rf "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir*" (on AIX)
or
cmd.exe /c rmdir /s /q "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir*" (on Windows, I am trying to simulate this by manually creating this dir and trying to execute the rmdir command from the installer)
But it seem to fail and the temp folder is not removed. The return code is -1 whereas the log indicates a SUCCESS for the execution of this command.
I tried various combinations like
cmd.exe /c rmdir "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir$*$" /s /q
cmd.exe /c rmdir "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir\*" /s /q
rmdir /s /q "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir\*"
Can you help me to resolve this issue, by removing this temp folder by InstallAnywhere itself or temporarily suggest ways to correct the command syntax to delete this folder.
The reason I want to delete this folder is because,
1) it results in unnecessary accumulation of lot of such temp folders on many such refresh installs
2) A fresh install after an uninstallation throws an error that there is some folders left in the install path. I do not want to add the temp jre folders to be excluded, when I check for a valid install path
Awaiting an early response.
Thanks.
R P Krishnan
Let me give the background for this question. We have an installer built using InstallAnywhere 2008, which acts as a fresh installer as well as a refresh installer. Think of a fresh install being the product built a few months back and installed on a machine for the first time and the refresh install being the product built today, with patches to problems found in the fresh install and installed over an existing installation.
1) On AIX, In the install step of the refresh install, InstallAnywhere extracts the jre into a folder named $USER_INSTALL_DIR$/ia_jre_extraction_dir_xxxx.tmp folder, where xxxx is some random number.
This folder is not cleaned up by InstallAnywhere at the completion of the installation (only on AIX). Even if we uninstall the product this folder is left over.
So for any number of refresh installs, we would see a new ia_jre_extraction_dir_xxxx.tmp folder left out. where xxxx varies per installation
Why is this left out and whether this is a known issue that InstallAnywhere plans to handle in future?
2) I tried adding an action to the installAnywhere package file to delete these folders using a wild card character * like
rm -rf "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir*" (on AIX)
or
cmd.exe /c rmdir /s /q "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir*" (on Windows, I am trying to simulate this by manually creating this dir and trying to execute the rmdir command from the installer)
But it seem to fail and the temp folder is not removed. The return code is -1 whereas the log indicates a SUCCESS for the execution of this command.
I tried various combinations like
cmd.exe /c rmdir "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir$*$" /s /q
cmd.exe /c rmdir "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir\*" /s /q
rmdir /s /q "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir\*"
Can you help me to resolve this issue, by removing this temp folder by InstallAnywhere itself or temporarily suggest ways to correct the command syntax to delete this folder.
The reason I want to delete this folder is because,
1) it results in unnecessary accumulation of lot of such temp folders on many such refresh installs
2) A fresh install after an uninstallation throws an error that there is some folders left in the install path. I do not want to add the temp jre folders to be excluded, when I check for a valid install path
Awaiting an early response.
Thanks.
R P Krishnan
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 16, 2008
08:36 AM
Your issue happens on AIX only, right? I was wondering why didn't you try the same approach as on Windows, which is to Execute the following command:
sh -c "rm -rf $USER_INSTALL_DIR$$/$ia_jre_extraction_dir*"
sh -c "rm -rf $USER_INSTALL_DIR$$/$ia_jre_extraction_dir*"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 16, 2008
02:02 PM
Your problem will happen on Solaris too. At least, it happened to me there. Linux and Windows don't have the ia_jre_extraction_dir.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 18, 2008
01:40 AM
Hi
I have tried on Windows as well. In my post, the commands
cmd.exe /c rmdir "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir\*" /s /q
is a command tried on windows.
With Regards
R P Krishnan
I have tried on Windows as well. In my post, the commands
cmd.exe /c rmdir "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir\*" /s /q
is a command tried on windows.
With Regards
R P Krishnan
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 20, 2009
05:34 PM
instead of:
rm -rf "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir*"
try (Execute Script/Batch):
cd "$USER_INSTALL_DIR$"
rm -rf ia_jre_extraction_dir*
rm -rf "$USER_INSTALL_DIR$$/$ia_jre_extraction_dir*"
try (Execute Script/Batch):
cd "$USER_INSTALL_DIR$"
rm -rf ia_jre_extraction_dir*
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 24, 2009
03:55 AM
Thanks. Adding the command as a batch script helped in removing this folder.
Ideally, it should have been cleaned up by InstallAnywhere. But we could use this approach to clean it up, until InstallAnywhere finds the cause and a solution.
With Regards
R P Krishnan
Ideally, it should have been cleaned up by InstallAnywhere. But we could use this approach to clean it up, until InstallAnywhere finds the cause and a solution.
With Regards
R P Krishnan
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)