This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CODECOMPOSER: CCS Installer Failure - error "Installer Initialization Failed."

Part Number: CODECOMPOSER

Tool/software: Code Composer Studio

I cannot install Code Composer Studio 8.2.0.00007 (or any previous version back to v6, online installer or offline installer). When I run the installer I get a pop-up message that says:

"Installer Initialization Failed."

"The installer will now exit."

There is a little bit of history here. I tried to install it yesterday (online and offline installers) and it would give the above message. Inexplicably one time the online installer started installing, and I couldn't tell what I had done differently. The installer ran for several hours but didn't get past maybe 20%, and I let it go overnight.

By this morning it had made no progress so I cancelled the install. However it didn't seem to uninstall correctly because it was still listed in the the Windows Add/Remove Programs list. When I clicked Uninstall it said that "ccs_uninstall.exe" could not be found. I tried to install again none of the installers would get past the error screen. I went into regedit and removed the corresponding registry key for the Uninstall program list, and this of course didn't solve the problem.

Here are a few more details. The installation seems to stop before writing any logs (as far as I can tell). The MD5 hash matches for the offline installer. I am running Windows 10 Enterprise Version 10.0.16299 Build 16299.

Any thoughts? I am stuck.

  • Hi Lee,

    Can you please start up the installer and check for any bitrock*.log files in the %TEMP% folder, and post the latest one here?

    Thanks,

    Danish

  • Danish,

    No log was found. Here is what I did: I re-ran the online installer (failed result as usual) then searched the entire C drive for bitrock*.log.

    Lee

  • Hello Lee,

    do you run an installer with an admin privilege?
  • Hi Lee,

    Could you please run the installer with the following parameters to generate a debug trace file and post it here?

    <installer_name> --syncdebugtrace debug.txt 

    Please note, there are 2 dashes in front of syncdebugtrace.

    Thanks,

    Danish

  • Tom,

    Yes, I used admin privileges.

    Lee

  • Danish,

    I did not get a debug.txt file. I went to command line (cmd), typed "ccs_setup_8.2.0.00007 --syncdebugtrace debug.txt", and didn't find a log even after searching the C drive.

    Lee
  • Try to redirect cmd stdout and stderr to debug.txt.
  • Tom,

    The log file is zero bytes. At cmd I ran: "ccs_setup_8.2.0.00007 > log.txt 2>&1".

    Lee
  • Windows 10 Enterprise has more Windows Defender options then my Pro version.
    Is it possible that some parts of your Windows Defender options are the installation blockers?
  • Tom,

    I have installed many other programs, and CCS partially installed once, so I doubt that Windows Defender is the problem. I will ask a co-worker to install CCS to test this theory. I should know the answer by the end of the day.

    Lee
  • Can you try once more, giving the debug.txt file a path to a folder you can write to?
    e.g. ccs_setup_8.2.0.00007 --syncdebugtrace c:\temp\debug.txt
    where c:\temp exists and you can write to the file.
    Thanks,
    Danish
  • Danish,

    I tried this and it does not create a file.

    Lee

  • Could you confirm that all your on-line anti-virus s/w was offline during an installation?
  • I'll open a ticket and get back to you as soon as I find a resolution.
    Sorry for the trouble.
    Danish
  • Hi Lee,
    Could you do the following and attach the debug.txt file here?

    set INITDEBUG=1
    ccs_setup_8.2.0.00007.exe > debug.txt

    Thanks,
    Danish
  • Tom,

    My co-worker was able to install CCS using the offline installer. The online installer did not work because Windows Defender blocked it. Unfortunately this experiment was done on a Windows 7 machine so it doesn't prove much.

    Lee

  • Danish,

    I ran these commands at cmd and got a zero-length text file.

    Lee
  • Tom,

    Windows Defender is active and IT has it locked down so I can't disable it.

    Lee
  • You need to go to IT.
    You are facing the security and politics issue.
  • Lees,

    Win10 Enterprise has more sophisticated Defender than Win7.
  • Lee,
    Could you open a cmd prompt as administrator and run:
    set INITDEBUG=1
    ccs_setup_8.2.0.00007.exe > debug.txt

    Thanks,
    Danish
  • debug offline.txt
    Fullscreen
    1
    2
    3
    Loading win32 couldn't load library "C:/Users/ADM_CR~1/AppData/Local/Temp/be29e7f1-71ae-4703-50cb-1d52be512f51/twapi-be29e7f1-71ae-4703-50cb-1d52be512f51.dll": No error
    couldn't load library "C:/Users/ADM_CR~1/AppData/Local/Temp/be29e7f1-71ae-4703-50cb-1d52be512f51/twapi-be29e7f1-71ae-4703-50cb-1d52be512f51.dll": No error
    couldn't load library "C:/Users/ADM_CR~1/AppData/Local/Temp/be29e7f1-71ae-4703-50cb-1d52be512f51/twapi-be29e7f1-71ae-4703-50cb-1d52be512f51.dll": No error
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    debug online.txt
    Fullscreen
    1
    2
    3
    Loading win32 couldn't load library "C:/Users/ADM_CR~1/AppData/Local/Temp/be29e7f1-71ae-4703-50cb-1d52be512f51/twapi-be29e7f1-71ae-4703-50cb-1d52be512f51.dll": No error
    couldn't load library "C:/Users/ADM_CR~1/AppData/Local/Temp/be29e7f1-71ae-4703-50cb-1d52be512f51/twapi-be29e7f1-71ae-4703-50cb-1d52be512f51.dll": No error
    couldn't load library "C:/Users/ADM_CR~1/AppData/Local/Temp/be29e7f1-71ae-4703-50cb-1d52be512f51/twapi-be29e7f1-71ae-4703-50cb-1d52be512f51.dll": No error
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    4846.bitrock_installer.log
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    Log started 10/04/2018 at 09:44:42
    Preferred installation mode : unattended
    Trying to init installer in mode unattended
    Mode unattended successfully initialized
    [09:44:42] Found mode
    Executing C:\Lee\ccs_setup_8.2.0.00007.exe --mode win32 &
    Script exit code: 0
    Script output:
    Script stderr:
    Cannot delete file C:/Users/ADM_crossl04/AppData/Local/Temp/bitrock_installer.log
    [09:44:43] Windows 10 0
    [09:44:43] installer_command_line_arguments :
    [09:44:43] installer_command_line_arguments :
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Danish,

    I got 3 log files from a fresh Windows 10 Enterprise laptop with admin rights.

    These files are the stdout from the online and offline installers, run from cmd as admininstrator, and "set INITDEBUG=1":

    * "debug offline.txt"

    * "debug online.txt"

    At some point when I re-ran the previous commands the online installer generated this bitrock log:

    * "bitrock_installer.log"

    I hope this means something to you!

    Lee

  • Lee,

    bitrock_installer.log show success.
    However, it shows some troubles with tclsh. Could it be caused by Windows Deffender application security, a feature not available in Win7 and Win 10 Pro?

    What is the status of your CCS installation?
  • Tom,

    Neither of my machines have successfully installed CCS. I don't know if Windows Defender is the problem, and I am running a parallel path to get IT to disable Defender. This may take a long time, so I don't want to stop pursuing other avenues.

    Lee
  • I imagine.
    In banks it takes 3-4 weeks to get an e-mail account, of course it is according to the procedures.

    TI employees may have Windows Enterprise edition, probably.

    Danish, which Win. version do you have?
  • Hi Lee,
    It looks like the installer's having a problem loading some win32 dlls. The installer itself is a 32 bit program. I'm looking into what could cause it to have this problem. Have you been able to run any 32 bit programs on your machine?
    Danish
  • Danish,

    Yes, I am running 32-bit applications on my machine.

    Lee
  • 7220.ccs_config.xml
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    <Edition installerversion="1.0" name="Custom" version="8.2.0.00007" location="c:/ti/ccsv8/eclipse" totalsize="0" product="Code Composer Studio" percentcomplete="1">
    <OS>windows</OS>
    <CCSDIR>c:/ti/ccsv8</CCSDIR>
    <zipbinary>C:/Users/ADM_CrossL04/AppData/Local/Temp/ccs_7cd673ce-8702-4cdd-445d-2413e12f32c4/util/7za.exe</zipbinary>
    <osd>Windows10-64-bit</osd>
    <OSName>Windows 10</OSName>
    <ServicePack>0</ServicePack>
    <allSelected>0</allSelected>
    <proxy></proxy>
    <baserepourl>C:/Lee/CCS/baserepo</baserepourl>
    <TempDir>C:/Users/ADM_CrossL04/AppData/Local/Temp/ccs_7cd673ce-8702-4cdd-445d-2413e12f32c4</TempDir>
    <InstallSrc>C:/Lee/CCS</InstallSrc>
    <InstallDir>c:/ti</InstallDir>
    <LocalBaseRepository>C:/Lee/CCS/baserepo</LocalBaseRepository>
    <featureurl>C:/Lee/CCS/featurerepo</featureurl>
    <eclipseexe>eclipsec.exe</eclipseexe>
    <ComponentInstaller>false</ComponentInstaller>
    <LocalRepository_Exists>1</LocalRepository_Exists>
    <testurl>0</testurl>
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    1033.ccs_setup_8.2.0.00007_install.log
    4657.dpinst.log
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    ?INFO: ****************************************
    INFO: 07/30/2018 14:46:28
    INFO: Product Version 2.1.0.0.
    INFO: Version: 6.0.6000
    INFO: Platform ID: 2 (NT)
    INFO: Service Pack: 0.0
    INFO: Suite: 0x0100, Product Type: 1
    INFO: Architecture: AMD64.
    INFO: Running under Local System Account
    INFO: Non-Interactive Windows Station
    INFO: Command Line: '"C:\Program Files\STMicroelectronics\stdcfltn\dpinst.exe" /SA /LM /SW'
    INFO: DPInst is not multi-lingual.
    INFO: ****************************************
    INFO: Current working directory: 'C:\Program Files\STMicroelectronics\stdcfltn'
    INFO: Running on path 'C:\Program Files\STMicroelectronics\stdcfltn'
    INFO: No valid 'dpinst.xml' file provided.
    INFO: Install option set: Suppressing Wizard but no OS popups.
    INFO: Install option set: legacy mode on.
    INFO: Install option set: Suppress Add or Remove Programs entries.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Danish,

    Update: I got a little IT help to boot into Windows Safe Mode, and I ran the offline installer. It got further but didn't complete. The install logs are attached.

    Lee

  • Hi Lee,
    Can you zip up the contents of the install directory's install_logs folder and post the zip file here?
    Thanks,
    Danish
  • Danish,

    I finally had success! I installed it in Safe Mode with Networking. The procedure was:

    Allow applications to install in Safe Mode with Networking
    * In regular Windows mode, start cmd as administrator
    * Enter: REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer" /VE /T REG_SZ /F /D "Service"

    Enter Windows 10 Safe Mode
    * Windows Start -> <Shift> + Restart -> Troubleshoot -> Advanced Options -> Startup Settings -> Restart
    * Select option: Safe Mode with Networking
    * Start cmd as administrator
    * (Optional) Enter: net start msiserver
    * Run CCS offline installer
    * Allow the Windows Defender Firewall exception

    Lee

  • Thanks for the update, Lee. So it was windows defender that was preventing the installer from running?
  • Danish,

    I think so, but I don't know for sure.

    Lee
  • Lee,

    all MS Windows versions look very similarly and behave in different ways.
    How did you found this hint:
    Enter: REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer" /VE /T REG_SZ /F /D "Service"

    Are you MS Win expert, with admin help or hours googling and analyzing?

    Very interesting case.
    I am pretty sure that TI's release managers do needed tests.
    However, on e2e goodwill forum not all test conditions can be quickly restored.

    I am pretty sure, that in coming years, the security tail wags the dog.

    To remeber what you did I would repeat:
    Enter: REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer" /VE /T REG_SZ /F /D "Service"

    Glad you did!
  • Tom,

    I found the snippet by googling "how to install applications in windows 10 safe mode". The good news is I now have 170 forum points.

    Lee

  • We have a lot of users on windows 10 using windows defender, and they're not running into this issue. It may be one of the settings that's particular to your set up. I will continue to look into this and keep you updated.