+ Reply to Thread
Results 1 to 4 of 4

Auto-install & auto-update add-in using executable file

  1. #1
    Registered User
    Join Date
    05-17-2012
    Location
    New York, NY, USA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Auto-install & auto-update add-in using executable file

    Hello,

    I've designed an Excel add-in that I'd like to be able to auto-install and auto-update as new versions come out.

    Two questions:
    1. What is the best way to design an executable file to auto-install the macro? I've appended the instructions I send to my users below, but I'd like to make the process easier for them and just run a program/file that automates all of those steps below. Is it easiest to write a batch file? I've never done anything like this, so it'd be great to get some outside expertise.
    2. How can I have the macro auto-update? I will keep a file called "LatestVersion.xla" on a public server that can be downloaded whenever. All I'd like to do is have a macro check if the add-in installed on a user's machine is out of date, and if it is, auto-update (perhaps using a similar executable file as the one used to install).

    Thanks,

    Evan

    --------------------------------------------------------------------------------------------------------------------------------------------
    Instructions for installing the tool:
    1. Save the attached .xlam file to your desktop
    2. Copy the file (right click, select "copy")
    3. Open Excel
    4. Go to: File --> Options --> Add-Ins --> Go
    5. Click on "Browse" (DO NOT change your default Microsoft/AddIns folder)
    6. Paste the file you just copied from your desktop
    7. Click OK
    8. The toolbar should now load. You can delete the original file from your desktop.
    --------------------------------------------------------------------------------------------------------------------------------------------

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Auto-install & auto-update add-in using executable file

    Leave the add-in on the network share, read-only. Users can install it from there (not download, just install), and you can update it transparently.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-17-2012
    Location
    New York, NY, USA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Auto-install & auto-update add-in using executable file

    Quote Originally Posted by shg View Post
    Leave the add-in on the network share, read-only. Users can install it from there (not download, just install), and you can update it transparently.
    Thanks for your response, Shg.

    Two things:
    1. I do not have a shared drive. I am going to upload the file to my public Dropbox folder and then allow users to download it from there.
    2. This post is asking how to AUTOMATE the process of installation/updating (via an executable file)

    Thanks,

    Evan

  4. #4
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: Auto-install & auto-update add-in using executable file

    See my thread for a similar concept. It checks a shared folder for an updated version and will install the new add-in if the user accepts Yes/No prompt. http://www.excelforum.com/excel-prog...ated-xlam.html
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1