Automated Installation and Licensing

Silent Installation

For versions starting 4.0.0137 and newer:

Source Insight can be installed silently by invoking the setup program with the /qn option. You must run this from an Administrator command prompt or process. For example, to setup version 4.0.0137, use this command:

sourceinsight40137-setup.exe /qn

For versions 4.0.0136 and older:

Source Insight can be installed silently by invoking the setup program with the /S and /V options. For example, to setup version 4.0.0104, use this command:

sourceinsight40104-setup.exe /S /V"/qn"

Please make sure the double quotes are used exactly as shown. The /V option passes the " /qn" option to the Windows Installer (msiexec.exe).  Also note that the version numbers in the setup executable will change with new releases.

License-Related Command Line Controls

New License Installation command line options were added starting in build 4.0.0104. These are designed to make automated installs easier. Care should be taken because these options will change and replace the license currently stored on the computer.

To specify a license file to import and use

sourceinsight4.exe -license-file <licence-file-path>

The license file is provided by Source Dynamics for off-line (or network restricted) activation. You should copy the provided license file to a location on the user's disk or network before using this option.

To specify a license serial number to use

sourceinsight4.exe -license-serial <serial-number>

The user will still be prompted for their registration user name and email, but the serial number will be pre-populated. If a network connection exists, it will request an activation from the Source Insight license server.

To remove and deactivate an existing license

sourceinsight4.exe -reset-license

This will deactivate and delete the license on the computer. The next time Source Insight runs, it will prompt to activate the license. This option is effectively the same as running Source Insight and selecting Help > Manage License and selecting "Deactivate license". If a network connection exists, it will inform the license server that the license has been deactivated.

This will delete the license and license serial number from the computer. Be sure to record the license serial number first so it can be activated again.

Freezing when Typing into Text Boxes

Symptom: Typing into a text box field, such as in the New Project dialog or the Search dialog, causes Source Insight to freeze.

This problem may be caused by a known system issue where typing characters may freeze on Windows with non-English as preferred input languages. This is due to a bug in the Windows IME.

Here are some external articles with workarounds:

https://support.microsoft.com/en-us/help/4564002/you-might-have-issues-on-windows-10-version-20h2-and-windows-10-version

https://www.neowin.net/news/microsoft-confirms-app-freezes-with-ime-in-windows-11-2022-update

Workaround Steps

To work around this issue in the short term, either manually switch the input mode when typing, or by following the steps below to enable compatibility mode:

  1. Select Windows Start, type "Settings" and select it or press enter.
  2. Type "Language" into the search box within Settings and select "Edit Language and Keyboard Options"
  3. Select the language, for example: Traditional Chinese, then click the Options button.
  4. Under Keyboards, select the Input method editor, then the Options button. Click General.
  5. In the Compatibility section, turn on Use previous version of Microsoft IME.

Note: The steps above may change with different versions of Windows. The important thing is to get to the Input Method Editor for your current language and enable the option Use previous version of <language> IME.

 

Source Insight Cannot See Network Drives

Symptom: Source Insight cannot see network drives that are mapped to drive letters.

This caused by a feature in Windows the blocks mapped drives in processes running with elevated privileges when the drives are mapped from a lesser privilege process.

If you are running Source Insight from an "elevated" command prompt (for example an Administrator command prompt), or you always run Source Insight as Administrator, but you are mapping the drives in Windows Explorer, then Source Insight may not be able to see the mapped drives. This is a security feature of Windows: If you map a drive using Windows Explorer, an elevated Command Prompt (or any other elevated process) will not be able to see it.

Workarounds

Here are some external articles about the topic:

Article: https://learn.microsoft.com/en-us/troubleshoot/windows-client/networking/mapped-drives-not-available-from-elevated-command

Article: http://woshub.com/how-to-access-mapped-network-drives-from-the-elevated-apps/

Article: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/ee844140(v=ws.10)

Source Insight – version 4.0.0137

Source Insight

Version 4.0.0137 - March 27, 2024

Fix: C/C++/C#: enum constants used in curly-braced initializations were not found by Lookup/Jump to References. A fix for this in the previous update was not complete.

Fix: C/C++/C#: Some struct or class member names were not recognized when used in initializer lists. This was a regression introduced in the previous update.

