Here is some sample JS code - should be able to convert to .NET fairly easily - use async/await in place of the Promises.
WinJS.Application.local.exists('somedata.json').done(
function (found) {
if (!found) {
return copyStartData('somedata.json');
}
}
);
function copyStartData(copyfile) {
return Windows.ApplicationModel.Package.current.installedLocation.getFolderAsync('startdata').then(
function (startData) {
return startData.getFileAsync(copyfile).then(
function (file) {
if (file) {
return file.copyAsync(WinJS.Application.local.folder);
}
});
});
}
The function takes the name of a file you want to copy from your install package to the users local machine.