+ Reply to Thread
Results 1 to 3 of 3

checking registry entry on Auto_open in excel addin

  1. #1
    Forum Contributor
    Join Date
    01-13-2009
    Location
    Mumbai
    MS-Off Ver
    Excel 2003, 2007
    Posts
    168

    checking registry entry on Auto_open in excel addin

    Hi friends,
    I have an add-in which I want to protect from piracy.

    Can I somehow write a code in Auto_Open that will access the registry entry and will verify if the installation is genuine..

    I have an installer that on installation adds few details in the registry and also installs the add-in on clients machine. I just need a code to be used in 'add-in' so that it cannot be distributed illegally..

    I hope I am able to explain my problem.. If there is anything more you need about it please let me know..

    Regards,
    Vaibhav

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: checking registry entry on Auto_open in excel addin

    Good morning c.vaibhav
    Quote Originally Posted by c.vaibhav View Post
    I have an installer that on installation adds few details in the registry and also installs the add-in on clients machine. I just need a code to be used in 'add-in' so that it cannot be distributed illegally..

    I hope I am able to explain my problem.. If there is anything more you need about it please let me know..
    There is nothing you can d to make an Excel workbook truly watertight : Excel is simply not a secure development platform. Someone could easily run your workbook without the macros. Or circumvent your VBA password to determine why it wasn't working, and see the registry setting it's looking for...

    The instructions you are looking for to write values to the registry and read them back are :
    SaveSetting and
    GetSetting
    The Help files explain it fairly well (for a change).

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    01-13-2009
    Location
    Mumbai
    MS-Off Ver
    Excel 2003, 2007
    Posts
    168

    Re: checking registry entry on Auto_open in excel addin

    Thanks for the reply..

    Basically the customers that I am targetting are not much into computers.. they would not put efforts to do anything to hack the add-in..

    However they might distribute it through email and that is the only thing that i need to protect..

    Also i'll see the help file for 'Save Setting' & 'GetSetting'.. If I dont understand anything i'll get back to you..

    Besides Registry entries is there any other easier way to protect the add-in to run only on specifed computers. Even if it is not 100% foolproof will do..

    Thanks & Regards,
    Vaibhav

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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