No announcement yet.

Using File.Run to open application to open a file

  • Filter
  • Time
  • Show
Clear All
new posts

  • artistscope
    Apparently I asked the same question here about 17 years ago. I finally got it work...

    File.Run(SessionVar.Expand("%AppFolder%\\Player.ex e"), SessionVar.Expand(""%AppFolder%\\Video.mp4""), "", SW_SHOWNORMAL, false);

    Well I haven't been on it full time. This is for a project that was ready to release 10 years ago... might be another 3 years yet :-)

    Leave a comment:

  • Using File.Run to open application to open a file

    Upon close of the installer, I want the installer to run the application just installed and open a file within its own folder. For example, I use this code...

    File.Run(SessionVar.Expand("%AppFolder%").."\\Play er.exe", "\\video.mp4", "", SW_SHOWNORMAL, false);

    and it cannot find the video file. And if I use it like this...

    File.Run(SessionVar.Expand("%AppFolder%").."\\Play er.exe", SessionVar.Expand("%AppFolder%").."\\video.mp4", "", SW_SHOWNORMAL, false);

    it causes a looping error.