Hi.

(Apologies if this is a double post. It seems I first sent this from
an unregistered mail account and it never turned up in the archives,
so I'm retrying from the right account again)

I have the following scenario: I know that the customer is going to
place some stuff of my app on a NAS attached as E:\.

I don't have a drive with that letter on my dev machines (I do have a
test machine for that, but ..).

The goal for me is to predefine the path for this part of the
application to "E:\Some\Path" (it can be changed if installed
interactively), but that
fails with a really, really weird "Invalid short name" error that
seems to be a rather strange way to say "That's an invalid path" in my
custom action
that sets the DATADIR directory to a property with the value above.

So I guess my whole point is this: Is there a way, short of adding a
custom action myself, to define the property/directory to
"E:\Something" if "E:\"
exists or "C:\" otherwise?

Thanks in advance.

Relevant (as far as I can tell) snippets from the wxs:

<Property Id="DATAPATH" Secure="yes" Value="E:\Data\Config" />

...

<CustomAction Id="DefineDataDir" Directory="DATADIR"
Value="[DATAPATH]" Execute="immediate" />

<InstallUISequence>
        <Custom Action="DefineDataDir" After="CostFinalize" />
</InstallUISequence>

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to