The WUBI install uses parts of Windows during installation, at every boot, and for uninstallation. If you format C: and reinstall Windows, you have to install Ubuntu again, like any Windows program.
If you used the default location for WUBI install, then Ubuntu was installed in C: and is now gone. If you installed Ubuntu using WUBI in E: then the E: drive should be still accessible from Windows.
- Check that
root.disk file in E:\Ubuntu\Disks still exists. If
this file does not exist, nothing can be done.
- Copy
root.disk to another folder such as "E:\My Important Staff"
- Install Ubuntu using WUBI again in E:. just as you had done before.
This will overwrite
E:\Ubuntu. Replace the root.disk in
E:\Ubuntu\Disks using the one you had copied in "E:\My Important
Staff".
- Now reboot your computer. You should be able to boot to Ubuntu and
get your data back.
See Formatting C:/ in Windows while ubuntu is installed in D:/
WUBI installation has some limitations.