Necessary software

  • Visual Studio 2008 or higher (VS 2010 recommended)
  • CMake
  • Python
  • SVN client (e.g. TortoiseSVN)
  • Java Development Kit
  • Microsoft Office Visio SDK (necessary only for Visio modul, instructions below)

Instructions

  • Download source code from SVN repository
  • Building libraries with algorithms
    • Run cmake in directory "{scstudio}/trunk"
    • Open geneterated solution "{scstudio}/trunk/scstudio.sln" in Visual Studio
    • Visual Studio's main menu -> Build -> Build solution
  • Buliding Visio modul
    • Install Microsoft Office Visio SDK and set environment variable VISIOSDK_ROOT on e.g. C:\Program Files (x86)\Microsoft Office\Office12\VisSDK
    • If you don't have one, create private and public key for digital signature of your code
      "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\makecert" -n "CN=e-mail"
      								-r -sv "C:\Users\scstudio\e-mail.pvk" "C:\temp\scstudio.cer.self-signed"

      Replace e-mail with you own address or ID. "C:\Users\scstudio\e-mail.pvk" is path to your private key.

      "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\makecert" -sk e-mail -iv "C:\users\scstudio\e-mail.pvk" -n "CN=e-mail	" -ic "C:\temp\scstudio.cer.self-signed" -sr currentuser -ss MY "some_src\view\visio\scstudio.cer" 
      "some_src\view\visio\" is path to source code of Visio addon. More details on http://msdn.microsoft.com/en-us/library/ms733813.aspx
    • In directory "{scstudio}/trunk/src/view/visio" open "scstudio.sln"
    • Visual Studio's main menu -> Build -> Build solution
  • Building installation package
  • Creates an .exe file which executes automatic installation and configuration of SCStudio add-on
    • Install NSIS 2.46 in <program files> /NSIS
    • Install Microsoft CAPICOM SDK
    • In "{scstuio}/trunk/src/view/setup-nsis" copy following library:
      • "capicom.dll" (installed as described above) from e.g. "C:\Program Files (x86)\Microsoft CAPICOM 2.1.0.2 SDK\Lib\X86"
    • Create folder "{scstudio}/trunk/src/view/visio/redistribute" and copy here the following libraries from your computer.
      • "atl100.dll","msvcp100.dll","msvcr100.dll" (according to Visual Studio version,e.g for VS 2008 atl90.dll,msvcp90,..) from "C:\Windows\System32"
    • Open "view/visio/scstudio.sln" and compile project setup-nsis in release mode
    • Compile algorithms as well as Visio module (view previous steps) in release mode
    • Run "{scstudio}/trunk/src/view/visio/build-setup.bat" which creates an installation package in the same folder
  • Compile and install SCStudio with batch file
    • To build an executable Visio modul you can also run script "{scstudio}/trunk/make_build.bat" (the paths in script must be edited according to your IDE). It compiles algorithms, Visio module and creates installation package.