Answered custom action to setup.exe

  • Thursday, March 01, 2012 10:11 AM
     
     

    how can i make the setup file to do whatever i want it to do via VB 2010 ultimate or anything else?
    Let me explain.

    I want the setup file when runs for first time to get the processor ID of that pc.

    Then i want it to save that ID. When i run it again in a different pc i want it to get the processor ID and compare it with the one that got when it runned for first time.If its the same it will run again.If its not the same then it wont run. Thats what i want it to do .

    Sorry for my english.Appreciate your help!

All Replies

  • Friday, March 02, 2012 12:40 PM
     
     

    Hi Dravener, this forum is meant for Visual Studio setup and installation issues, not programming. Here are the links below that you should post your question in order for you to get better help. You did not specify which programming language you want to do this in, so I will provide links for the VB/C#/C++ general forums.

    VB - http://social.msdn.microsoft.com/Forums/en/vbgeneral/threads

    C# - http://social.msdn.microsoft.com/Forums/en/csharpgeneral/threads

    C++ - http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/threads

  • Monday, March 05, 2012 8:28 PM
    Moderator
     
     Answered

    You can't do that. You're saying that want to get the processor id on one system when somebody installs your app and save it. Ok, it's saved.  That's easy. Somebody else installs your setup on another system and you want that new setup to magically locate the other place where it was installed and go into the PC and find your data. That's not going to happen, so forget setup. In your app, get the processor id or whatever else you think will identify the user. Upload it to a web site somewhere or call a web service that checks a database for the value you're using. If it already exists, tell the user they can't run the app. Otherwise record it in the database at the web server. Everywhere your app runs, do the same thing.


    Phil Wilson