Batch logic is here to save the day... First an advertisement for batch logic:
Ok, now that that is out of the way, here are the instructions.Having problems with bugs? Bandage them with all new patented "Batch Logic"! Yes folks indeed you won't ever believe how you managed without it. The moment you bandage your bugs with "Batch Logic" you will be calmed by a sense of self worth and well being! Pick up your copy of Patented "Batch Logic" today!
Disclaimer: Logic sold separately. Do not attempt to operate machinery while under the influence of "Batch Logic". Side effects may include but are not limited to, irritable bowell syndrome, unexplained fits of rage, the overwhelming urge to slap your mother in law, strange sexual urges, erectile dysfunction, oily anal discharge. Please use "Batch Logic" responsibly!
Put this code in a text file, and name it, grantaccess.bat (make sure that extensions in windows explorer are displayed so the file isn't actually named grantaccess.bat.txt)
Code: Select all
ICACLS "%cd%" /grant Everyone:F /T
In your installer, add this file to the spring directory. In your installer, once all of the files have been extracted, set your installer to run this file before the installer finishes.
VIOLA! Your install directory is now fully read/write accessible inside program files!
This is how steam, desura, and impulse do it (although their way is a lot more elegant (the process is different but the result is identical), but whatever).