Jump to content











Photo
* * * * * 2 votes

[tool] trackWBInstall


  • Please log in to reply
17 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 22 February 2008 - 02:20 PM

When creating new scripts, the developer often has troubles to find the registry entries the script has to make.

The often used way, to watch registry changes on the host, is not always very helpful.
Often many entries already exist and are therefore not recorded by a registry tracker.
To use a fresh installed VM is also not suited;
  • It is a time consuming procedure
  • In some cases the registry entries you are looking for, already exist.
    (compare 'small' PE with 'full' XP)
My idea was to make an installation into the fresh booted PE and track the changes here.

I wrote the program 'trackWBInstall' which
  • makes a snapshoot of the registry 'before'
  • does the desired job, e.g. a regsrv32 of a DLL
  • compares the actual registry with the snapshoot
  • writes some code snippets which can be used for a WinBuilder Script.
The result looks like:
track_result.gif

For test I wrote a small script which is attached.
trackWBInstall.gif

Peter
Attached File  trackWBInstall.zip   55.78KB   500 downloads

EDIT: Axtualized script and script GUI

#2 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4198 posts

Posted 23 February 2008 - 08:27 AM

So its not for a normall person to use. Sounds interesting and seems like a better way to cut down on the Scripts without a lot of hassle.

#3 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 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 23 February 2008 - 11:49 AM

Excellent tool, thank you for publishing it Peter! :(


Few requests:

- Could it use the reg_add function instead of regwrite (or leave option for end-user to decide output format on text file)
- Can it also track filesystem changes?

This is already a very good time saver tool as it is, great work! :)

#4 pscEx

pscEx

    Platinum Member

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

Posted 23 February 2008 - 12:19 PM

Excellent tool, thank you for publishing it Peter! :(


Few requests:

- Could it use the reg_add function instead of regwrite (or leave option for end-user to decide output format on text file)
- Can it also track filesystem changes?

This is already a very good time saver tool as it is, great work! :)

#1 after #2 is finished
#2 I'm already working on this

Peter

#5 pscEx

pscEx

    Platinum Member

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

Posted 23 February 2008 - 04:11 PM

Maybe somebody is interested what shell32.dll is doing on install.

Attached 1872 lines of WinBuilder script code.

Now seriously:
  • There are some lines with hardcoded X: > no issue to fix
  • There are some lines with hardcoded R: > no issue to fix
  • There are some lines with German texts, captions etc. > I'm still searching for a solution.
    Any ideas?
Peter

Attached File  Script.zip   23.98KB   941 downloads

#6 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 28 February 2008 - 02:35 PM

Peter, for dll, ocx registation, the best solution is to extract the included inf file, patch the key locations and then register the the inf file the usual way.
This way the registration can be done at build time and still be language specific.

:)

#7 pscEx

pscEx

    Platinum Member

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

Posted 28 February 2008 - 02:39 PM

Peter, for dll, ocx registation, the best solution is to extract the included inf file, patch the key locations and then register the the inf file the usual way.
This way the registration can be done at build time and still be language specific.

:)

Please post the shell32.inf or the browseui.inf :(

Peter

#8 pscEx

pscEx

    Platinum Member

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

Posted 28 February 2008 - 03:17 PM

Please post the shell32.inf or the browseui.inf :)

Peter


I found it!

@Medevil: Good suggestion :(

Thanks

Peter :cheers:

#9 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 28 February 2008 - 06:20 PM

Glad you like it!

:)

#10 Alexei

Alexei

    Silver Member

  • .script developer
  • 664 posts

Posted 02 March 2008 - 08:27 AM

Glad you like it!

:)


What about using InstallRite?
http://www.epsilonsq...installrite.htm
http://www.bootcd.us...ite-Plugin.html
It can make "snapshots" and analyze the difference.
Additionally, it can create package that you can run at PE startup, meaning no application script is needed:)
:(
Alexei

#11 pscEx

pscEx

    Platinum Member

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

Posted 02 March 2008 - 06:37 PM

What about using InstallRite?
http://www.epsilonsq...installrite.htm
http://www.bootcd.us...ite-Plugin.html
It can make "snapshots" and analyze the difference.
Additionally, it can create package that you can run at PE startup, meaning no application script is needed:)
:)
Alexei

