1. a dumb question about installing OEu 4?

Although I'd like to take refuge in the observation, "the only dumb question is the question not asked", I hope this is not the exception.

Is there a way to install V4 simply, AND be able to very easily switch back and forth between it and whatever version of Euphoria a person is currently running on their system?

By "very easily" I mean a program that can be run to completely switch between old and new Euphoria & vice-versa.

Dan

new topic     » topic index » view message » categorize

2. Re: a dumb question about installing OEu 4?

DanM said...

Although I'd like to take refuge in the observation, "the only dumb question is the question not asked", I hope this is not the exception.

Is there a way to install V4 simply, AND be able to very easily switch back and forth between it and whatever version of Euphoria a person is currently running on their system?

By "very easily" I mean a program that can be run to completely switch between old and new Euphoria & vice-versa.

I am unsure how easy this is for everyone, but when installing the Beta versions of Euphoria, you can choose not to update the environment (default for betas). This will cause your old Euphoria install to be the active one. Then, when you want to use 4.0, you can run, say, C:\euphoria40\setenv.bat and that will set your current shell's environment to use 4.0.

That only affects the current command prompt and not your windows install, so depending on how you run your Euphoria programs, that may not make a difference (i.e. launching from Windows Explorer or something similar).

Jeremy

new topic     » goto parent     » topic index » view message » categorize

3. Re: a dumb question about installing OEu 4?

I set no environment vars for Eu.

I have a bat file in the bin dir, called euiw.bat, containing:

PATH=%PATH%;C:\euphoria40b2\bin;C:\euphoria40b2\include
SET EUDIR=C:\euphoria40b2
C:\euphoria40b2\bin\euiw.exe %1 %2 %3 %4 %5 %6 %7 %8 %9

useless

new topic     » goto parent     » topic index » view message » categorize

4. Re: a dumb question about installing OEu 4?

jeremy said...
DanM said...

Although I'd like to take refuge in the observation, "the only dumb question is the question not asked", I hope this is not the exception.

Is there a way to install V4 simply, AND be able to very easily switch back and forth between it and whatever version of Euphoria a person is currently running on their system?

By "very easily" I mean a program that can be run to completely switch between old and new Euphoria & vice-versa.

I am unsure how easy this is for everyone, but when installing the Beta versions of Euphoria, you can choose not to update the environment (default for betas). This will cause your old Euphoria install to be the active one. Then, when you want to use 4.0, you can run, say, C:\euphoria40\setenv.bat and that will set your current shell's environment to use 4.0.

That only affects the current command prompt and not your windows install, so depending on how you run your Euphoria programs, that may not make a difference (i.e. launching from Windows Explorer or something similar).

Jeremy

ok, that's a good start. However, when I read the online manual, under "Installation", I see:

"To install Euphoria on your machine, first read the file install.txt.

Installation simply involves copying the euphoria files to your hard disk under a directory named euphoria, and then appending the search path of your operating system to this directory."

Where's "install.txt"? Presumably in the download, which I haven't (I know, shame on me!) done yet.

So maybe the text following "read install.txt" should/could be something like (and then I might not have asked this silly question):