Fix: C/C++: Some template class members were not found.

Change: Switched to a new installer program.

Source Insight – version 4.0.0136

Source Insight

Version 4.0.0136 - March 14, 2024

New: Flat shading UI option that gives the UI a more modern look. To enable it, select Options > Preferences > Display and enable "Use flat shading on UI elements".

New: You can change the font used for panel titles. To select the font, select Options > Preferences > Colors & Fonts, then click the button "Panel Title Font...".

New: You can change the colors and font used for popup source tips. To change, select Options > Preferences > Colors & Fonts, then click the button "Source Tip Font and Colors...". This setting is also saved with each visual theme.

New: The standard visual themes were updated. You can also quickly redefine a theme by holding down CTRL and selecting Options > Visual Theme > (selected theme).

Fix: C/C++ #include <relative-path> : Using Jump to Definition on the include file was not working when the file path is relative to an imported library directory and the angle bracket syntax is used.

Fix: C/C++ enum constants used in curly-braced initializations were not found by Lookup/Jump to References.

Fix: C/C++ token macro expansion was not working when the expansion was a struct or class definition on a single line.

Fix: Overview scroller would sometimes not respond to the mouse hovering over it, and could sometimes not respond to mouse clicks.

Fix: Crash could happen when typing into Project Symbols or Files panels. The crash depended on the contents of the project.

Fix: Inside Edit Condition, if you used the Edit List feature, or the Scan Files feature, then cancelled the dialog, the changes were not discarded.

Fix: Miscellaneous stability fixes and small feature changes.

Source Insight – version 4.0.0134

Source Insight

Version 4.0.0134 - December 10, 2023

Fix: Source Insight would crash if it was blocked by a firewall or proxy. This bug was introduced in build 4.0.0133. If you selected Help > Check for Updates it would crash. It might also crash after a period of time if it tried to connect to the update server in the background.

Changes in Previous 4.0.0133

New: The Relation Window now has Go-Back and Go-Forward buttons in the toolbar, which cycle through the history of items shown as the "root" of the Relation Window.

New: Relation Window: You can delete nodes from the relation tree. To remove a node from the display, select the node and right-click and select "Delete Node". This works in both the outline and graphical views. Note that recalculating the Relation window, or re-expanding the node will recreate the deleted nodes.

Change: Jump To Caller command now limits the results to references to the currently selected function that are actual function calls from other functions, not just references by name.

New: Jump To References command works like Jump To Caller, except it shows all references in a similar pop-up window. The default shortcut is CTRL+ALT+L. You can also invoke it from the right-click context menu or the popup toolbar.

Fix: Key combinations using the "Windows" key (which normally opens the Windows Start menu) was inserting bogus characters.

Fix: Comment Lines (and Toggle Comment Lines) could crash depending on how lines were selected before using the command.

Fix: Context Window Go-Back and Go-Forward buttons were not acting consistently, and the Context window title did not update to show the current symbol or file.

Fix: File Compare Window Options dialog: The Show Overview and Show Difference List options were reversed.

Source Insight – version 4.0.0133

Source Insight

Version 4.0.0133 - December 7, 2023

New: The Relation Window now has Go-Back and Go-Forward buttons in the toolbar, which cycle through the history of items shown as the "root" of the Relation Window.

New: Relation Window: You can delete nodes from the relation tree. To remove a node from the display, select the node and right-click and select "Delete Node". This works in both the outline and graphical views. Note that recalculating the Relation window, or re-expanding the node will recreate the deleted nodes.

Change: Jump To Caller command now limits the results to references to the currently selected function that are actual function calls from other functions, not just references by name.

New: Jump To References command works like Jump To Caller, except it shows all references in a similar pop-up window. The default shortcut is CTRL+SHIFT+L. You can also invoke it from the right-click context menu or the popup toolbar.

Fix: Key combinations using the "Windows" key (which normally opens the Windows Start menu) was inserting bogus characters.

Fix: Comment Lines (and Toggle Comment Lines) could crash depending on how lines were selected before using the command.

Fix: Context Window Go-Back and Go-Forward buttons were not acting consistently, and the Context window title did not update to show the current symbol or file.

Fix: File Compare Window Options dialog: The Show Overview and Show Difference List options were reversed.

Source Insight – version 4.0.0132

