[FAQ] ReHIPS installer

Started by fixer, December 01, 2017, 11:29:14 AM

Previous topic - Next topic

fixer

You probably already wonder: installer is just a simple exe-file, just run it, click Next a couple of times, what interesting things could it probably hold? Wait a bit, we've got a couple of tricks up our sleeve.

Some of you already know RulesManager I posted earlier about https://forum.rehips.com/index.php?topic=9530.0 It allows to tweak default rules in any way to create your own and unique set of rules. But rules are installed when ReHIPS is installed, what if you want to install your own rules from the beginning? That's where installer trick comes into play. You can place your default.rdb next to the installer, and then it'll use your set of rules. You can also place settings.xml to install ReHIPS with your own set of settings. If it doesn't find these files, it'll use default ones.

And one more thing. I'm about to talk mostly about updating when newer ReHIPS version is installed.
If it finds these files next to the installer, it'll use them overwriting existing files.
But if it uses default files, it won't overwrite existing files. Before ReHIPS 2.4.0 existing files will be just left as they are. ReHIPS 2.4.0 and later will ask and update existing rules by merging them with new rules.
The files aren't distributed with the installer, so if they're found, they're put there on purpose, so overwriting is OK.
But if default files are used and destination files already exist, probably user created some custom rules, we don't want to overwrite them.

Umbra

ok now i understand why i saw my own rules were automatically installed during installation :)

Tarnak

I just updated to latest ReHIPS v2.3.0., and I got a popup during the install that said, "Install initial rules (recommended)?", to which I responded 'Yes' to.  Does that mean my previous rules are still kept from earlier ReHIPS installed version, and not deleted?

fixer

There are 2 types of rules.

1. RulesManager rules. These are kept by default in default.rdb file. This blogpost is about default.rdb file, so it's about these rules only. ReHIPS 2.2.0 used RulesPack with embedded rules. RulesManager and default.rdb rules database were optional and are used by default from ReHIPS 2.3.0. If you haven't used optional RulesManager, you can skip it and proceed straight to paragraph 2. These rules are used by RulesManager when rules are installed. So you can customize them in any way, move to any other PC, etc. and these custom rules then can be installed.

2. Installed rules. These are already installed rules. They're kept in ReHIPS.xml file. These rules are valid for the PC they're installed to only and can't be moved to any other PC. When ReHIPS is updated, it asks should it install initial rules. Only new rules are installed, all already existing rules are kept and left as they are.

Tarnak

I see...However, how do check to see what rules that I have created to date, and where are they accessible for view, i.e. path on C: drive?  Can I view both types of rules?  I am a little confused, as you can probably tell. ;)

Tarnak

#5
I am trying to open one of these rules 'locations' in Edge, but nothing is happening. The page stays blank, ...file:///C:/Program%20Files/ReCrypt/ReHIPS/ReHIPS.xml   I had to close the page, as nothing was happening.

fixer

Rules of type 1 can be viewed in RulesManager. If you haven't used it, there will be only default rules bundled with ReHIPS. RulesManager is described here https://forum.rehips.com/index.php?topic=9530.0 You have to start it, open default.rdb file and you'll see all rules in a tree-like structure similar to Programs tree in main GUI.

Rules of type 2 can be viewed in standard ReHIPS Control Center (main and I'm sure familiar to you GUI), just open Settings on Programs tab. Yeah, they can be also viewed in xml file, but it's not that visual, and xml file is allowed to be opened to administrators for security reasons, that's why Edge wasn't able to open it and showed you an empty page.

Tarnak

You mean like this?  Is this an example of Type 1 or Type 2, rules? Sorry, if this a dumb question.


fixer

Yup, you're right. These are type 2 rules. These rules are already installed. And this is ReHIPS Control Center (a.k.a. main GUI) you have on the screenshot.

Tarnak

Thanks....Hopefully, I will come to a full understanding of both types. ;)

Ozone

After installing 2.3 over 2.2 I get popup "Install initial rules (recommended)?", I clicked yes and than I have to reboot.
Won't there be problem if user select "yes reboot now" immediately, which will cause that installer for initial rules won't have enough time to start/finish installing.
Just asking I didn't reboot immediately so I don't know.

fixer

You're right, sometimes it takes some time to install all the rules.
But don't worry, even if installer is stopped at some point, later it'll detect that not all rules and installed and finish the installation.

Tarnak

#12
I have just installed the latest v2.4.0 over the top, and it was successful. However, before clicking on finish as per the attached screenshot, I then got a CMD window which opened at least a minute after I had captured that aforementioned screenshot, and the CMD window had a lot happening within. It then closed. It was to do with the install of ReHIPs.  I wish that I had taken a screenshot, but I missed my chance.  I decided to reboot, and my system started, normally.

Edit: Just tidying up my post.




fixer

#13
Installer indeed may spawn some console windows.
Currently it spawns 2 quickly closing windows when it prepares to install, these windows run shell commands to stop ReHIPS services in case they're running so the installer could update files.
And it spawns 1 more console window finishing the installation. This is RulesManager window, it installs (or updates) ReHIPS initial rules. And this window may take some time, depends on amount of rules it needs to install.

Tarnak

Thanks.  ...It must have been the last option that I was seeing, because it went on for few seconds. Usually, when I see a console window it is for a very brief time. Almost, like just a flash, and it is gone!  ;)