Jump to content











Photo
- - - - -

Recommended Tools for creating scripts


  • Please log in to reply
10 replies to this topic

#1 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 07 August 2008 - 07:09 PM

Hi all,

I need to create a rather complicated script and i have to do a lot of registry and file compares to find out exactly what is beeing installed on a normal windows in order to do it in the script.

Then i will have to convert reg files to WB.

All this is VistaPE oriented.

It would be great if some of you could reommend some good tools for this kind if work, especially, what is the best tools for registry compare (before and after install) and what is the best way to get the regvalues in the script (i don't want to import reg files into my pe or during build, i want the values in wb format in the script)

Thanks in advance for all hints!

#2 pscEx

pscEx

    Platinum Member

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

Posted 07 August 2008 - 07:19 PM

Hi all,

I need to create a rather complicated script and i have to do a lot of registry and file compares to find out exactly what is beeing installed on a normal windows in order to do it in the script.

Then i will have to convert reg files to WB.

All this is VistaPE oriented.

It would be great if some of you could reommend some good tools for this kind if work, especially, what is the best tools for registry compare (before and after install) and what is the best way to get the regvalues in the script (i don't want to import reg files into my pe or during build, i want the values in wb format in the script)

Thanks in advance for all hints!

There exist a lot of tools, but only some good ones: The tools I wrote :cheers:
Seriously:
For the nativeEx environment I wrote a project 'trackWBInstall' which as PE starts with minimum environment (no explorer, only cmd) etc.

When you install something it tracks registry changes (and as far as I remember also new files) and writes a WinBuilder script to reproduce what happened during install.

I have some doubts whether it can be used with a Vista source. But at least you can use the trackWBInstall.exe app and let it run in a minimized VistaPE environment.

To build a WB script from a reg file, I wrote a tool 'Reg2WBS'

Peter

#3 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 07 August 2008 - 09:50 PM

Peter's reg2wbs is indeed useful, the only tool I know of that produces "new API" scripts if you check the "API style" box.

See http://www.boot-land.../?showtopic=871.

But wherever it writes HKU you must change it to HKCU, and wherever it writes HKCU you must change it to HKU. I think HKLM is OK.

Supposedly there are friendlier names for the hives but I don't know what they are.

Paraglider's version of RegShot will compare the registry at two different times, and also will detect changes in a designated directory and its subdirectories. http://www.paraglide...ins/plugins.htm.

#4 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 07 August 2008 - 11:18 PM

what is the best tools for registry compare (before and after install)


There are several steps involved if you want to do a minimally good work.

First step is studying the install setup on your own work machine (or a clean one from virtual box or similar)

Unpack setup.exe to see which files go where, uniextract helps a lot: http://legroom.net/software/uniextract

Luckly some installers also allow to use switches from command line like "/x" to get all files inside.

--------------------

Then it would be time to see the registry changes, regmon from sysinternals is fairly good. It has a filter option that allows to completely isolate the registry keys that are read, modified or added.

It doesn't allow to output everything into .reg format but will allow to understand where we can find the required keys inside the registry hive.

Using the tools mentioned above it is a quick process to convert every .reg to .script but you may need to remove a lot of obsolete keys or edit them to suit %variables% that match the build conditions (different program files folder, etc)

Activex/OCX are also a bother, Peter has developed a very efficient way to register them on the target windows that works for LiveXP (never tested on VistaPE)

And last but not least it is also recommended to test your program inside a barebone nativeEx if it is minimally supported by XP.

I recommend this action to ensure that will run on all projects from XP and above while ensuring that you add all the required minimal dependent DLL's to make it work.

You can discover the missing dependencies using dependency walker with the function called "Profile" under the minimal PE environment.

-----

These are some of the methods I use to make scripts.

:cheers:

#5 paraglider

paraglider

    Gold Member

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

Posted 07 August 2008 - 11:48 PM

When there is a definitive and accurate specification of the winbuilder api I will produce a version of regshot that produces output in its format.

#6 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 08 August 2008 - 12:15 AM

That would indeed be a very useful addition to the app!

Regards,
Galapo.

#7 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 08 August 2008 - 01:24 AM

That's a nice motivation.. :cheers:

#8 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 08 August 2008 - 02:27 PM

Very simple solution to the initial topic request that was exposed by Shirin Zaban here: http://www.boot-land...?showtopic=5398

:cheers:

#9 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 08 August 2008 - 02:59 PM

Thanks for all the tips, here comes my personal favorite.-))

I use inctrl5 http://software.magn...oad/inctrl.html

even under vista (tunr uac off and set compatibility to xpsp2)

after tracking my install i use sherpya's great inctrl2pe (which gives my a bartpe inf)
and then i import it using WB convert funktion.

When i find the time i will modify inctrl2pe to output wb code.

I used this a lot for bartpe and it stil gives me great results for WB.

#10 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 08 August 2008 - 05:22 PM

Thanks for all the tips, here comes my personal favorite.-))

I use inctrl5 http://software.magn...oad/inctrl.html


Just for the record this app, like most PC-MAG/Ziff-Davis ones, is NOT redistributable.

The home pages tell this inequivocally:
http://www.pcmag.com...149,9882,00.asp

Note that PC Magazine programs are copyrighted and cannot be distributed, whether modified or unmodified. Use is subject to the terms and conditions of the license agreement distributed with the programs.


http://www.pcmag.com...49,25126,00.asp

PC Magazine programs are copyrighted and cannot be distributed, whether modified or unmodified. Use is subject to the terms and conditions of the license agreement distributed with the programs.


Since several years, they also want to be payed for "right of downloading", if you try downloading it from the homepage, you'll land here:
http://www.pcmag.com...0...page=8&ft=1

The "standard" Ziff-Davis license, of which I am attaching a copy is one of the most limiting, illiberal, and all in all "stupid" license I've ever seen. :cheers:

I do not care whether http://software.magnus.de/ is in violation of the License or has a "special" redistribution agreement :cheers:, but, NO MATTER how good the utility is, I personally wouldn't touch it with a 3 feet long stick, nor recommend the usage of ANY of the Ziff-Davis utilities, due to their licensing scheme.

jaclaz

Attached Files



#11 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 08 August 2008 - 05:36 PM

you sure have a point here...

but i still have to admit that it works like a charm, mostly due to sherpyas inctrl2pe.

I was not aware of the license problems...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users