Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Windows Installer

Windows Installer

Scheduled Pinned Locked Moved Windows Forms
help
2 Posts 2 Posters 11 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pratik Vasant Shah
    wrote on last edited by
    #1

    Hi, I am creating a Windows Installer wherein I have added a "RegisterUser" dialog to the installer interface. However, I would like this "RegisterUser" dialog only when it is being freshly installed on a machine. For eg. If I am installing the software on machine A for the first time, then RegisterUser dialog will be displayed on the screen. After that if i uninstall the software from that machine and again re-install the same , then the "RegisterUser" dialog should not be displayed again, since the software was already previously installed on that machine(A) Please Help!!!.

    Thanking you in Advance Kind Regards Pratik Shah

    R 1 Reply Last reply
    0
    • P Pratik Vasant Shah

      Hi, I am creating a Windows Installer wherein I have added a "RegisterUser" dialog to the installer interface. However, I would like this "RegisterUser" dialog only when it is being freshly installed on a machine. For eg. If I am installing the software on machine A for the first time, then RegisterUser dialog will be displayed on the screen. After that if i uninstall the software from that machine and again re-install the same , then the "RegisterUser" dialog should not be displayed again, since the software was already previously installed on that machine(A) Please Help!!!.

      Thanking you in Advance Kind Regards Pratik Shah

      R Offline
      R Offline
      RabidHamster
      wrote on last edited by
      #2

      I would recommend creating your own custom action. Create a new assembly containing your own user registration form and a class derived from System.Configuration.Install.Installer. Handle the AfterInstall event and display your own form: // MyInstaller is derived from the class 'Installer'. MyInstaller() : base() {     AfterInstall += new InstallEventHandler(AfterInstallEventHandler); } private void AfterInstallEventHandler(object sender, InstallEventArgs e) {     // Show the user registration form.     if (NewUser())         new MyUserRegistrationForm().Show(); } private bool NewUser() {     // Determine whether this is a clean install. }

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups