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. C#
  4. Custom Installer using vb.net or c#.net - need help

Custom Installer using vb.net or c#.net - need help

Scheduled Pinned Locked Moved C#
csharphelpquestionworkspace
2 Posts 1 Posters 0 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.
  • S Offline
    S Offline
    shw 234
    wrote on last edited by
    #1

    I am trying to create a password protected installer using c#.net. I have added a textbox(A) type to setup. In my installer class I am verifying this input text (which is supposed to be the password) in OnBeforeInstall() method. What I did is just through an exception from this method so that installation will not take place. However this code fragment is not effective when I installed in my machine. Can somebody advise on the correct usage model? Here is my code segment: >>> Protected Overrides Sub OnBeforeInstall(ByVal stateSaver As System.Collections.IDictionary) Dim myInputCompanyName As String = Me.Context.Parameters.Item("Message") MessageBox.Show(myInputCompanyName) Try Throw New Exception("Invalid Company Name or Key") Catch ex As Exception End Try End Sub >>> Thanks in advance.

    S 1 Reply Last reply
    0
    • S shw 234

      I am trying to create a password protected installer using c#.net. I have added a textbox(A) type to setup. In my installer class I am verifying this input text (which is supposed to be the password) in OnBeforeInstall() method. What I did is just through an exception from this method so that installation will not take place. However this code fragment is not effective when I installed in my machine. Can somebody advise on the correct usage model? Here is my code segment: >>> Protected Overrides Sub OnBeforeInstall(ByVal stateSaver As System.Collections.IDictionary) Dim myInputCompanyName As String = Me.Context.Parameters.Item("Message") MessageBox.Show(myInputCompanyName) Try Throw New Exception("Invalid Company Name or Key") Catch ex As Exception End Try End Sub >>> Thanks in advance.

      S Offline
      S Offline
      shw 234
      wrote on last edited by
      #2

      Looking for urget response... Thanks

      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