Run "install.exe" [or whatever it's actually called], which will copy all Euphoria files to your hard disk under a directory named either "euphoria"(for an installation with NO previous installation of any earlier version of Euphoria), or, to a directory named "euphoria40" (for an installation on a system which DOES have an earlier version of Euphoria installed). An option exists to manually specify either of the above, or any other directory name/path, but the default installation will be to one or the other directories as described above.

If the installation is to any directory other than "euphoria", then all environmental variables will remain as they had been, allowing continued use of the previous version of Euphoria. In this case, two .bat files are provided which will allow switching from an earlier version of Euphoria to OEu 4, and vice versa.


Now to those .bat files.

It seems that "C:\euphoria40\setenv.bat" would work to switch TO OEu4, but it wouldn't switch BACK to the earlier Eu version, right? I presume it's mostly like Kat's example, minus what I think is an "execute" line, and while it isn't hard to "reverse" it to switch back from OEu4 to earlier version, I'm wondering if such couldn't also be included in the installation?

Just a suggestion to make it more palatable for laggards like me to try out OEu4 smile

new topic     » goto parent     » topic index » view message » categorize

5. Re: a dumb question about installing OEu 4?

useless said...

I set no environment vars for Eu.

I have a bat file in the bin dir, called euiw.bat, containing:

PATH=%PATH%;C:\euphoria40b2\bin;C:\euphoria40b2\include
SET EUDIR=C:\euphoria40b2
C:\euphoria40b2\bin\euiw.exe %1 %2 %3 %4 %5 %6 %7 %8 %9

useless

thanks Kat, I'll use your .bat as an example to switch back from OEu4. But aren't the first two lines in fact setting environment vars for Eu?

Dan

new topic     » goto parent     » topic index » view message » categorize

6. Re: a dumb question about installing OEu 4?

But won't this bat file give problems when switching back? If you set the path to concantenate the desired euphoria, then its just concantenating that onto a path that already contains a euphoria. Could be just the type of confusion to avoid!

Why not have a euphoria app that accepts the new euphoria base dir as an argument, but also strips off any existing euphoria references in the path or eudir or include?

Regards Alan

new topic     » goto parent     » topic index » view message » categorize

7. Re: a dumb question about installing OEu 4?

alanjohnoxley said...

But won't this bat file give problems when switching back? If you set the path to concantenate the desired euphoria, then its just concantenating that onto a path that already contains a euphoria. Could be just the type of confusion to avoid!

Why not have a euphoria app that accepts the new euphoria base dir as an argument, but also strips off any existing euphoria references in the path or eudir or include?

Regards Alan

No, in a dos environment such as that, the settings pertain only to that shell, which goes away when it ends. So the variables don't grow. And you can have multiple .bat files, in the form of your versions, i put the bats in the \bin\ directories with the interpreter's exe files, and code the bat file there to point to there and to that interpreter and it's \include\ dir.

To run v4b2, i run C:\euphoria40b2\bin\euiw.bat as if it's euiw.exe there.

To run v3.11, i run C:\euphoria\bin\exw.bat as if it's the exw.exe there.

To make things more complex for you, and simple for me, i run m:\DataMinerCode\mine_noaa_sat\BIN\Getnoaasat_exw.exe because in Taskmgr.exe (winxp) or TaskInfo2000 (win95b), i can see that particular exw.exe is the Getnoaasat miner instead of some other euiw.exe app. Simply rename the exe.

And to make it even easier, i have a .bat that sets the shell vars, launches an Eu app that renames the chosen Euphoria .exe and wget.exe to something relavant, and then launches them.

Isn't dos fun?

useless

new topic     » goto parent     » topic index » view message » categorize

8. Re: a dumb question about installing OEu 4?

alanjohnoxley said...

But won't this bat file give problems when switching back? If you set the path to concantenate the desired euphoria, then its just concantenating that onto a path that already contains a euphoria. Could be just the type of confusion to avoid!

In theory, it could cause problems or confusion, but I think that because the names of the executables changed from v3.1, it's unlikely to cause any real problems.

Matt

new topic     » goto parent     » topic index » view message » categorize

9. Re: a dumb question about installing OEu 4?

Thanks Kat, you are right of course. I was thinking that the app I suggested would be in a bat file, just above the actual app you wanted to run under a specific Euphoria version. The dos environmentals would be carried over. Stuupid of me.. if you are going to do that, you might as well code the path etc in the bat file yourself. Yeah, your bat files would be the simplest solution.

Anybody know how to make a persistent change to environmental variables like path? IE that the changes are saved when the dos prompt closes? Hopefully something simpler than a screenscraping script that edits settings as if you were doing it yourself.

Regards Alan

new topic     » goto parent     » topic index » view message » categorize

10. Re: a dumb question about installing OEu 4?

alanjohnoxley said...

Anybody know how to make a persistent change to environmental variables like path? IE that the changes are saved when the dos prompt closes? Hopefully something simpler than a screenscraping script that edits settings as if you were doing it yourself.

Assuming we're talking about Windows, open windows explorer, right click on the "My Computer" or whatever it's called on your machine, and select properties from the menu (I think there's another way to get here from the control panel or something, but this is how I always do it). Select the "Advanced" tab from the dialog. At the bottom, should be a button called "Environment Variables". Edit them in there.

Note that this doesn't change the values for any other shells currently running (shells include windows explorer and cmd.exe).

Matt

new topic     » goto parent     » topic index » view message » categorize

11. Re: a dumb question about installing OEu 4?

Well, you don't haveto put it in the bin dir. You can put it in your app's dir, then run either euwi.bat or exw.bat to use v4 or v3.11. If there's a problem with where the default .err or .pro files go, there's always chdir in Eu and dos.

useless

new topic     » goto parent     » topic index » view message » categorize

12. Re: a dumb question about installing OEu 4?

Yes Matt, thats what I was referring to. How to make the change without running a script to do what you said. Are the environmentals stored in the Windows registry perhaps? I'm willing to have a go at writing the code if I know where/how the environmantals are stored...

Regards Alan

new topic     » goto parent     » topic index » view message » categorize

13. Re: a dumb question about installing OEu 4?

OK according to Google: User variables are stored in the registry here: HKEY_CURRENT_USER\Environment and system variables here: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment The good news is that changes can be made by launching regedit in batch mode, with your own .reg file argument, containing the changes. The abovementioned applies for Win95 through 2003 server, according to Microsoft. Will test on XP myself.

Regards Alan

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu