Oscar Mederos
Oscar Mederos

Reputation: 29863

Execute an script/application after installing (using VS Setup Project)

I need to execute a Console Application script after installing my application. Depending on the Windows version, it adds some data to the Registry.

How can I do this using a Visual Studio Setup Project?

Note: I'm saying after because I read in How to execute custom action before installing files when using VS's Setup Project? that it isn't possible to do it before, but it doesn't really matter in my case.

Upvotes: 3

Views: 6088

Answers (1)

Cosmin
Cosmin

Reputation: 21436

Simply add the custom action under Install node. I don't really understand what you mean by "console application script", but if you mean a BAT file you can write a custom EXE which launches it through ShellExecute.

If you are using a DLL, make sure that "InstallerClass" custom action property is set correctly:

  • False for Win32 DLLs
  • True for .NET Installer Class actions

Upvotes: 4

Related Questions