Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

Installation puzzle

 [1/2] from: Steven::White::ci::bloomington::mn::us at: 22-Dec-2003 14:42

Some time ago I installed REBOL/View on my office Windows 98 computer. It got installed in C:\"Program Files"\REBOL\VIEW, probably because I took some default file path somewhere in the installation process--I can't remember any more. In any case, it works fine. Now I am trying to set up a procedure to make it as easy as possible for someone else to install REBOL/View on his computer, and I am testing this operation on my own computer. I create a directory called C:\REBOL and unpack REBOL/View into it, and then run it to create the PREFS.R and USER.R files. When I do that, the files USER.R and PREFS.R get created in... C:\Program Files\REBOL\VIEW. Where is REBOL looking to decide to put those files in the REBOL\VIEW directory in Program Files? How does it even know of the existence of such a place if I have unpacked it into C:\REBOL? Is the directory in Program Files hard-coded into the Windows version of REBOL? Have I missed some configuration file or environment variable somewhere? Thank you for any ideas, and Merry Christmas by the way. Steven White City of Bloomington 1800 W Old Shakopee Rd Bloomington MN 55431-3096 USA 952-563-4882 (voice) 952-563-4672 (fax) [steven--white--ci--bloomington--mn--us]

 [2/2] from: antonr:iinet:au at: 23-Dec-2003 13:56

For finding out the answer to these kinds of puzzles I recommend Sysinternals Regmon (a registry monitor). Just run regmon first, apply a filter *rebol*, then start rebol. You can sift through the output to see which registry keys are attempted to be accessed. Anyway, having done that, you can see a line such as: 40.87314030 rebol12131.exe:400 QueryValue HKCU\Software\Rebol\View\HOME SUCCESS "/d/anton/dev/rebol/view/" which tells you where rebol is installed. I first found this out by manually searching the registry for "rebol". Check out the rebol command line usage for the: --reinstall (+i) Force an install (View) option. Also, I think I just deleted the registry branch HKCU\Software\Rebol or HKCU\Software\Rebol\View to make windows forget everything about rebol. That's the same as uninstall. When rebol is run again, it will think it needs to install itself. As far as I know, "installing" basically just means modifying the registry. Anton.