开发者

Add Custom action to VS 2008 Setup project

开发者 https://www.devze.com 2023-02-11 15:03 出处:网络
Im using VS 2008 and I have created an application and Setup file using C#. The setup file contain only standard setup interfaces provide by visual studio 2008. I need to check windows registry and ge

Im using VS 2008 and I have created an application and Setup file using C#. The setup file contain only standard setup interfaces provide by visual studio 2008. I need to check windows registry and get some folder path and copy some files to my application folder while installation. Simply I need to add custom code while installation. Standard interfaces.

  1. Welcome
  2. Installation Folder
  3. Confirm Installation
  4. Progress
  5. Finished I need.
  6. Welcome
  7. Installation Folder
  8. Confirm Installation
  9. Progress
  10. MY Custom ACTION INTERFACE
  11. Finished

MY Custom Action performs the below action.

Ex: Get registry path.

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

I开发者_如何学Gof(test!=null)
{
///Copy some files to my application folder from test path.
}

How can I do that?


You can always create your own custom action (based on existing panels for the UI)

Take a look at Scott's post entry on the subject

you can find there how to create a Setup project and add a custom action to it.

I hope it helps.


You could add a custom action, although you wouldn't have an interface in the setup for it. It is "just" code.

0

精彩评论

暂无评论...
验证码 换一张
取 消