0

I'm creating an installer of sorts. It's a C# application that upgrades prerequisites on a system before a new ClickOnce application is installed. The final step is to reboot the system and I'd like it to open up the ClickOnce application's deployment URL after it restarts. I tried adding the following to the CurrentUser RunOnce registry key, but IE didn't start up:

start iexplore http://myInstallationUrl.com/publish.htm

Can anyone explain why this doesn't work and offer an approach that will?

xr280xr
  • 12,621
  • 7
  • 81
  • 125
  • ClickOnce should manage the dependencies for you... No? – tster Apr 07 '11 at 13:18
  • 1
    Try `start http://myInstallationUrl.com/publish.htm` (it should start the default browser). Or `iexplore http://myInstallationUrl.com/publish.htm` to open it in IE. – Alexey Ivanov Apr 08 '11 at 10:52

1 Answers1

0

Another user had answered this question but it's now gone so I'm filling it back in. Thanks to him/her and Alexey for providing the answer:

What worked for me was adding "iexplore http://myInstallationUrl.com/publish.htm". It just didn't like start + iexplore. In my case it was safe to assume the user would have internet explorer installed. I haven't tried "start http://myInstallationUrl.com/publish.htm" to verify it works but being able to open the URL in the default browser also seems valuable.

xr280xr
  • 12,621
  • 7
  • 81
  • 125