Getting Excel install folder

I'm doing a project using VSTO for Excel, and would like to install a shortcut to my excel template in the XLSTART folder, so that my add-in loads automatically at startup.

How do I retrieve the Excel install folder in order to include it in my setup project

TIA




Answer this question

Getting Excel install folder

  • pippo43

    Thanks for the info, but my problem is how can I tell the Installer to put the file in the folder at installation time

    There is sthg called "Custom Folders" in the File System part of the Installer, but what Tag should I use for default location property

    TIA


  • KevinC123

    Hi Emmanuel,

    The XLSTART folder is represented by the StartupPath property of the Application object in VSTO, and you can get it this way:

  • Getting Excel install folder