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 Knowledge Base
- :
- Set owner for the Installation directory through command line
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Set owner for the Installation directory through command line
Set owner for the Installation directory through command line
Introduction :
The following steps will helps to change owner for installation directory to dynamic user(currently logged in user)
Instructions:
Linux and MAC:
1. Write a script file in advance, please add “sudo” before the chown command
cd $USER_INSTALL_DIR$
usr=$(logname)
echo $usr>>/tmp/name.txt
sudo chown -v -R $usr ./* chmod -R 755./*
kill -9 $(ps -p $(ps -p $PPID -o ppid=) -o ppid=)
2. Create a New Project
3. Add Execute the Target file action in post install sequence after install complete and choose the script file which was created in step1
4. Build and run the project
5. During installation, there will be a prompt for sudo password. After input the sudo password, the chown command can be executed.
No ratings