views:

560

answers:

1

How can I create a shortcut using Wix with a target of "%UserProfile%\Local Settings\Application Data\Foo\Logs"?

<Shortcut Id="LogsStartMenuShortcut"
  Name="Logs"
  Target="%UserProfile%\Local Settings\Application Data\FalconMobileServer\"
  Icon="icon.ico"/>

It doesn't like the % signs in the target.

+5  A: 

Check out this site listing all the MSI-predefined directories - I would think you should find the one you're looking for in there somewhere :-)

This one here possibly?

LocalAppDataFolder Full path to the directory that serves as a data repository for local (non-roaming) applications.

Cheers, Marc

marc_s

related questions