Source Insight

Version 4.0.0132 - October 17, 2023

New: There is a new Project > Recent Projects menu item so you can easily re-open a recently opened project. The Recent Projects menu item also appears in the right-click context menu if you click in the frame of the program.

New: The File > Recent Files list was increased from 20 to 30 files. You can also remove a file from the Recent Files list by holding down CTRL while selecting the file on the menu.

New: Zoom In (CTRL+SHIFT+>) and Zoom Out (CTRL+SHIFT+<) commands so you can increase or decrease the font size with a keystroke.

Fix: Token macros (preprocessor macros) were not expanded and applied when evaluating expressions in #if, #ifdef, #ifndef, or #elif preprocessor statements.

Fix: FTP panel was not listing files for some versions of the Microsoft IIS FTP server.

Fix: C++: The types implied by some smart ptr types were not being resolved correctly.

Change: Updated the code signing certificate.

Version 4.0.0131 Changes 

New: Toggle Comment Lines command added (menu Edit > Special Edit > Toggle Comment Lines). The default keystroke is CTRL+7. This toggles the comment state of a selected block of lines. The block is considered commented if ALL lines in the block are already commented out.

Fix: Relation Window was always showing items for extern declarations of variables, even though the "External Variable" type was disabled in the Relation window symbol type setting.

Fix: C# ref struct was not parsed correctly.

Fix: Added support for old-style C function parameter declarations where function parameters are declared below the parameter list and before the opening curly brace. This is an option that is enabled by default. You can control it in Options > Preferences > Languages > Special.

Source Insight – version 4.0.0130

Source Insight

Version 4.0.0130 - August 21, 2023

Fix: C++ Scoped enums (enum class and enum struct) were not handled correctly by Lookup References and Jump To Definition.

Fix: C++ using enum statements were not recognized.

Fix: C/C++: Some forms of declaring pointers to functions where not recognized.

Fix: C/C++: When there was an extern declaration of a function inside another function, using Jump To Definition of the declared function did not work.

Fix: Import External Symbols: Importing from the INCLUDE path was truncating the path.

Fix: Using custom RegEx parsing with multiple patterns could record incorrect line positions of functions and symbols. This could cause the symbol pane on the left to show the wrong current function.

Fix: Context Window: Selecting an identifier and choosing Show in Relation Window was deactivating the Context window.

Fix: Crash could happen if re-indexing the symbol database and user cancels the re-index operation.

Fix: In some cases after re-parsing a project, the symbol database was not getting updated.

Fix: XML parser was not handling comments with embedded quotes correctly.

Fix: Popup toolbar now uses the same background color as the main toolbar.

Fix: Buffer overrun bugs fixed when typing in some panels to filter the list of symbols or files.

New: You can lock the main toolbar by selecting View > Toolbars > Lock Toolbar

Files are Read-Only

Symptom: Files you open in Source files are read-only.

In Source Insight, a file is read-only in the following cases:

  1. The file is part of a read-only project.
  2. The file is stored in a Backup folder.
  3. Windows reports that the file has the read-only attribute.
  4. The file is part of an "import" project created by selecting Project > Import External Symbols (for example, C/C++ standard header files).
  5. The file is part of a project that is also open in another running Source Insight instance.

Try this: select Project > Close Project. Then open the file and see if it is read-only. Note the file name is displayed with a ! mark if the file is read-only. If the file becomes read/write, then the project must be read-only.

In Source Insight, any file that is part of a read-only project is shown as read-only. A project is read-only if the project data file that ends in the .siproj extension is read-only. For example, if your project is named ABC, then locate the file "Documents\Source Insight 4.0\Projects\ABC\ABC.siproj" and check if it is marked read-only in Windows Explorer.

A project is also read-only if it is open in another running instance of Source Insight. Run Windows Task Manager and make sure there isn't another instance of Source Insight running.

Also, files that are stored in a Source Insight Backup folder are read-only. For example: if your project is called ABC, then the backup folder is "Documents\Source Insight 4.0\Projects\ABC\Backup". Source Insight treats those files as read-only.

Otherwise, if the file is read-only in Source Insight, then Windows must be reporting to Source Insight that the file has the read-only attribute for some reason. Please check if there is a problem with drive mounting, or the user access in Windows.