Skip to first unread message
Assigned to j...@mit.edu by steve....@gmail.com

David Broadley

unread,
Nov 19, 2015, 10:23:59 AM11/19/15
to MIT App Inventor Forum

Hi there,

I have come across an issue when you run the hard reset process but the emulator is not factory reset.
I was watching the AIStarter windows and noticed the following error in the list "The file path specified does not exist" 
Looking in "C:\.appinventor\emulator\" the Appinventor-emulator-data file is not deleted.
I went through and debugged the .bat file "C:\Program Files (x86)\AppInventor\commands-for-Appinventor\reset-emulator.bat" which seems to be the file responsible for running the factory reset.

I have found that in our setup line 31 of the code seems to be incorrect set APPINVDIR=%~s1\.appinventor this in our environment points to c:\\.appinventor
We edited this line to the following "APPINVDIR=%~s1.appinventor" now the variable points to the correct folder the file is successfully deleted and the emulator returns to factory default.

Hopefully this will help some other people as this had me scratching my head for some time!

I am wondering if anyone from appinventor can confirm if this is just our environment or is it a mistake in the latest Windows appinventor package?

Thanks
David

SteveJG

unread,
Nov 19, 2015, 1:31:16 PM11/19/15
to MIT App Inventor Forum
Someone from MIT will look at this David.  Thank you for the post.

Usually when the file path for the emulator cannot be found, it is a result of installing the software without using Administrative Privlidges on Win boxes.   Sometimes, when the installer is only left clicked (clicked on the exe file); the tool does not deploy properly and I know that that can be 'fixed' by uninstalling the aiStarter, the re-installing using a  right - click.   Right clicking forces a pop up to appear requiring the user to install as Admin.   We have had instances of users left clicking and having issues where AI cannot find starter or the emulator.  Right clicking on install 'fixes' the issue  for those users.   Perhaps what you observe is related.

Regards,
Steve
Reply all
Reply to author
Forward
0 new messages