Results 1 to 4 of 4

Thread: How to save My.Settings even when the exe application is copied

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2020
    Posts
    8

    How to save My.Settings even when the exe application is copied

    Using My.Settings I made some buttons disabled if my exe application was used 100 times.
    This works well but if the user copies the exe file again, he can reuse the application 100 times.
    How to prevent it?
    How to save My.Settings even when the application is copied?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,302

    Re: How to save My.Settings even when the exe application is copied

    There is no way. User-scoped setting are stored in an XML file under the user's personal folder. They don't even need to copy the EXE; they can just delete that file. If you want to implement a trial version of your app or the like then use technology that was designed for that purpose, which My.Settings is not.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2020
    Posts
    8

    Re: How to save My.Settings even when the exe application is copied

    OK.
    Is there any reliable open-source trial project in vb.net (for exe that can be used limited times, or something similar) that is available, even if it is not free of charge?
    I'm probably not the first to need it.
    To simplify, if the user successfully passes the trial form, then Form2 opens where my code is added.

  4. #4
    Fanatic Member
    Join Date
    Jun 2019
    Posts
    557

    Re: How to save My.Settings even when the exe application is copied

    Use registry key or file placed somewhere in \Windows subdirectories to save the information you need. You may set hidden attribute of the file so regular users can't "see" it with default file explorer settings.

Posting Permissions

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



Click Here to Expand Forum to Full Width