Verb/@Target is only relevant for non-Advertised verbs. If
Extension/@Advertise is 'no', WiX generates Registry table entries rather
than Verb table entries. There is no Target column in the Verb table.

I note that the WiX source code here (src\wix\Compiler.cs, line 15928 in
v2.0.4415.0) simply concatenates the Verb/@Target and Verb/@Argument, with a
space in between. It may well have problems if you use a long path with
spaces in it. This might be considered a bug (I'm not sure if Windows
Installer would properly quote a [#TargetFileId] expansion). You could
always quote it yourself, if necessary, by using single quotes to delimit
the attribute value, then include literal double quotes, like so:

<Verb Target='"[#TargetFileId]"' />

WiX v3.0 corrects this issue by replacing the Verb/@Target attribute with
two new attributes, Verb/@TargetFile and Verb/@TargetProperty. For
TargetFile it uses the long path.

-- 
Mike Dimmick

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Arnette, Bill
Sent: 22 November 2006 19:10
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] <Verb> question

Why does Wix.chm say this about Verb/@Target?
----
Target file to be executed for the verb. The value should be a formatted
Property to refer to the *short path to the file*, for example:
[!TargetFileId]. Only valid for non-Advertised verbs.
----

I see no such restriction in the Platform SDK docs about the Verb table
Target column referring to the short path of a file.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to