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?
You will need to use a
CustomActionfor 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):You would need to follow the steps in the link to fully reproduce the sample.