Add custom action to VS 2008 installation project

I am using VS 2008 and I created the application and installation file using C #. The installation file contains only the standard configuration interfaces provided by visual studio 2008. I need to check the Windows registry and get the folder path and copy some files to the application folder during installation. I just need to add custom code during installation. Standard interfaces.

  • Welcome
  • Installation folder
  • Confirm Installation
  • Progress
  • Done. I need to.
  • Welcome
  • Installation folder
  • Confirm Installation
  • Progress
  • MY ACTION ACTION INTERFACE
  • This is done

MY Custom Action does the action below.

Example: Get the path to the registry.

object test=  Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Kofax Image Products\\Ascent Capture\\3.0"
                ,"ExePath",null)

If(test!=null)
{
///Copy some files to my application folder from test path.
}

How can i do this?

+3
source share
2 answers

( )

, .

, .

+2

, . "" .

0

Source: https://habr.com/ru/post/1792983/


All Articles