How to run executable at end of Setup Project?

后端 未结 7 1052
眼角桃花
眼角桃花 2021-01-07 18:22

I have a Visual Studio Setup Project that I use to install a fairly simple WinForms application. At the end of the install I have a custom user interface page that shows a s

相关标签:
7条回答
  • 2021-01-07 18:51

    You also can use custom actions

    0 讨论(0)
  • I've done this for internal apps by creating a VB Script harness that launches the setup executable, waits for it to close, and then launches the second program.

    You could also accomplish this with a little more polish using a few Win API calls in a C executable.

    0 讨论(0)
  • 2021-01-07 18:57

    I managed it by doing invoking the Main method the assembly using the following line:

    (typeof(ClassWithinAssemblyToExecute)).Assembly.EntryPoint.Invoke(null, new Object[] {} )
    
    0 讨论(0)
  • 2021-01-07 19:01

    You can use MSILAUNCH (though I've only got it to work with MSICREATE).

    http://www.cornerhouse.ca/en/msi.html

    0 讨论(0)
  • 2021-01-07 19:08

    you can do it by custom installer. just add installer class and there u will see many event like after install, before install. just hook up after install and from there run ur exe by process class. i would suggest u google to find more about custom installer. here is one good link that might help u http://www.codeproject.com/Articles/19560/Launching-Your-Application-After-Install-using-Vis

    thanks

    0 讨论(0)
  • 2021-01-07 19:13

    I've just found a very easy way which does not require external tools. You only have to add a class file to the main project and a custom action to the setup project.

    http://www.codeproject.com/KB/install/Installation.aspx

    0 讨论(0)
提交回复
热议问题