Jump to content











Photo
- - - - -

Reg2WbEx


  • Please log in to reply
5 replies to this topic

#1 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 09 November 2013 - 10:00 AM

Posted Image

File Name: Reg2WbEx
File Submitter: pscEx
File Submitted: 09 Nov 2013
File Updated: 10 Nov 2013
File Category: Miscellaneous

This application generates WinBuilder 2013 script code from files in Microsoft reg format.
It writes the plugin_reg.bsh file, which can be used directly in WinBuilder 2013 plugins.

Reg2WbEx needs Java 6 or 7 RTE installed.

Credits: Reg2WbEx uses the new WinBuilder 2013 reg library.

Click here to download this file

#2 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 09 November 2013 - 10:01 AM

This page is reserved for maintenance purposes.



#3 paraglider

paraglider

    Gold Member

  • .script developer
  • 1743 posts
  • Location:NC,USA
  •  
    United States

Posted 09 November 2013 - 12:34 PM

Does not work with regedit4 reg files.



#4 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 09 November 2013 - 02:02 PM

Correct.

 

Because the reg files for Win7PE plugins are assumed to be created in Win7 hosts, I did not implement the non-unicode reg files processing.

 

Peter



#5 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 09 November 2013 - 02:19 PM

Why don't we start calling Reg 4 files "legacy" in the same (wrong) derogatory meaning the good MS guy use?

 

In April 2014 support for XP will end! Windows 7 and DEP and ASLR are much more secure than XP! <- these makes no sense but a little FUD is needed ;).

 

BTW, according to MS, also Windows 7 is soon to become "legacy", the only development platform should be 8 8.1.

 

:cheers:

Wonko

 

P.S.: Of course the real meaning of "legacy" is completely different:

http://homepage.ntlw...pejorative.html



#6 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 09 November 2013 - 04:29 PM

New version is uploaded.

 

When there is a REG_MULTI_SZ in the reg file, there will be output of intelligent REG_MULTI_SZ handling like this:

void doMultiString(RegHeader systemHive, String key, String value, String data) {
  ArrayList<String> result = new ArrayList();
  if (systemHive.existVal(key, value)) {
    String cand;
    String current = systemHive.getValueString(key, value);
    String[] actList = current.split(",");
    String[] newList = data.split(",");
    for (int n = 0; n < newList.length; n++) {
      cand = newList[n].trim().toLowerCase();
      boolean found = false;
      for (int a = 0; a < actList.length; a++) {
        String act = actList[a].trim().toLowerCase();
        if (cand.equals(act)) {
          found = true;
          break;
        }
      }
      if (!found) {
        result.add(newList[n].trim());
      }
    }
    if (!result.isEmpty()){
      for (int m = 0; m < result.size(); m++) {
        String single = result.get(m);
        systemHive.modifyValueMulti(key, value, single, -1);
      }
    }
  } else {
    systemHive.createValue(key, value, 0x7, data);
  }
};

Additional for plugin developers: Reg2WbEx can output some status information in case of a problem: "Develop" checkbox.

 

Peter






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users