This article provides instructions on how to enable ClearCase view profile during a silent installation.
ClearCase view profiles are not enabled by default during installation. Therefore it needs to be enabled on all the client machines manually.
There is no option to enable the view profile in the response file but it can be enabled by editing the Microsoft Windows registry.
Enabling ClearCase view profile can be done using a simple batch script that performs the following tasks:
- First step is to have the installation command like the below example:
IBMIM.exe --launcher.ini silent-install.ini -input c:\response_files\clearcase_response_Windows.xml –acceptLicense
Make sure you configure to "reboot later" by editing the response file.
- The registry key path for view profile are as follows:
HKEY_LOCAL_MACHINE\SOFTWARE\Atria\ClearCase\CurrentVersion -- 32 bit machine
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Atria\ClearCase\CurrentVersion --64 bit machine
There are two values that must be adjusted:
ProjectRoot, of type string (REG_SZ), specifies the path to the storage location of the view profiles. By default, the registry key value "ProjectRoot" is empty .
InstallConfiguratio" is a binary value of type REG_DWORD. By default the value is 173 (HEX) which disables the view profile checkbox.
Warning: Before making any registry changes, you should always backup your registry.
For instructions on how to do this, please see the link below "How to backup the Windows® Registry".
- Change the registry values as below to enable the view profile:
ProjectRoot - Provide the view profile path
InstallConfiguration - Change the hexadecimal value from 173 to 1f3 (HEX) to enable the view profile checkbox.
After editing the two registry values, the registry values must be exported and saved as .reg file.
The .reg file will have both the changes done to enable the ClearCase view profile. The .reg file can be placed in a shared location, so that it can be executed from any ClearCase client machine to reflect the registry change.
To silently run the saved .reg file (with the /s switch) from a batch file, use the following syntax:
regedit.exe /s <path of .reg file>
Please refer the Microsoft KB article below, that would guide you through editing the registry keys: http://support.microsoft.com/kb/310516
- Reboot the client machine.
Sample Batch File:
# Silent installation of ClearCase.
IBMIM.exe --launcher.ini silent-install.ini -input c:\response_files\clearcase_response_Windows.xml -acceptLicense
# Editing the registry keys. After editing the ciew profile registry keys it is exported to viewprofile.reg
regedit.exe /s \\hostname\cc\viewprofile.reg
# Reboot the machine
THE DOWNLOAD(S) ARE PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF PATENTS, COPYRIGHTS OR OTHER PROPRIETARY RIGHTS OF OTHERS. NEITHER THE AUTHOR NOR IBM WARRANT THAT THE FUNCTIONS, ROUTINES, AND DATA CONTAINED IN, OR GENERATED AS A RESULT OF THE DOWNLOAD(S), WILL MEET YOUR REQUIREMENTS OR BE ERROR-FREE. The entire risk related to the quality and performance of the download(s) is with you. In the event that there is any defect, you assume the entire cost of all necessary services, repair or correction. IN NO EVENT WILL THE AUTHOR OR IBM BE LIABLE TO YOU OR TO ANY THIRD PARTY FOR ANY DIRECT OR INDIRECT DAMAGES (INCLUDING, WITHOUT LIMITATION, LOST PROFITS, LOST SAVINGS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES) ARISING OUT OF THE USE OR INABILITY TO USE THE DOWNLOAD(S), EVEN IF THE AUTHOR OR IBM HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Some jurisdictions do not allow the exclusion of implied warranties or the limitation or exclusion of liability for incidental or consequential damages, so some of the above may not apply to you."