Does InstallRite (/plugin) generate something like this?
RegHiveLoad,"WB-Setup","%target_sys%\setupreg.hiv"RegWrite,"HKLM",0x4,"WB-Setup\ControlSet001\Control\MediaProperties\PrivateProperties\Joystick\Winmm","wheel",1RegHiveUnload,"WB-Setup"RegHiveLoad,"WB-Software","%target_sys%\config\software"RegWrite,"HKLM",0x3,"WB-Software\Microsoft\Cryptography\RNG","Seed","89","FD","CF","A5","D2","CF","72","8D","43","90","DC","6C","A4","0C","49","72","EB","A9","17","E9","15","52","62","DA","24","D4","B6","B3","6C","63","97","11","00","7D","2F","17","D3","BA","58","70","C9","EE","69","18","2F","04","CE","5C","B0","97","41","A3","84","8A","78","44","CE","BC","80","6D","95","90","BF","10","12","44","3C","95","96","8B","A7","BB","3B","A6","37","C9","27","CE","2C","B9"RegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Common Documents",RegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Common Desktop",RegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","Inno Setup: Setup Version",5.1.11RegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","Inno Setup: App Path",X:\Programme\FreeCommanderRegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","InstallLocation",X:\Programme\FreeCommander\RegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","Inno Setup: Icon Group",FreeCommanderRegWrite,"HKLM",0x4,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","Inno Setup: No Icons",1RegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","Inno Setup: User",SYSTEMRegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","Inno Setup: Selected Tasks",RegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","Inno Setup: Deselected Tasks",desktopicon,quicklaunchicon,EbayLinksDeRegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","DisplayName",FreeCommander 2007.10aRegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","DisplayIcon",X:\Programme\FreeCommander\FreeCommander.exeRegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","UninstallString","X:\Programme\FreeCommander\unins000.exe"RegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","QuietUninstallString","X:\Programme\FreeCommander\unins000.exe" /SILENTRegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","Publisher",Marek JasinskiRegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","URLInfoAbout",http://www.FreeCommander.comRegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","HelpLink",http://www.FreeCommander.comRegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","URLUpdateInfo",http://www.FreeCommander.comRegWrite,"HKLM",0x4,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","NoModify",1RegWrite,"HKLM",0x4,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","NoRepair",1RegWrite,"HKLM",0x1,"WB-Software\Microsoft\Windows\CurrentVersion\Uninstall\FreeCommander_is1","InstallDate",20080302RegHiveUnload,"WB-Software"RegHiveLoad,"WB-Default","%target_sys%\config\default"RegWrite,"HKLM",0x1,"WB-Default\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Personal",RegWrite,"HKLM",0x1,"WB-Default\Software\Microsoft\Windows\ShellNoRoam\MUICache","R:\fc_setup.exe",FreeCommander SetupRegHiveUnload,"WB-Default"If,NotExistDir,%PE_Programs%\FreeCommander,DirMake,%PE_Programs%\FreeCommanderIf,NotExistDir,%PE_Programs%\FreeCommander\lng,DirMake,%PE_Programs%\FreeCommander\lngFileCopy,%files%,DelZip179.dll,%PE_Programs%\FreeCommanderFileCopy,%files%,dzSFXus.bin,%PE_Programs%\FreeCommanderFileCopy,%files%,fC_Info.dat,%PE_Programs%\FreeCommanderFileCopy,%files%,fcSFJ.bin,%PE_Programs%\FreeCommanderFileCopy,%files%,FreeCommander.exe,%PE_Programs%\FreeCommanderFileCopy,%files%,freeCommander.exe.manifest,%PE_Programs%\FreeCommanderFileCopy,%files%,FreeCommander.ini,%PE_Programs%\FreeCommanderFileCopy,%files%,FreeCommander.md5,%PE_Programs%\FreeCommanderFileCopy,%files%,FreeCommander.url,%PE_Programs%\FreeCommanderFileCopy,%files%,Arabic.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Bulgarian.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Catalan.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Chinese_s.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Chinese_t.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Czech.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Dansk.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Deutsch.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Dutch.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,English.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Estonian.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Finnish.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,French.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Galician.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Greek.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Hebrew.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Hrvatski.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Hungarian.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Italian.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Korean.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Norsk.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Polski.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Portuguese_brazil.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Romanian.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Russian.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Slovak.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Slovenian.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Spanish-mexico.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Spanish-traditional.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Srpski.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Svenska.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Turkish.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,Ukrainian.lng,%PE_Programs%\FreeCommander\lngFileCopy,%files%,ReadMe_fC2007.txt,%PE_Programs%\FreeCommanderFileCopy,%files%,ReadMe_fC2007de.txt,%PE_Programs%\FreeCommanderFileCopy,%files%,unins000.dat,%PE_Programs%\FreeCommanderFileCopy,%files%,unins000.exe,%PE_Programs%\FreeCommanderFileCopy,%files%,UnRar.dll,%PE_Programs%\FreeCommander
Because I'm still fighting with some localizations, the final project is not yet published.
But If wanted, I can post a beta version here.
Current Help file:
Attached File  trackWBInstall.zip   2.88KB   477 downloads

