Dear Fred
In order to run Spider Basic 2.51 and create Android App, I have to define at the same time in System Environment Variables
ANDROID_HOME=c:\Program Files(x86)\SpiderBasic\Android\android\sdk
ANDROID_SDK_ROOT=c:\Program Files(x86)\Spider Basic\Android\android\sdk
BUT I have already installed another software which need to use it.
What to do?
Thanks in Advance.
How to reset environment variables from inside Spider Basic's Code?
Re: How to reset environment variables from inside Spider Basic's Code?
Hy you do that ? Sb do it himself no need for this
Christos
Re: How to reset environment variables from inside Spider Basic's Code?
I have to do it because in other case it does not run
I need to have
ANDROID_HOME=C:\Users\Donal\AppData\Local\Android\Sdk\
ANDROID_SDK_ROOT=C:\Users\Donal\AppData\Local\Android\Sdk\
in order other software to run
But If I have that, SB does not run
It runs if I have
ANDROID_HOME=c:\Program Files(x86)\SpiderBasic\Android\android\sdk
ANDROID_SDK_ROOT=c:\Program Files(x86)\Spider Basic\Android\android\sdk
So, my question is how to do it to work in both worlds?
I need to have
ANDROID_HOME=C:\Users\Donal\AppData\Local\Android\Sdk\
ANDROID_SDK_ROOT=C:\Users\Donal\AppData\Local\Android\Sdk\
in order other software to run
But If I have that, SB does not run
It runs if I have
ANDROID_HOME=c:\Program Files(x86)\SpiderBasic\Android\android\sdk
ANDROID_SDK_ROOT=c:\Program Files(x86)\Spider Basic\Android\android\sdk
So, my question is how to do it to work in both worlds?
Re: How to reset environment variables from inside Spider Basic's Code?
Make two reg files that will change the variables in the registry key "HKEY_CURRENT_USER\Environment". You can run the batch file by running the reg file and then the IDE. And also add a tool to the IDE, which upon completion will make changes to the registry. The IDE allows you to choose when to run the tool. You will have to make an effort to do this. In this case, you will not be able to use both tools at the same time.
Re: How to reset environment variables from inside Spider Basic's Code?
Thank You. I got it. It is a good solution to locate ONLY the specific two variables and do what you said.AZJIO wrote: Thu Feb 01, 2024 5:19 am Make two reg files that will change the variables in the registry key "HKEY_CURRENT_USER\Environment". You can run the batch file by running the reg file and then the IDE. And also add a tool to the IDE, which upon completion will make changes to the registry. The IDE allows you to choose when to run the tool. You will have to make an effort to do this. In this case, you will not be able to use both tools at the same time.
I wonder if in a future version except of JDK directory, it could be added a field in spider basic for SDK directory to be completed.