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
- :
- Aborting uninstallation in Unix for non root user
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
‎Nov 09, 2011
01:24 PM
Aborting uninstallation in Unix for non root user
I using IA 2008 for creating Unix installer/uninstaller. I want only root user to uninstall software and if any non root user attempts to uninstall, proper error should be displayed and uninstall process should be aborted immediately.
I have written Unix Uninstaller which checks for logged in user and if it is root then installation proceeds. If it is non root then using uninstall method, I am throwing FatalInstallException. Proper error is displayed on screen/logged into log but uninstallation still continues.
This is kind of corrupting some files and next time when root user tries to uninstall, its causing problem. I checked docs and it says throwing FatalInstallException does not stop uninstallation. There is no abortInstallation method for UninstallerProxy.
If there is some workaround where i can abort uninstallation for non root user in Unix?
Any help or idea will be highly appreciated.
Thanks
SK
I have written Unix Uninstaller which checks for logged in user and if it is root then installation proceeds. If it is non root then using uninstall method, I am throwing FatalInstallException. Proper error is displayed on screen/logged into log but uninstallation still continues.
This is kind of corrupting some files and next time when root user tries to uninstall, its causing problem. I checked docs and it says throwing FatalInstallException does not stop uninstallation. There is no abortInstallation method for UninstallerProxy.
If there is some workaround where i can abort uninstallation for non root user in Unix?
Any help or idea will be highly appreciated.
Thanks
SK
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 09, 2011
01:58 PM
I check for the user ID that has launched the installer in the pre-install task. If the ID is non-zero, meaning that the user is non root, I display a message that has the OK button which is set to end the installer. You can do the exact same thing in console mode.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2011
12:11 AM
Thanks Vlad for the quick response.
I am facing the issue in uninstall where I have to run the uninstaller in silent mode. Let me know in case you have any suggestion for this.
Thanks
SK
I am facing the issue in uninstall where I have to run the uninstaller in silent mode. Let me know in case you have any suggestion for this.
Thanks
SK
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 16, 2011
06:11 AM
Sorry, I haven't seen your post. I think that basically you must do the same thing, but just in the pre-uninstall task. And I think you've got an API function in order to abort uninstallation.