开发者

Opening a browser window after a visual studio-created setup file finishes installing

I'm making a setup file (.msi) using a visual studio setup project. Currently, I need to register a component -a BHO- along with the main installation and open a browser window to a site that requires t开发者_C百科his component in order to work as intended.

So far, I've managed to install the component by registering it with the "vsdrfCOM" option on the component file properties.

As for opening the browser window, I created an installation class which overrides the OnAfterInstall method and creates a browser window, opening it on said site. Then I added this class on my project as an "Install" custom action. Below is the code I'm using.

Process.Start("IExplore.exe", url);

The problem I'm having is that right after the progression bar form, the browser window opened by the setup file doesn't load the BHO. Yet, if I execute IExplorer.exe from anywhere else, even before the browser window shows up via setup, it identifies the BHO just fine. Any ideas of why is this happening?

Thanks in advance.


Override the Commit method.


System.Diagnostics.Process.Start("http://localhost/[your_site]/Default.aspx");

But I don't know how to get [your_site] in Installer.Commit Method.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