Backup IoT core image - c#

I know that I can backup Raspbian image using Win32 Disk imager, but seems Win32 Disk imager is not working for Windows IoT core, is there any better way to backup installed image file of Windows IoT core ?

I think the tool you need here is Windows Imaging and Configuration Designer.
Main article: https://msdn.microsoft.com/en-us/library/windows/hardware/dn916113(v=vs.85).aspx
Getting started: https://msdn.microsoft.com/en-us/library/windows/hardware/dn916112(v=vs.85).aspx
With this you can create a base image that can be reused. It might not do exactly what you need when creating a backup of something you've already created, but it will allow you to customise a new image from scratch.
Here's the download for the Windows Assessment and Deployment Kit which includes ICD: https://developer.microsoft.com/en-us/windows/hardware/windows-assessment-deployment-kit
Note; you'll need local admin rights to do most of this. Just in case you aren't already.
Hope this helps.

Related

access windows 10 mobile root files and folders

I have a Windows 10 universal app that is running on a Windows 10 Mobile device. I noticed from the Windows 10 Mobile device, it does have a file explorer but it limits you to only see certain "Known Folders" such as music, documents, downloads, etc... and that is all.
Furthermore, when I plug the device into my development machine via USB, I can browse the device but again, only the Known Folders above.
In my app, I am writing to a log file and that log file is stored to LocalStorage, under a folder for my app name, for example:
var dataPath = ApplicationData.Current.LocalFolder.Path;
I simply need to browse MY LOG FILE, that MY APP CREATES, in MY APP FOLDER. I read about a ton of, in my opinion hacks, to get access to this file/folder. For example, there are some third party applications that still mainly claim to target Windows Phone 8/8.1 but will still technically work for 10 such as:
Windows Phone Power Tools
Isolated storage spy
etc....
Then I also read articles on how to use a file in Pictures (or voice recording) and go to file properties to then gain access to the root or to create a root shortcut on the development machine and copy it to the mobile device, however, these are typically a year or more old and no longer work on my device (I suspect MS patched these hacks).
So, all that said, I would like to see a good way to access the root drive for development, or at least my app folder in the LocalFolder so I can access my files (such as logs or the sqlite db file). Maybe there is a way already but my google searches haven't turned anything up just yet.
Thanks!
As you've known, we can use some third party tools like IsoStoreSpy or Windows Phone Power Tools to access Isolated Storage. Although they are designed for Windows Phone 8 & 8.1, but they can also be used for Windows 10 Mobile. With these two tools, we can access LocalFolder, TemporaryFolder and RoamingFolder. For more info, see similar question: Accessing storage of simulator/device while debugging.
Besides these third party tools, there is also build-in support in Windows 10. We can use App File Explorer to view and manipulate files stored by your sideloaded apps. This is a new, cross-platform version of the Isolated Storage Explorer from Windows Phone 8.1. This tool should be able to work no matter your application is deployed in Debug mode or Release mode. But please note that this is a new tool added to Windows Device Portal in the Anniversary Update.
To use this feature, we must enable Device discovery and Device Portal. Then we can access application storage in web browser like following:
For more info, please see Device Portal for Mobile and Using the App File Explorer to see your app data. Also the similar question: Windows 10 Mobile: how can I see inside on my app folder? might be helpful.
I had a similar problem to solve few months back. I ended up doing two things:
I've implemented a 'Send Logs' button in settings that would upload logs to a ftp server. Actually it was a bit more than that, all installations of this app were managed by a central server and there was 'Get logs' button on the server side that would send request via push channel to the device to get the logs.
Got my hands on a Interop-unlocked device that I would use if the app was in a state that would make first option not possible.

How to connect an xbox360 controller to a desktop app (C#, Windows 10)

I am looking to write a simple app which accepts input from an Xbox 360 controller. I am developing in C# and my current dev environment is a windows 10 machine.
I've attempted to install XNA studio 4.0, and got a system notification saying that it isn't supported. When I clicked on the notification for more info, I was redirected to a webpage which started a Windows Live Gaming installer download.
This seems to rule out XInput.
I thought my alternative was to use the Windows.Gaming.Input namespace, but it seems to be limited to metro apps.
I don't know what are my other alternatives.
What is the correct library for me to be using, and where do I download it from?
XINPUT will read the Xbox One controller with the drivers currently on Windows Update, but you will be unable to access the 'impulse trigger motors' using that API. For C# usage, look at SharpDX or SlimDX.
You can use Windows Runtime APIs from desktop apps including Windows.Gaming.Input. They key is you have to initialize WinRT with Windows::Foundation::Initialize.
See DirectX Tool Kit: Now with GamePads. If you were writing in C++, I'd also recommend looking at the DirectX Tool Kit GamePad class.

Downloading a file from server to Windows phone

I have some xmls which I want to put on server and in my windows phone, I will be downloading the these files and then program will do its calculations.But I don't want to put the files on server, instead of that I want to use Dropbox/Skydrive or any other to download these files. Is it good to go, or it will have too many overheads?
Or please suggest where I should store the files so later I can download the files to use under my windows phone application.
Dropbox officially haven't release SDK for windows phone yet, you can still use it using SharpBox project, click here.
Skydrive is better option, specially for windows phone application as both runs on same platform and provide better features. Response time of Skydrive on windows phone should be faster than Dropbox.

Windows virtual disk for remote web service

I need to implement a Windows Virtual Disk that is visible as a separate disk device in Windows Explorer and transfer all files/dir transferred forth and back to a remote WebService - sth like a DropBox.
Do I have to implement/use a kernel driver SDK? Or is it possoible to use only shell extensions? What I need is to intercept all file/dir operations on that disk and map them to a corresponding WebService calls (file creation/deletion/move/edit and data transfer).
Thanks
You will need a combination of kernel-mode driver and Windows Service/Application for that:
http://dokan-dev.net/en/ (free)
http://www.eldos.com/cbfs/ (commercial)
Windows 7+ allows you to mount a VHD as a disk. The API is described in this MSDN article -The Virtual Disk API In Windows 7.
I don't know if it's possible with just shell extensions, but scanning the article I see the API AttachVirtualDisk, and you should be able to P/Invoke that.
Have you considered WebDAV? This wouldn't require you to install anything on the client, since the functionality is integrated into Windows (I believe since XP). It is using REST, so you could even implement it yourself or look for a solution on codeplex. If it is just about remote storage, there is an IIS addon you can use for that (I believe it is build for IIS 7).
You can go with namespace extensions, this is what DropBox does. Wuala and some other cloud storage provides, on the other hand, use our Callback File System to create a virtual disk.

Better way to deploy to Windows Mobile Device

I have been working on a Windows Mobile app for a little while now (havnt done much work with mobile before) and i have been having a problem when deploying to my mobile, at the moment i can only run the application once then if i want to run it again i have to do a soft reset.
Maybe im deploying wrong? (pretty sure i am actually, im pretty much just copying the .exe file across and running it.)
What is a better way for me to deploy my application so that it can run more than once per reset?
At the moment when i try to run it for the 2nd time on my mobile nothing at all happens (yet it works fine using the Windows Mobile 6.1 emulator)
CAB files are the preferred way to deploy Windows Mobile applications. Check out this MSDN article:
CAB Files for Delivering Windows Mobile Applications
I've had some success with putting a CAB file on a web server and simply http'ing to it to download and install the CAB.

Categories