Does anyone know if it is possible to use file:/// URIs with LaunchBrowser? It seems to work on Linux, but on Windows nothing happens. The install logfile indicates it launched the correct URI, but no browser is ever opened. Regular http urls work fine.

Any hints to get this working?

asked 13 Feb '13, 21:18

blt04's gravatar image

accept rate: 0%

The launchBrowser action may not work with file:// protocol. The best way is to use OS-specific commands to open the file.

For example to open page.html in ${installdir}:

<runProgram> <program>cmd</program> <programArguments>/c start page.html</programArguments> <workingDirectory>${installdir}</workingDirectory> <ruleList> <platformTest> <type>windows</type> </platformTest> </ruleList> </runProgram> <runProgram> <program>xdg-open</program> <programArguments>./page.html</programArguments> <workingDirectory>${installdir}</workingDirectory> <ruleList> <platformTest> <type>linux</type> </platformTest> </ruleList> </runProgram> <runProgram> <program>open</program> <programArguments>page.html</programArguments> <workingDirectory>${installdir}</workingDirectory> <ruleList> <platformTest> <type>osx</type> </platformTest> </ruleList> </runProgram>


answered 14 Feb '13, 01:26

wojciechka's gravatar image

wojciechka ♦♦
accept rate: 26%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 13 Feb '13, 21:18

Seen: 824 times

Last updated: 14 Feb '13, 01:26