I building an installer with visual studio. To include my files I use Heatdirectory in the wixproj-file.

Heat is including all the files (including the hidden files).
That's what I want.

But: When files get copied to the target-system all of them are marked as visible. Is there any option to keep their state? I could not find anything.

greez


Question: PHP getting cover image from Google Books API
Answer: sounds like you want something like this

$dat = file_get_contents('https://www.googleapis.com/books/v1/volumes/H1w9AwAAQBAJ');

$arr = json_decode($dat,1);

$info = $arr['volumeInfo'];

$imagedata = file_get_contents($info['imageLinks']['thumbnail']);

file_put_contents('/images/thumb.jpg', $imagedata);

// just to see it 
$img = imagecreatefromstring($imagedata);
header('Content-Type: image/jpg');
imagejpeg($img);
imagedestroy($img);