OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Setup & Installation => Topic started by: xynixme on December 07, 2018, 01:50:15 am
-
Is exporting and importing new settings (actually creating one file, to be imported per new install) safe and simple indeed?
-
Import and Export worked very well for me. I used it to backup and restore Virtual PC for OS/2 settings, which are stored in the Win32 Registry.
-
Is exporting and importing new settings (actually creating one file, to be imported per new install) safe and simple indeed?
It depends on what you are messing with. Most of the time, adding new stuff will be pretty safe, but changing existing stuff could get you into trouble, unless you understand exactly what you are doing. There are probably better ways to do things like that. I would likely use REXX to do it, myself.
-
I would likely use REXX to do it, myself.
How? And to check settings, or to set settings?
The goal will probably almost matches Neil's. I've got two versions of an Acrobat Reader 4, with a few slightly different DLLs. Innotek's embedded one, and a stand-alone one. In this case I'ld like to replace the stand-alone files by Innotek's. So an eCS 1.x install has two identical copies with identical (DLL) files, and a rare OS/2 Warp 4 install or ArcaOS 6 without an Acrobat Reader 4 still has a stand-alone Acrobat Reader 4 with a single copy of those files. So e.g. install scripts can always use that single copy, which is always there, while I don't mind that the conditional embedded copy is the default one. Checking if Innotek's in installed is not the prefered solution. Innotek's version should report its missing settings, AFAICT, so it's not a matter of importing *.* and hope nothing is broken.
-
How? And to check settings, or to set settings?
Look up the SysINI command in the REXX documentation. It will check, and set, the entries.
-
I assume that since Andre is talking about Regedit2 he is talking editing the registry. I think SysIni in Rexx is for editing profiles, i.e. INI files.
I don't know of an OS/2 Rexx function or extention that modifies the registry - which doesn't mean that one doesn't exist.
I do know that Regina Rexx for Windows has a function package that will modify registry entries. I suppose you could run that in OS/2 using ODIN, although I have not tried that. I have run it in Windows and it works well.
-
I assume that since Andre is talking about Regedit2 he is talking editing the registry. I think SysIni in Rexx is for editing profiles, i.e. INI files.
Exactly. That is also what Regedit does.
I don't know of an OS/2 Rexx function or extention that modifies the registry - which doesn't mean that one doesn't exist.
Look up the SysINI function.
I do know that Regina Rexx for Windows has a function package that will modify registry entries. I suppose you could run that in OS/2 using ODIN, although I have not tried that. I have run it in Windows and it works well.
Why not use Regina REXX for OS/2? It does exist, although it may be an older version. Search for it at HOBBES.
-
Can you show an example of how SysIni can access the Windows Registry? I use SysIni all the time for OS/2 ini file access, but I'm unfamiliar with it's use for the Windows Registry. If I try to use SysIni on USER.DAT, it just returns ERROR:
-
Sorry, I guess I missed that the OP wants to modify windows registry items.
Some years ago, I looked into that. I have a note that says you need a support module called "REXXIO" Where you get that, I have no idea. It is mentioned at: http://www.edm2.com/index.php/REXXIO (http://www.edm2.com/index.php/REXXIO).
-
Sorry, I guess I missed that the OP wants to modify windows registry items.
Some years ago, I looked into that. I have a note that says you need a support module called "REXXIO" Where you get that, I have no idea. It is mentioned at: http://www.edm2.com/index.php/REXXIO (http://www.edm2.com/index.php/REXXIO).
http://www.lestec.com.au/lestec/lestec.cgi
It looks like it is $14 to buy.
LesTecIO 4.0 - 257 Functions
LesTecIO contains most REXXIO REXX Input/Output functions and does not require MAID to be installed.
It is designed for people who require the functionality of REXXIO but do not need a GUI interface or do not have MAID installed. For details select a function.
V4.0 for Windows 7 Windows Vista Windows XP Windows 2000 Windows 95 Windows 98 Windows ME Windows NT 3.51 Windows NT 4.0
V3.1 for OS/2 2/0 or later (including OS/2 Warp 3.0, Warp Connect, Warp Server, and OS/2 Warp 4.0)
65 File Functions
14 Directory Functions
9 Search Functions
19 Window Functions
7 Keyboard/Mouse Event Functions
3 REXX Functions
5 Registry Functions
19 Global Stem Variable Functions
26 General Functions
9 Comms Functions
4 Event Functions
9 Internet Functions
54 Graphic Functions
7 Process Functions
2 Email Functions
5 Socket Functions
-
Sorry, I guess I missed that the OP wants to modify windows registry items.
Bad luck, but editing the registry with plain Rexx sounded too good to be true anyway. AFAIK even average users of Windows sometimes have to edit their registry manually.
-
Andre,
What you actually need is a Rexx function package called w32util. Since that is compiled to work with Regina Rexx - as opposed to IBM Rexx - then you also need Regina Rexx for Windows and the associated RexxUtil package.
Although I have not tried it, I am guessing that Regina Rexx for windows will run in ODIN.
There was a short period of time when VAC++ 4.0 would not install on Windows 2000, so I made a little "installer" in order to install it. (That problem has been fixed and VAC++ 4.03 installs on Windows 7.) I have attached the script to show how to update the registry using Rexx and the w32util package.
-
BTW Andre,
If you are going to use Acrobat, why Acrobat 4 and not Acrobat 5?
-
The "sputils" REXX library also purports to support registry access. It's available on Hobbes and probably the other usual places.
-
I used sputils.dll for my work with the Windows registry and Virtual PC for OS/2. It worked for my purposes.
-
If you are going to use Acrobat, why Acrobat 4 and not Acrobat 5?
Because 4, as a component of eCS 1.2 and as a slightly different stand-alone version, is all I've got. And 3, with a forgotten level of WPS integration.
One of the different files of v4 is MSVCRT.DLL. I'd prefer 2 identical installs. The OS one may be the default, but install scripts can use the identical clone which is always there, regardless of the OS in use. The OS one requires REGEDIT2 settings, so you cannot just copy files to create a stand-alone version.
I have to start Lucide twice to open a PDF file, so that's not a working alternative for a new default PDF reader yet.
-
Even better. Using a Rexx DLL is no problem, for one because it's related to installing a system in a controlled way. DLLs are installed in an earlier phase.
-
Although I have not tried it, I am guessing that Regina Rexx for windows will run in ODIN.
There was a short period of time when VAC++ 4.0 would not install on Windows 2000, so I made a little "installer" in order to install it. (That problem has been fixed and VAC++ 4.03 installs on Windows 7.) I have attached the script to show how to update the registry using Rexx and the w32util package.
Interesting route, impressive solution. I recall not being able to install VAC++ 4 at an office, albeit that was hardly more than an excuse to obtain the matching newer VACs for OS/2 too.
-
Another possibility is re-compiling the Regina REXX DLL for OS/2 and linking it to Odin for the registry support. Not sure if Odin has enough registry support or how hard it would be to port.
-
Andre,
Acrobat version 5 can be downloaded at www.os2site.com/sw/util/pdf/os2kitacrobatreader51preview1.exe.
I have problems printing with both version 4 and version 5: they both produce a *.spl file that just sits in the queue - I am using AROS. Strangely enough if you double click on the file in the printer object (which opens it in the system editor), then save it as a *.ps, then drag it back to the printer object it will then print.
You might also want to try qpdfview.exe. Although since (I believe) it is a qt user interface to the same PDF library that Lucide it might not fix your problem. I like it because I can open multiple PDFs at once - but it only prints using CUPS.