Peter

#12 Alexei

Alexei

    Silver Member

  • .script developer
  • 664 posts

Posted 03 March 2008 - 06:07 AM

Does InstallRite (/plugin) generate something like this?
[....]
Peter

No :)
InstallRite is a utility (to some extent) similar to your program.
The InstallRite plugin is Bart PE plugin to include this utility into your PE.
Along with some other things, InstallRite can generate executable that (at runtime) applies all changes recorded during installation of a software.
Usage can be like this:
- Boot PE
- Start InstallRite, make snapshot
- Do your installations and tweaks
- Create Installation Kit and save it on USB or HDD.
Next time
- Boot PE
- Run Installation Kit from USB or HDD and get your installations and tweaks ready
Of course, later you can include this Installation Kit into your PE.
Basically, that means you can replace application scripts with installation kits, though, of course, you won't get flexibility of WB scripts, such as localization.
:(
Alexei

#13 pscEx

pscEx

    Platinum Member

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

Posted 20 October 2009 - 04:30 PM

Let me bump! ;)

Reason: Today I rebuilt the complete LiveXP with (not yet published) WB 078 SP3.

I usually do not test all apps, that's too much. I only randomly click some apps to test.

Today the random brought me to regshoot. And I saw, that trackWBInstall does a lot of regshoot tasks, but additionally something more.

(trackWBInstall also takes reg snapshoots 'before' and 'after' and compares.
trackWBInstall also saves 'DIR's 'before' and 'after' and compares.)

But the very important difference is:

Using the differences, trackWBInstall generates a WinBuilder script to add the just checked app.
trackWBInstall.gif


So, maybe the LiveXP Gurus make a trial with trackWBInstall :cheers:
Peter

#14 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 20 October 2009 - 08:36 PM

Sorry, Peter, what do you mean by "regshoot"?

Thanks,
Galapo.

#15 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 20 October 2009 - 08:37 PM

A made a trial,
with v5 of the trackWBInstall.Script and failed :cheers:

I test with selecting exe file (ccleaner.exe)
files copied and track.cmd were there
when i doubleclicked track.cmd it opened, closed and opened an empty notepad. ;)

What i was expecting is trackwb opening ccleaner, and after i close ccleaner trackwb close with opening a notepad with sth inside.

Maybe i did sth wrong :cheers:

#16 pscEx

pscEx

    Platinum Member

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

Posted 21 October 2009 - 08:07 AM

Sorry, Peter, what do you mean by "regshoot"?

Thanks,
Galapo.


Sorry, misspelled!

I meant regshot.exe

Peter

#17 pscEx

pscEx

    Platinum Member

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

Posted 21 October 2009 - 08:08 AM

Maybe i did sth wrong ;)

As far as I undestood you, you did it correct.

I'll see what happened.

Peter

#18 paraglider

paraglider

    Gold Member

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

Posted 21 October 2009 - 11:17 AM

You can feed the output from my special verison of regshot into my convregtoinf tool and generate a pebuilder inf or a winbuilder script from the registry entries. Although regshot reports the file differences you do however have to manually convert the file copies.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users