Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9138941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:19:20+00:00 2026-06-17T09:19:20+00:00

I have made an installer which contains the exe and dlls, made in using

  • 0

I have made an installer which contains the exe and dlls, made in using Visual studio the thing is can i add some code to it?

example when it install i just want to run 3-4 lines of code.

1- Get mac address add to database, with a unique key.

And similarly on uninstall remove the mac address from the database .

Is this possible in this current scenario using the default setup project?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:19:21+00:00Added an answer on June 17, 2026 at 9:19 am

    You will need to use a CustomAction for your installer. With this you can run a program, script, write a registry key, or whatever. Here’s a simple example using a custom installer class to show a message during the installation (in VB.NET but easily translatable):

    Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary)
      MyBase.Install(stateSaver)
      Dim myInput As String = Me.Context.Parameters.Item("Message")
      If myInput Is Nothing Then
        myInput = "There was no message specified"
      End If
      MsgBox(myInput)
    End Sub
    

    You would need to follow the steps in the link to fully reproduce the sample.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a application in C# using visual studio, I have made a
I have been made a windows service.in which i have been added project installer.in
i'm writing an installer using py2exe which needs to run in admin to have
i have just completed a c# program version 1.0.0.0 and made an installer using
Say I have a component which is made up of a bunch of DLLs.
I have made a project in Visual studio 10 that uses Mysql database and
I have a Setup Project which uses a System.Configuration.Install.Installer Class forhandling some custom actions.
I using a Visual Studio Installer Project to distribute my WPF app. I need
Made an application which targets .net 4 client. Created an installer using Inno Setup
I have an Android app project that contains all of my code. I've made

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.