TBC Macros and Extensions

 View Only
Expand all | Collapse all

Installer - How to store templates while installing onto the TBC´s templates folder?

  • 1.  Installer - How to store templates while installing onto the TBC´s templates folder?

    Posted 07-19-2022 00:48
    Hi,

    does anyone know how to configure the installation routine to store i.e. own .vct templates onto the TBC´s template folder?

    I use VS2017 to create my instllations routines and I don´t see any other TBC´s related folder than the "Application Folder" which is actually my own subfolder under: C:\ProgramData\Trimble\MacroCommands



    I would like and need to store some own templates on the TBC´s template folder something like: C:\Users\YourUserName\AppData\Roaming\Trimble\Trimble Business Center\37.0 which even varies from TBC version to TBC version i.e. ...\37.0 for TBC v5.70

    Is there any way to store own files to special TBC fixed paths such us the templates one mentioned above.

    Thanks.

    Regards,
    Fernando

    ------------------------------
    Fernando Calvo
    calvo@calvo-geospatial.com
    ------------------------------


  • 2.  RE: Installer - How to store templates while installing onto the TBC´s templates folder?

    Posted 07-19-2022 16:23
    You got it right. Just put the *.vct files in the AppData folder.  When you use the "New" command, TBC will scan that folder and list any VCT files found.

    ------------------------------
    Gary Lantaff
    ------------------------------



  • 3.  RE: Installer - How to store templates while installing onto the TBC´s templates folder?

    Posted 07-20-2022 00:59
    Hi Gary,

    thanks for your quick reply!

    I know, until know I've stored manuall the .vct, .imp etc files onto that folder, however I'd like to automaticall store it there during my macros installation which is a .msi file.

    So my question was how to recognise the current installed TBC version from the installer and then how to get the corresponding ....AppData.../37.0 one so I can store my tenplates from the installer there to avoid the customers doing it themselves manually.

    Thanks
    Fernando

    ------------------------------
    Fernando Calvo
    calvo@calvo-geospatial.com
    ------------------------------