.net - C# Cannot write to Application.ExecutablePath, some boxes i can some i cannot? uninstall from this -
so have been writing to environment.specialfolder.applicationdata this data file, upon uninstall needs deleted. using innos setup build installer. works great me. data file hangs out in above path , cause when used try write to application.executablepath certain boxes tested on throw nasty error @ me trying write data there. research , somehow not writable , how came environment.specialfolder.applicationdata that why data file resides in specialfolder.applicationdata. trouble if user uninstalls , reinstalls need file gone. might short coming of knowledge of innos cannot figure out how know file tell innos that. so thought had clever solution: innos can run file when done uninstalling, had program create file "uninstalldata.bat" says: del "the file in special folder application data path" and wrote out drumroll application.executablepath (yes while in development , had forgot was't doable.) so of course square one, need write f...