I want to pass the complete file path to my application when the user clicks a file with extension xy2. Since it is a path, i want the path to be formatted as well.

My code is failing with an unknown variable message. Please let me know what i am missing here.

<associatewindowsfileextension> <extensions>.xy2</extensions> <friendlyname>XYZ file</friendlyname> <icon>${installdir}/icon.ico</icon> <mimetype></mimetype> <progid>XYZ generated file</progid> <commandlist> <command> <makedefault>0</makedefault> <runprogram>${installdir}/demo.bat</runprogram> <runprogramarguments>-path="${%L.dos.unix.escape_backslashes}"</runprogramarguments> <verb>open</verb> </command> </commandlist> </associatewindowsfileextension>

asked 08 May '12, 14:00

Dracu's gravatar image

accept rate: 0%

It is not possible to use suffixes to format values in this way.

The reason it fails is that InstallBuilder tries to evaluate variable %L, which does not exist. Please note that the %L is substituted at a time user clicks on a file with .xy2 extension, not at installation time.


answered 09 May '12, 05:06

wojciechka's gravatar image

wojciechka ♦♦
accept rate: 26%

Thanks for the clarification

(09 May '12, 12:12) Dracu
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](http://url.com/ "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: 08 May '12, 14:00

Seen: 1,240 times

Last updated: 09 May '12, 12:12

Related questions