ODIN is an internal tool from Samsung. It can be used to recover devices that have been bricked, or to update stock firmware. The problem is that the drivers for the Galaxy Ace S5830 don't seem to play nicely with Windows 10, and some registry tweaks are needed for the drivers to install correctly. Thanks to Andrew from The 8-bit Mammoth, his guide didn't quite work for me, but his tutorial was very helpful in finding what to add to the registry and where. Check out his blog post here, maybe it'll work for you, but it didn't for me.
This guide is intended for the S5830. You may have a phone that looks the same, but the model is S5830i. The CPU is completely different, and a ROM for the S5830 will brick the S5830i. The drivers should be the same, you may need to use a different registry entry though. Do not use the .ops file downloaded from here though, as you will really mess up your phone if you do that. S5830i ROM's can be found here.
Download the files below:
Download and install the Samsung USB drivers. Extract the ODIN .zip to your desktop. Turn off your phone, then put it into download mode by pressing Power, Home, and Vol-. When the words "Downloading..." appear on the screen , let go of the buttons. Connect your phone to your PC, it should come up with an error message that the device can't be identified. You can unplug the device now, you have to do this so that the registry entry gets generated, the entry that we will edit below.
Open up the Start menu, and type in "regedit". Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\04E866010100. Right click on the empty space to the right, and add three binary values. These will be named "SkipBOSDescriptorQuery", "osvc", and "SkipContainerIdQuery". Double click on the "SkipBOSDescriptorQuery", and add the binary values "01 00 00 00". Do the same for "osvc", this time adding the values "00 00". Finally, double click on "SkipContainerIdQuery" and add the values "01 00 00 00". Your registry entry should look like this in the end. Reboot your system.
Plug your phone into your PC again, it should now show up in Device Manager as a "Samsung USB Composite Device" and have no warnings next to it. You can now start up the ODIN software, your phone will show up as a COM port. Make sure the options "One Package", "Auto Reboot", and "Protect OPS" are selected on the left side. Select the "cooper_v1.0.ops" file from the ODIN .zip, and put it into the OPS section. Select your firmware file, and put it into the One Package section. Pressing Start will start the flashing process, and in a few minutes your device will reset with the new firmware.
If you have any problems, feel free to send me an email at firstname.lastname@example.org.