Nero autoHelp.cmd

 

INF Head +Basics %GET% CREDITS "reatogo" "" "314-104" "14.07.2005"
:: Nero Express
%GET%
STARTPARAM-ICON "/w" "Nero.exe,1"
%GET% HEAD "510" "Nero.exe" "Nero Burning Rom 6" "ram" "Programs" "" "" "Nu2"
  :: find language for file copy
%GET% xREG -h6 "HKLM\SOFTWARE\Ahead\Shared" "ShortCutDLLLang"
File Copy +Print to INF %GET% FILES "a" "*.exe" "" "*.dll" "" "*.cfg" "" "*%result%.txt" "" "*%result%.nls" ""
%GET% FILES "-2" "shfolder.dll" "" "quartz.dll" ""
  set text=Language
%GET% xREG -h1 "HKLM\SOFTWARE\Ahead\Shared" "ShortCutDLLLang" %OUT%
User Licence set text=User Info
%GET% REG -h1 "HKLM\Software\Ahead\Nero - Burning Rom\Info" %OUT%

 

Details on autoHelp scripting:

 

 

%GET% CREDITS "plugin by ..." "based on original from ..." "tested on..." "last revision on..."

 

%GET% HEAD "1"  "2"  "3"  "4"  "5"  "6"  "7"  "8"  "9"  etc

1 -Category

2 -MainEXE

3 -Name inside the INF and name of shortcut (if left blank, it is derived from MainEXe eg. Nero)

4 -ram or disk. Set the loader to copy files to ramdrive and start there. Or start from CD.

5- Programs or Startup. Programs triggers XPE shortcut in startmenu. Desktop shortcut always per default. Startup ->autostart. and no shortcut on desktop.

6 -Subgroup in startmenu\programs\... Match in Nu2 XML.

7 -Rea or blank. Entry in reatogoMenu or not.

8 -Nu2 or blank. Creates XML or not.

9 -defines addl WinNt directories. "a" is already defined by the template. So position 9 is "b" positon 10 is "c" etc. Prints to INF and defines target for copy.

 

 

%GET% STARTPARAM-ICON "/w" "Nero.exe,1"

allows to add start parameters to the loader configuration file and to define any icon file for the shortcut(s).

 

Pre-defined %PROGPATH% for Nero

For some programs, the PROGPATH can be found in registry just by knowing the name of the MainEXE.

Nero is one of them. So, no need to manually define the progpath here. It has already been done by autoHelp Creator.

 

%GET% REG -h1 "HKLM\Software\Ahead\Nero - Burning Rom\Info" %OUT%

Prints the result of the query for all values under this key. Prints in PEbuilder format to the INF.

 

%GET% REG -h1 "HKLM\Software\Ahead\Nero - Burning Rom\Info" "User" %OUT%

Same, but only for the value User. Three seperate calls with "User", "Company" and "Serial6" would give here the same output as above.

 

-h1 prints the relevant section header-h6 prints just the line without header.

-S includes all subkeys into the parsing. (%GET% REG -h1 -S "My-Key" %OUT%).

Set text=... prints a comment above the section header.

 

Note: To include subkeys with "-S" will unfortunately have be the rare exception in the context of a pluginīs autoHelp.cmd as it will normally return a  large number of entries including absolute local paths that can not be used as is. It is more a bulk reg-2-inf function and used as such to power the "built-in Reg-2-Inf Converter".

 

%GET% xREG -h6 "HKLM\SOFTWARE\Ahead\Shared" "ShortCutDLLLang" %OUT%

Prints the full result in PE-inf format to the plugin-INFand stores the result of the query in %result% (until overwritten during the next call of xREG).

Without the "%OUT%", it will only define the variable %result% (here used to localize the name of the files in the following GET FILES call) .

 

REG and xREG are quite similar in use and syntax

... but there are differences. Use xREG if you need the result as a variable (as shown above) or if the value name itself contains localized elements and you need a "wildcard" function.

 

The "wildcard" function of xREG (example unrelated to Nero)

Use x--x just like a wildcard * to replace local elements. In this example, it will return the localized entry of your system.

set text=FONTS Localized
%GET% xREG -h1 -s22 "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" "Small Fonts
x--x" %OUT% 
%GET% xREG -h5 -s22 "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" "MS Sans Serif 8,10,12,14,18,24
x--x" %OUT%

 

-s22 is an added feature of xREG:

"22" in this example, could be any WinNt directory number of your choice. This function memorizes the return of xREG calls and prints it to INF as follows and triggered by the following call:

 

%GET% xREG -D %OUT%  after the two calls above, prints to INF:

[SourceDisksFiles]
SMALLE.FON=22,,4
SSERIFE.FON=22,,4

 

%GET% FILES "a" "Nero.exe" "my-Nero.exe" "some.dll" "my-some.dll"  etc...

Directory "a" is automatically derived from the name of the MainEXE. Here as "Nero".

The variable %PROGPATH% defines the source. So, all the information is there to copy the files from source to Output\Programs\Nero.

Directory "2" also defines source and target for file copy.

%GET% FILES also automatically prints all relevant lines to the INF as all needed information for this is defined too.

 

Two Copy Modes for the needed files:

Depending on the selected CopyMode, the files will either be copied and in the INF it prints like Files\Nero.exe=a,,4. Or it prints like

C:\Programme\Ahead\Nero\Nero.exe=a,,4 and does not copy. Always attribute 4 (copy if there, no error if not) as the file-present-check is already done by autoHelp.cmd and enable-blocking of an unconfigured plugin is done by start.inf, that is replaced with a configured and enabled INF after a succesfsul run.

 

Print to INF like shfolder.dll=2,,4

A minus with the directory "-a" or "-2" will supress copy action and print like shfolder.dll=2,,4 instead of Files\shfolder.dll=2,,4

Use it for files present directly in the root of the pluginīs folder or for files to be copied from the Win-CD.

 

Renaming files on their way from source to target

is done analog to PEbuilder syntax like %GET% FILES "a" "Nero.exe" "my-Nero.exe" "some.dll" "my-some.dll" etc...

 

Copy from Common Files Folder

%GET% FILES "com.a"  "some.dll" "my-some.dll" etc....

To copy files from Common Files directory to "a" or "2" etc.. "com.a" triggers copy "from Common Files to directory a".

 

 

Addl. details for specific functions under each of the following plugin examples.

 

 

above autoHelp.cmd creates these files:

Resulting INF ; PE Builder v3 plug-in INF file
; Nero.inf
; reatogo autoHelp plugin created by reatogo
; Last Revision 14.07.2005

[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="510 Nero Burning Rom 6 (314-104)"
Enable=1
Help="\"

[Append]
nu2menu.xml, Nero_nu2menu.xml

[Software.Addreg]
; XPE Shortcuts for Nero Burning Rom 6, pointing to ReaLoader
0x2, "Sherpya\XPEinit\Desktop", "Nero Burning Rom 6", "%SystemDrive%\Programs\Nero\Nero.r2g"
0x2, "Sherpya\XPEinit\Programs", "Nero Burning Rom 6", "%SystemDrive%\Programs\Nero\Nero.r2g"

[WinntDirectories]
a="Programs\Nero",3

[SourceDisksFiles]
Nero.r2g=a,,1
Files\*.exe=a,,4
Files\*.dll=a,,4
Files\*.cfg=a,,4
Files\*DEU.txt=a,,4
Files\*DEU.nls=a,,4
shfolder.dll=2,,4
quartz.dll=2,,4

; Language
[Software.AddReg]
0x1, "Ahead\Shared", "ShortCutDLLLang", "DEU"

; User Info
[Software.AddReg]
0x1, "Ahead\Nero - Burning Rom\Info", "User", "Siegfried Benthin"
0x1, "Ahead\Nero - Burning Rom\Info", "Company", "benthin"
0x1, "Ahead\Nero - Burning Rom\Info", "Serial6", "1234-5678-1234-5678-1234-5678"
Loader Configuration File ; Configure file for Reatogo-Loader
;
; Nero Burning Rom 6

[Shell]
IconFile="%SystemDrive%\Programs\Nero\Nero.exe,1"

[Application]
Title="Nero Burning Rom 6"
Source="%SystemDrive%\Programs\Nero"
Destination="%Ramdrv%\Nero"
Launch="Nero.exe"
Parameters="/w"
StartOnly=0
Overwrite=1
DeleteAfter="OnlyCopied"

[CopyFiles]
*.*=2
Nu2Menu XML <!-- Nu2Menu entry for Nero -->
<NU2MENU>
<MENU ID="Programs">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\Nero\Nero.r2g))" CMD="RUN" FUNC="@GetProgramDrive()\I386\System32\ReaLoader.exe @GetProgramDrive()\Programs\Nero\Nero.r2g" PARM="1">Nero Burning Rom 6</MITEM>
</MENU>
</NU2MENU>
 

ad-aware autoHelp.cmd

Top

INF Head +Basics %GET% CREDITS "reatogo" "" "314-104" "15/07/2005"
%GET% HEAD "500" "ad-aware.exe" "Ad-Aware SE" "ram" "Programs" "Ad-Aware SE" "Rea" "Nu2" "Lang"
Program Download %GET% DOWNLOAD "" "" "" "http://downloads.pcworld.com/pub/new/privacy___security/anti_spyware_tools/aawsepersonal.exe"
%GET% DOWNLOAD "" "" "" "http://download.lavasoft.de.edgesuite.net/public/pllangs.exe"
File Copy +print to INF, incl. Language Selection %GET% PROGPATH "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Ad-Aware SE Personal" "DisplayIcon"
%GET% FILES "-a" "info.txt"
%GET% FILES "a" "ad-aware.exe" "" "defs.ref" "" "manual.chm"
%GET% SELECTION "LANGUAGE" "" "catalan" "" "danish" "" "dutch" "" "english" "" "finnish" "" "french" "" "german" "" "hungarian" "" "italian" "" "norwegian" "" "portuguese" "" "spanish" "" "swedish" "" "turkish"
%GET% FILES "b" "%result%.awl" "default.awl"
Static INF ECHO [Software.AddReg] %OUT%
ECHO 0x1, "Microsoft\Windows\CurrentVersion","ProgramFilesDir","%%ProgramFiles%%" %OUT%
ECHO 0x1, "Microsoft\Windows\CurrentVersion","CommonFilesDir","%%ProgramFiles%%\Common Files" %OUT%
Info File +addl. Shortcuts ECHO 0x2, "Sherpya\XPEinit\Programs", "Ad-Aware SE\Usage information", "%%SystemDrive%%\Programs\ad-aware\info.txt" %OUT%
ECHO 0x2, "Sherpya\XPEinit\Programs", "Ad-Aware SE\Manual", "%%SystemDrive%%\Programs\ad-aware\manual.chm" %OUT%
:: create the info file
set FILE=info.txt
ECHO Ad-Aware SE > %FILE%
ECHO ----------- >> %FILE%
ECHO. >> %FILE%
ECHO When you boot BartPE and run Ad-Aware you should be aware of the fact that >> %FILE%
ECHO when adaware is scanning the memory and registry it scans the BartPE memory >> %FILE%
ECHO and registry! And not the Windows registry located on your harddisk. >> %FILE%
ECHO. >> %FILE%
ECHO When you autoplay the BartPE CD adaware does scan your windows memory and >> %FILE%
ECHO registry! >> %FILE%

 

Details on autoHelp scripting:

 

%GET% HEAD "500" "ad-aware.exe" "Ad-Aware SE" "ram" "Programs" "Ad-Aware SE" "Rea" "Nu2" "Lang"

Ad-Aware SE =name inside the INF and name of the shortcut(s)

Ad-Aware SE =name of the sub-group in start menu and Nu2-XML

Lang              =addl. WinNtDirectory "b" (a is alredy defined by the template automatically)

 

%GET% DOWNLOAD "" "" "" "http://downloads.pcworld.com/pub/new/privacy___security/anti_spyware_tools/aawsepersonal.exe"

If the program is detected not to be installed, this will download the setup-EXE. Routine includes a full user prompt. In this example two downloads are necessary. Up to three download calls are possible in one autoHelp.cmd.

"GET DOWNLOAD" also puts the files into the folder "Files".

 

%GET% DOWNLOAD "inner folder" "selection header" "language-1" "download-URL" "language-2" "download-URL" "language-3" "download-URL" etc... (up to 18 language options)

 

Allows for multi-language download selection and compensation of an "inner folder", where required.

 

"Inner Folder" Compensation

This feature is used, if the download is not a setup-EXE but a ZIP with the needed files like in MWsnap,  2xExplorer and XnView.

 

Some downloads unzip with a subfolder (like 2xExplorer\2xExplorer\--content--), which would result in "Files\2xExplorer\--content--". Specifying the inner folder will correct it to ""Files\--content--".

 

Note: The extension of the download file determines the action:

EXE: just download and prompt the user to "install the prog and try again".

ZIP:  Download all files, put them into "Files" and continue with the plugin configuration.

 

 

%GET% PROGPATH "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Ad-Aware SE Personal" "DisplayIcon"

Any registry entry containing the path to the program can be used. Double backslashes and/or a file name at the end will automatically be trimmed off to get a path usable for the file copy action etc.

Use "Check Progpath" button on the panel to start a check-routine, if you want to test an entry for the correct return before you use it.

 

%GET% FACTORY-PATH "Lavasoft\Ad-Aware SE Personal"

Would be an other, simple, way to define the PROGPATH. Specify the default installation path (only the portion inside the program folder). Works fine, if the user did not opt for a custom install location. Has to be used, if the install path is not stored in the registry.

 

Note: There are some standard locations in registry for the program path. These are automatically checked upon creation of the template. If that already returns a usable path (like for Nero), you will be informed of the fact by ":: Note: "PROGPATH" is already defined." on the created template.

 

%GET% SELECTION "LANGUAGE" "" "catalan" "" "danish" "" "dutch" "" "english" "" "finnish" "" "french" "" "german" "" "hungarian" "" "italian" "" "norwegian" "" "portuguese" "" "spanish" "" "swedish" "" "turkish"

Will call a complete user dialog to select up to 18 options. Returns in this example choice 4 as a variable %result% set to the value of english.

 

%GET% FILES "b" "%result%.awl" "default.awl"  ...as an example of using the returned value in a following file copy call. (Note the renaming of the file)

 

%GET% SELECTION "LANGUAGE" "German" "de" "English" "en" "French" "fr"  etc...

Display of the item in the selection dialog is English, the variable %result% will be set to the value of en.

Use this addl. specification of the choice display, if the result is too cryptic to be used for the user display. If left blank, the definition of the value will be used for both, the variable and the item display.

 

above autoHelp.cmd creates these files:

Resulting INF ; PE Builder v3 plug-in INF file
; ad-aware.inf
; reatogo autoHelp plugin created by reatogo
; Last Revision 15/07/2005

[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="500 Ad-Aware SE (314-104)"
Enable=1
Help="\"

[SetValue]
; reatogoMenu-Entry for Ad-Aware SE
"reatogoMenu.ini", "Entries", "Ad-Aware SE", "%SystemDrive%\Programs\ad-aware\ad-aware.exe"

[Append]
nu2menu.xml, ad-aware_nu2menu.xml

[Software.Addreg]
; XPE Shortcuts for Ad-Aware SE, pointing to ReaLoader
0x2, "Sherpya\XPEinit\Desktop", "Ad-Aware SE", "%SystemDrive%\Programs\ad-aware\ad-aware.r2g"
0x2, "Sherpya\XPEinit\Programs", "Ad-Aware SE\Ad-Aware SE", "%SystemDrive%\Programs\ad-aware\ad-aware.r2g"

[WinntDirectories]
a="Programs\ad-aware",3
b="Programs\ad-aware\Lang",3

[SourceDisksFiles]
ad-aware.r2g=a,,1
info.txt=a,,4
Files\ad-aware.exe=a,,4
Files\defs.ref=a,,4
Files\manual.chm=a,,4
Files\Lang\german.awl=b,default.awl,4

[Software.AddReg]
0x1, "Microsoft\Windows\CurrentVersion","ProgramFilesDir","%ProgramFiles%"
0x1, "Microsoft\Windows\CurrentVersion","CommonFilesDir","%ProgramFiles%\Common Files"

0x2, "Sherpya\XPEinit\Programs", "Ad-Aware SE\Usage information", "%SystemDrive%\Programs\ad-aware\info.txt"
0x2, "Sherpya\XPEinit\Programs", "Ad-Aware SE\Manual", "%SystemDrive%\Programs\ad-aware\manual.chm"
Loader Configuration File ; Configure file for Reatogo-Loader
;
; Ad-Aware SE

[Shell]
IconFile="%SystemDrive%\Programs\ad-aware\ad-aware.exe"

[Application]
Title="Ad-Aware SE"
Source="%SystemDrive%\Programs\ad-aware"
Destination="%Ramdrv%\ad-aware"
Launch="ad-aware.exe"
StartOnly=0
Overwrite=1
DeleteAfter="OnlyCopied"

[CopyFiles]
*.*=2
Lang\*.*=2
Nu2Menu XML <!-- Nu2Menu entry for ad-aware -->
<NU2MENU>
<MENU ID="Programs">
<MITEM TYPE="POPUP" DISABLED="@Not(@FileExists(@GetProgramDrive()\PROGRAMS\ad-aware\*.*))" MENUID="Ad-Aware SE">Ad-Aware SE</MITEM>
</MENU>
<MENU ID="Ad-Aware SE">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\ad-aware\ad-aware.r2g))" CMD="RUN" FUNC="@GetProgramDrive()\I386\System32\ReaLoader.exe @GetProgramDrive()\Programs\ad-aware\ad-aware.r2g" PARM="1">Ad-Aware SE</MITEM>
</MENU>
</NU2MENU>
 

ExpressBurn autoHelp.cmd

Top

INF Head +Basics %GET% CREDITS "reatogo" "" "314-104" "July 15, 2005"
%GET% HEAD "510" "Burn.exe" "ExpressBurn" "ram" "Programs" "" "Rea" "Nu2"
Program Download %GET% DOWNLOAD "" "" "" "http://nch.com.au/cgi-bin/dld.exe?file=http://www.nch.com.au/burn/burnsetup.exe"
File Copy +print to INF %GET% FACTORY-PATH "NCH Swift Sound\ExpressBurn"
%GET% FILES "a" "Burn.exe" "" "burn.hlp" ""
%GET% FILES "-2" "msacm32.dll" ""
Creation of static INF-part ECHO [Software.AddReg] %OUT%
ECHO 0x1, "NCH Swift Sound\ExpressBurn\Folders", "ProgramFiles", "B:\Programs\Burn\" %OUT%
ECHO 0x1, "NCH Swift Sound\ExpressBurn\Folders", "DataFiles", "B:\Programs\Burn\" %OUT%
%line%
ECHO 0x1, "NCH Swift Sound\ExpressBurn\MainDialog", "Maximized", "0" %OUT%
ECHO 0x1, "NCH Swift Sound\ExpressBurn\MainDialog", "X", "134" %OUT%
ECHO 0x1, "NCH Swift Sound\ExpressBurn\MainDialog", "Y", "88" %OUT%
ECHO 0x1, "NCH Swift Sound\ExpressBurn\MainDialog", "Width", "788" %OUT%
ECHO 0x1, "NCH Swift Sound\ExpressBurn\MainDialog", "Height", "584" %OUT%
%line%
echo 0x1, "NCH Swift Sound\ExpressBurn\Registration", "Prompt1", "1" %OUT%
%line%
ECHO 0x1, "NCH Swift Sound\ExpressBurn\Settings", "CopyCD", """B:\Burn\burn.exe"" %%s" %OUT%
ECHO 0x1, "NCH Swift Sound\ExpressBurn\Settings", "CDType", "1" %OUT%
A classic example of a simple plugin.

above autoHelp.cmd creates these files:

Resulting INF ; PE Builder v3 plug-in INF file
; Burn.inf
; reatogo autoHelp plugin created by reatogo
; Last Revision July 15, 2005

[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="510 ExpressBurn (314-104)"
Enable=1
Help="\"

[SetValue]
; reatogoMenu-Entry for ExpressBurn
"reatogoMenu.ini", "Entries", "ExpressBurn", "%SystemDrive%\Programs\Burn\Burn.exe"

[Append]
nu2menu.xml, Burn_nu2menu.xml

[Software.Addreg]
; XPE Shortcuts for ExpressBurn, pointing to ReaLoader
0x2, "Sherpya\XPEinit\Desktop", "ExpressBurn", "%SystemDrive%\Programs\Burn\Burn.r2g"
0x2, "Sherpya\XPEinit\Programs", "ExpressBurn", "%SystemDrive%\Programs\Burn\Burn.r2g"

[WinntDirectories]
a="Programs\Burn",3

[SourceDisksFiles]
Burn.r2g=a,,1
Files\Burn.exe=a,,4
Files\burn.hlp=a,,4

[Software.AddReg]
0x1, "NCH Swift Sound\ExpressBurn\Folders", "ProgramFiles", "B:\Programs\Burn\"
0x1, "NCH Swift Sound\ExpressBurn\Folders", "DataFiles", "B:\Programs\Burn\"

0x1, "NCH Swift Sound\ExpressBurn\MainDialog", "Maximized", "0"
0x1, "NCH Swift Sound\ExpressBurn\MainDialog", "X", "134"
0x1, "NCH Swift Sound\ExpressBurn\MainDialog", "Y", "88"
0x1, "NCH Swift Sound\ExpressBurn\MainDialog", "Width", "788"
0x1, "NCH Swift Sound\ExpressBurn\MainDialog", "Height", "584"

0x1, "NCH Swift Sound\ExpressBurn\Registration", "Prompt1", "1"

0x1, "NCH Swift Sound\ExpressBurn\Settings", "CopyCD", """B:\Burn\burn.exe"" %s"
0x1, "NCH Swift Sound\ExpressBurn\Settings", "CDType", "1"

 

Loader Configuration File ; Configure file for Reatogo-Loader
;
; ExpressBurn

[Shell]
IconFile="%SystemDrive%\Programs\Burn\Burn.exe"

[Application]
Title="ExpressBurn"
Source="%SystemDrive%\Programs\Burn"
Destination="%Ramdrv%\Burn"
Launch="Burn.exe"
StartOnly=0
Overwrite=1
DeleteAfter="OnlyCopied"

[CopyFiles]
*.*=2
 
Nu2Menu XML <!-- Nu2Menu entry for Burn -->
<NU2MENU>
<MENU ID="Programs">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\Burn\Burn.r2g))" CMD="RUN" FUNC="@GetProgramDrive()\I386\System32\ReaLoader.exe @GetProgramDrive()\Programs\Burn\Burn.r2g" PARM="1">ExpressBurn</MITEM>
</MENU>
</NU2MENU>
 

File Scavenger autoHelp.cmd

Top

INF Head +Basics %GET% CREDITS "MartinR" "" "314-104" "14.07.2005"
%GET% HEAD "600" "FileScav.exe" "File Scavenger 3.0" "ram" "Programs" "" "Rea" "Nu2"
Program Download %GET% DOWNLOAD "" "SETUP-LANGUAGE" "english" "http://www.quetek.com/bin/32fsU30.exe" "german" "http://www.quetek.com/bin/32fsG30.exe"
File Copy +print to INF %GET% PROGPATH "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\File Scavenger V3_is1" "InstallLocation"

%GET% FILES "a" "filescav.exe" "" "filescav.hlp" "" "filescav.ini" "" "license.txt" "" "msvcrt.dll" "" "*.txt" "" "*.dll" ""
User Licence set text=Licence data
%GET% REG -h1 "HKLM\SOFTWARE\QueTek\File Scavenger\3.0" "License" %OUT%

 

Details on autoHelp scripting:

 

%GET% HEAD "600" "FileScav.exe" "File Scavenger 3.0" "ram" "Programs" "" "Rea" "Nu2"

Name inside the INF and the name of the shortcuts would be FileScav without specifying File Scavenger 3.0.

 

%GET% DOWNLOAD "" "SETUP-LANGUAGE" "english" "http://www.quetek.com/bin/32fsU30.exe" "german" "http://www.quetek.com/bin/32fsG30.exe"

 

Downloads the setup-EXE if the program is not installed.

SETUP-LANGUAGE is the header for the selection user dialog

english and german is the describtion of the choices in the user dialog.

 

Up to 18 choices can be specified.

above autoHelp.cmd creates these files:

Resulting INF ; PE Builder v3 plug-in INF file
; FileScav.inf
; reatogo autoHelp plugin created by MartinR
; Last Revision 14.07.2005

[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="600 File Scavenger 3.0 (314-104)"
Enable=1
Help="\"

[SetValue]
; reatogoMenu-Entry for File Scavenger 3.0
"reatogoMenu.ini", "Entries", "File Scavenger 3.0", "%SystemDrive%\Programs\FileScav\FileScav.exe"

[Append]
nu2menu.xml, FileScav_nu2menu.xml

[Software.Addreg]
; XPE Shortcuts for File Scavenger 3.0, pointing to ReaLoader
0x2, "Sherpya\XPEinit\Desktop", "File Scavenger 3.0", "%SystemDrive%\Programs\FileScav\FileScav.r2g"
0x2, "Sherpya\XPEinit\Programs", "File Scavenger 3.0", "%SystemDrive%\Programs\FileScav\FileScav.r2g"

[WinntDirectories]
a="Programs\FileScav",3

[SourceDisksFiles]
FileScav.r2g=a,,1
Files\filescav.exe=a,,4
Files\filescav.hlp=a,,4
Files\filescav.ini=a,,4
Files\license.txt=a,,4
Files\msvcrt.dll=a,,4
Files\*.txt=a,,4
Files\*.dll=a,,4

; Licence data
[Software.AddReg]
Loader Configuration File ; Configure file for Reatogo-Loader
;
; File Scavenger 3.0

[Shell]
IconFile="%SystemDrive%\Programs\FileScav\FileScav.exe"

[Application]
Title="File Scavenger 3.0"
Source="%SystemDrive%\Programs\FileScav"
Destination="%Ramdrv%\FileScav"
Launch="FileScav.exe"
StartOnly=0
Overwrite=1
DeleteAfter="OnlyCopied"

[CopyFiles]
*.*=2
Nu2Menu XML <!-- Nu2Menu entry for FileScav -->
<NU2MENU>
<MENU ID="Programs">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\FileScav\FileScav.r2g))" CMD="RUN" FUNC="@GetProgramDrive()\I386\System32\ReaLoader.exe @GetProgramDrive()\Programs\FileScav\FileScav.r2g" PARM="1">File Scavenger 3.0</MITEM>
</MENU>
</NU2MENU>
 
 

MWSnap autoHelp.cmd

Top

INF Head +Basics %GET% CREDITS "reatogo" "" "314-104" "15.07.2005"
%GET% HEAD "590" "MWSnap.exe" "MwSnap Screenshot Utility" "disk" "Startup" "" "Rea" "Nu2" "lang"
Files Download %GET% DOWNLOAD "" "" "" "http://www.mirekw.com/winfreeware/files/MWSnap300.zip"
%GET% DOWNLOAD "" "" "" "http://www.mirekw.com/winfreeware/files/MWSnapLang.zip"
File Copy +print to INF

incl. Language Selection

%GET% FACTORY-PATH "MWSnap"
%GET% FILES "a" "MWSnap.exe" "" "MWSnap.chm" ""
%GET% SELECTION "LANGUAGE" "" "Brazil_Portuguese" "" "Catalan_Valencian" "" "Chinese_BIG5" "" "Czech" "" "Deutsch" "" "English" "" "Espaäol" "" "Fran‡ais" "" "Galego" "" "Italiano" "" "Macedonian" "" "Magyar" "" "Nederlands" "" "Polski" "" "Portuguese" "" "Russian" "" "Slovenski" "" "Svenska"
%GET% FILES "b" "%result%.ini" ""
if exist Files\*.ini move Files\*.ini Files\lang &move Files\*.bmp Files\lang
Creation of static INF-part ECHO [Default.AddReg] %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\AutoSave", "AutoSaveFolder", "B:\" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Options", "Language", "%result%.ini" %OUT%
%line%
ECHO 0x1, "Software\MirWoj\MWSnap\AutoSave", "AutoSaveName", "MWSnap" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\AutoSave", "AutoSaveNamePrompt", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\AutoSave", "AutoSaveActive", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\AutoSave", "AutoSaveFormat", "jpeg" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\DlgCheck", "ChkCloseMinimizes", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Options", "Autostart", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Options", "MinimizeToTray", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Options", "AlwaysInTray", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Options", "StartMinimized", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Options", "MarkCrsPos", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Options", "ShowPreviewBox", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Options", "CloseMinimizes", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Saving", "LastSavePath", "" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Saving", "LastFilterIndex", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Saving", "LastJPEGQuality", "75" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Saving", "LastColorBits", "24" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Saving", "LastTransparent", "0" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Saving", "LastTranspPixel", "0" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Settings", "DelayTime", "5150" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Settings", "SnapHidePgm", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Settings", "SnapRestPgm", "0" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\Settings", "AskOverwrite", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\UI", "ViewPanelCapt", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\UI", "ViewPanelPict", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\UI", "ViewSttBar", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\UI", "ViewToolbMain", "1" %OUT%
ECHO 0x1, "Software\MirWoj\MWSnap\UI", "ViewToolbPict", "1" %OUT%

 

Some Details on autoHelp scripting:

 

%GET% HEAD "590" "MWSnap.exe" "MwSnap Screenshot Utility" "disk" "Startup" "" "Rea" "Nu2" "lang"

Startup creates an entry in the autostart section of the XP start menu on CD. Will supress creation of a shortcut on the desktop.

 

Programs or Startup.

Programs triggers XPE shortcut in startmenu. Desktop shortcut always per default. Startup ->autostart. and no shortcut on desktop.

 

%GET% DOWNLOAD "" "" "" "http://www.mirekw.com/winfreeware/files/MWSnapLang.zip"

%GET% DOWNLOAD "" "" "" "http://www.mirekw.com/winfreeware/files/MWSnapLang.zip"

 

Two ZIP-downloads of the needed files. One for the program files, one for addl language files. The downloads merge in "Files".

 

if exist Files\*.ini move Files\*.ini Files\lang &move Files\*.bmp Files\lang  (will move the files from the second download to the subfolder Files\lang)

above autoHelp.cmd creates these files:

Resulting INF ; PE Builder v3 plug-in INF file
; MWSnap.inf
; reatogo autoHelp plugin created by reatogo
; Last Revision 15.07.2005

[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="590 MwSnap Screenshot Utility (314-104)"
Enable=1
Help="\"

[SetValue]
; reatogoMenu-Entry for MwSnap Screenshot Utility
"reatogoMenu.ini", "Entries", "MwSnap Screenshot Utility", "%SystemDrive%\Programs\MWSnap\MWSnap.exe"

[Append]
nu2menu.xml, MWSnap_nu2menu.xml

[Software.Addreg]
; XPE Shortcuts for MwSnap Screenshot Utility, pointing to ReaLoader
0x2, "Sherpya\XPEinit\Startup", "MwSnap Screenshot Utility", "%SystemDrive%\Programs\MWSnap\MWSnap.r2g"

[WinntDirectories]
a="Programs\MWSnap",3
b="Programs\MWSnap\lang",3

[SourceDisksFiles]
MWSnap.r2g=a,,1
Files\MWSnap.exe=a,,4
Files\MWSnap.chm=a,,4
Files\lang\Deutsch.ini=b,,4

[Default.AddReg]
0x1, "Software\MirWoj\MWSnap\AutoSave", "AutoSaveFolder", "B:\"
0x1, "Software\MirWoj\MWSnap\Options", "Language", "Deutsch.ini"

0x1, "Software\MirWoj\MWSnap\AutoSave", "AutoSaveName", "MWSnap"
0x1, "Software\MirWoj\MWSnap\AutoSave", "AutoSaveNamePrompt", "1"
0x1, "Software\MirWoj\MWSnap\AutoSave", "AutoSaveActive", "1"
0x1, "Software\MirWoj\MWSnap\AutoSave", "AutoSaveFormat", "jpeg"
0x1, "Software\MirWoj\MWSnap\DlgCheck", "ChkCloseMinimizes", "1"
0x1, "Software\MirWoj\MWSnap\Options", "Autostart", "1"
0x1, "Software\MirWoj\MWSnap\Options", "MinimizeToTray", "1"
0x1, "Software\MirWoj\MWSnap\Options", "AlwaysInTray", "1"
0x1, "Software\MirWoj\MWSnap\Options", "StartMinimized", "1"
0x1, "Software\MirWoj\MWSnap\Options", "MarkCrsPos", "1"
0x1, "Software\MirWoj\MWSnap\Options", "ShowPreviewBox", "1"
0x1, "Software\MirWoj\MWSnap\Options", "CloseMinimizes", "1"
0x1, "Software\MirWoj\MWSnap\Saving", "LastSavePath", ""
0x1, "Software\MirWoj\MWSnap\Saving", "LastFilterIndex", "1"
0x1, "Software\MirWoj\MWSnap\Saving", "LastJPEGQuality", "75"
0x1, "Software\MirWoj\MWSnap\Saving", "LastColorBits", "24"
0x1, "Software\MirWoj\MWSnap\Saving", "LastTransparent", "0"
0x1, "Software\MirWoj\MWSnap\Saving", "LastTranspPixel", "0"
0x1, "Software\MirWoj\MWSnap\Settings", "DelayTime", "5150"
0x1, "Software\MirWoj\MWSnap\Settings", "SnapHidePgm", "1"
0x1, "Software\MirWoj\MWSnap\Settings", "SnapRestPgm", "0"
0x1, "Software\MirWoj\MWSnap\Settings", "AskOverwrite", "1"
0x1, "Software\MirWoj\MWSnap\UI", "ViewPanelCapt", "1"
0x1, "Software\MirWoj\MWSnap\UI", "ViewPanelPict", "1"
0x1, "Software\MirWoj\MWSnap\UI", "ViewSttBar", "1"
0x1, "Software\MirWoj\MWSnap\UI", "ViewToolbMain", "1"
0x1, "Software\MirWoj\MWSnap\UI", "ViewToolbPict", "1"
 
Loader Configuration File ; Configure file for Reatogo-Loader
;
; MwSnap Screenshot Utility

[Shell]
IconFile="%SystemDrive%\Programs\MWSnap\MWSnap.exe"

[Application]
Title="MwSnap Screenshot Utility"
Source="%SystemDrive%\Programs\MWSnap"
Destination="%Ramdrv%\MWSnap"
Launch="MWSnap.exe"
StartOnly=1
Overwrite=1
DeleteAfter="OnlyCopied"

[CopyFiles]
*.*=2
lang\*.*=2
Nu2Menu XML <!-- Nu2Menu entry for MWSnap -->
<NU2MENU>
<MENU ID="Programs">
<MITEM TYPE="ITEM" DISABLED= "@Not(@FileExists(@GetProgramDrive()\Programs\MWSnap\MWSnap.exe))" CMD="RUN"FUNC="@GetProgramDrive()\Programs\MWSnap\MWSnap.exe">MwSnap Screenshot Utility</MITEM>
</MENU>
</NU2MENU>
 

2xExplorer autoHelp.cmd

Top

INF Head +Basics %GET% CREDITS "reatogo" "" "314-104" "27.07.2005"
%GET% HEAD "550" "2xExplorer.exe" "" "ram" "Programs" "" "Rea" "Nu2"
Files Download %GET% DOWNLOAD "2xExplorer" "" "" "http://wcarchive.cdrom.com/pub/simtelnet/win95/fileutl/2xex1412.zip"
File Copy +Print to INF %GET% FILES "a" "2xExplorer.exe" "" "2xExplorer.exe.manifest"
Creation of static INF-part

ECHO [Default.AddReg] %OUT%
ECHO 0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\00", "szIdentifier", "" %OUT%
ECHO 0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\00", "szAutoText", "" %OUT%
ECHO 0x4, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\00", "nBackTrack", 0x0 %OUT%
ECHO 0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\01", "szIdentifier", "Bold HTML" %OUT%
ECHO 0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\01", "szAutoText", "<b></b>" %OUT%
ECHO 0x4, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\01", "nBackTrack", 0x4 %OUT%
ECHO 0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\02", "szIdentifier", "Link HTML" %OUT%
ECHO 0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\02", "szAutoText", "<a HREF=""""></a>" %OUT%
ECHO 0x4, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\02", "nBackTrack", 0x6 %OUT%
ECHO 0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\03", "szIdentifier", "" %OUT%
ECHO 0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\03", "szAutoText", "" %OUT%


etc ...

 

Some Details on autoHelp scripting:

 

%GET% DOWNLOAD "2xExplorer" "" "" "http://wcarchive.cdrom.com/pub/simtelnet/win95/fileutl/2xex1412.zip"

 

"Inner Folder" Compensation needed here:

This download unzips with a subfolder (like 2xExplorer\2xExplorer\--content--), which would result in "Files\2xExplorer\...".

 

Specifying the inner folder will correct it to "Files\--content--".

 

A good example for a simple plugin, downloading the needed files.

 

above autoHelp.cmd creates these files:

Resulting INF

; PE Builder v3 plug-in INF file
; 2xExplorer.inf
; reatogo autoHelp plugin created by reatogo
; Last Revision 27.07.2005

[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="550 2xExplorer (314-104)"
Enable=1
Help="\"

[SetValue]
; reatogoMenu-Entry for 2xExplorer
"reatogoMenu.ini", "Entries", "2xExplorer", "%SystemDrive%\Programs\2xExplorer\2xExplorer.exe"

[Append]
nu2menu.xml, 2xExplorer_nu2menu.xml

[Software.Addreg]
; XPE Shortcuts for 2xExplorer, pointing to ReaLoader
0x2, "Sherpya\XPEinit\Desktop", "2xExplorer", "%SystemDrive%\Programs\2xExplorer\2xExplorer.r2g"
0x2, "Sherpya\XPEinit\Programs", "2xExplorer", "%SystemDrive%\Programs\2xExplorer\2xExplorer.r2g"

[WinntDirectories]
a="Programs\2xExplorer",3

[SourceDisksFiles]
2xExplorer.r2g=a,,1
Files\2xExplorer.exe=a,,4
Files\2xExplorer.exe.manifest=a,,4

[Default.AddReg]
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\00", "szIdentifier", ""
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\00", "szAutoText", ""
0x4, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\00", "nBackTrack", 0x0
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\01", "szIdentifier", "Bold HTML"
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\01", "szAutoText", "<b></b>"
0x4, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\01", "nBackTrack", 0x4
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\02", "szIdentifier", "Link HTML"
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\02", "szAutoText", "<a HREF=""""></a>"
0x4, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\02", "nBackTrack", 0x6
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\03", "szIdentifier", ""
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\03", "szAutoText", ""
0x4, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\03", "nBackTrack", 0x0
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\04", "szIdentifier", ""
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\04", "szAutoText", ""
0x4, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\04", "nBackTrack", 0x0
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\05", "szIdentifier", ""
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\05", "szAutoText", ""
0x4, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\05", "nBackTrack", 0x0
0x1, "Software\ZabaraKatranemia Plc\2xExplorer\AutoText Settings\06", "szIdentifier", ""
 

etc ...

Loader Configuration File ; Configure file for Reatogo-Loader
;
; 2xExplorer

[Shell]
IconFile="%SystemDrive%\Programs\2xExplorer\2xExplorer.exe"

[Application]
Title="2xExplorer"
Source="%SystemDrive%\Programs\2xExplorer"
Destination="%Ramdrv%\2xExplorer"
Launch="2xExplorer.exe"
StartOnly=0
Overwrite=1
DeleteAfter="OnlyCopied"

[CopyFiles]
*.*=2
Nu2Menu XML <!-- Nu2Menu entry for 2xExplorer -->
<NU2MENU>
<MENU ID="Programs">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\2xExplorer\2xExplorer.r2g))" CMD="RUN" FUNC="@GetProgramDrive()\I386\System32\ReaLoader.exe @GetProgramDrive()\Programs\2xExplorer\2xExplorer.r2g" PARM="1">2xExplorer</MITEM>
</MENU>
</NU2MENU>
 

DeepBurner autoHelp.cmd

Top

INF Head +Basics %GET% CREDITS "reatogo" "" "314-104" "28.07.2005"
%GET% HEAD "510" "DeepBurner.exe" "" "ram" "Programs" "" "Rea" ""
Program Download

%GET% DOWNLOAD "" "" "" "http://www.deepburner.com/download/DeepBurner1.exe"

File Copy +print to INF %GET% PROGPATH "HKEY_CURRENT_USER\Software\Astonsoft\DeepBurner\Settings" "AppPath"
%GET% FILES "a" "DeepBurner.exe" "" "deepburner.exe.manifest" "" "DeepBurner.lng" "" "bass.dll" "" "BurnerHelp.chm" ""
%GET% FILES "-2" "msacm32.dll" ""
Creation of static INF-part

ECHO [Default.AddReg] %OUT%
ECHO 0x2, "Software\Astonsoft\DeepBurner\Settings", "AppPath", "%%SystemDrive%%\Programs\DeepBurner\" %OUT%
ECHO 0x4, "Software\Astonsoft\DeepBurner\Settings", "Eject_BurnDone", 0x1 %OUT%
ECHO 0x4, "Software\Astonsoft\DeepBurner\Settings", "Eject_EraseDone", 0x0 %OUT%
ECHO 0x4, "Software\Astonsoft\DeepBurner\Settings", "InitializeASPI_SystemFirst", 0x1 %OUT%
ECHO 0x4, "Software\Astonsoft\DeepBurner\Settings", "Autorun_GridEnabled", 0x1 %OUT%
ECHO 0x4, "Software\Astonsoft\DeepBurner\Settings", "Autorun_GridXOrigin", 0x0 %OUT%
ECHO 0x4, "Software\Astonsoft\DeepBurner\Settings", "Autorun_GridYOrigin", 0x0 %OUT%
ECHO 0x4, "Software\Astonsoft\DeepBurner\Settings", "Autorun_GridStep", 0xA %OUT%
ECHO 0x4, "Software\Astonsoft\DeepBurner\Settings", "DriveBufferSize", 0x8 %OUT%
ECHO 0x1, "Software\Astonsoft\DeepBurner\Settings", "Autorun_Folder", "Autorun" %OUT%
ECHO 0x1, "Software\Astonsoft\DeepBurner\Settings", "DefaultDrive", "" %OUT%
ECHO 0x4, "Software\Astonsoft\DeepBurner\Settings", "SoundsEnabled", 0x0 %OUT%
ECHO 0x0, "Software\Astonsoft\DeepBurner\Tools" %OUT%
ECHO 0x0, "Software\Astonsoft\DeepBurner\Tools\CommandStrings" %OUT%
ECHO 0x0, "Software\Astonsoft\DeepBurner\Tools\Names" %OUT%
ECHO 0x0, "Software\Astonsoft\DeepBurner\Tools\Paths" %OUT%
ECHO 0x3, "Software\Astonsoft\DeepBurner\UI", "Data Burn Window", fc,ff,ff,ff,e2,ff,ff,ff,08,04,00,00,8e,02,00,00,00,c3, 52,00 %OUT%
ECHO 0x3, "Software\Astonsoft\DeepBurner\UI", "Explorer Window", fc,ff,ff,ff,e2,ff,ff,ff,08,04,00,00,8e,02,00,00,00,c3,52, 00 %OUT%
ECHO 0x3, "Software\Astonsoft\DeepBurner\UI", "About Window", 00,00,00,00,00,00,00,00,30,01,00,00,2b,01,00,00,00,1c,a1,01 %OUT%
ECHO 0x3, "Software\Astonsoft\DeepBurner\UI", "Settings Window", 96,00,00,00,96,00,00,00,05,01,00,00,f3,00,00,00,00,c3,52, 00 %OUT%
ECHO 0x3, "Software\Astonsoft\DeepBurner\UI", "Main Window", fc,ff,ff,ff,fc,ff,ff,ff,08,04,00,00,e9,02,00,00,02,c3,52,00 %OUT%

 

Nice program, but wonīt run under Nu2 due to missing files (as far as I could find)

 

above autoHelp.cmd creates these files:

Resulting INF ; PE Builder v3 plug-in INF file
; DeepBurner.inf
; reatogo autoHelp plugin created by reatogo
; Last Revision 28.07.2005

[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="510 DeepBurner (314-104)"
Enable=1
Help="\"

[SetValue]
; reatogoMenu-Entry for DeepBurner
"reatogoMenu.ini", "Entries", "DeepBurner", "%SystemDrive%\Programs\DeepBurner\DeepBurner.exe"

[Software.Addreg]
; XPE Shortcuts for DeepBurner, pointing to ReaLoader
0x2, "Sherpya\XPEinit\Desktop", "DeepBurner", "%SystemDrive%\Programs\DeepBurner\DeepBurner.r2g"
0x2, "Sherpya\XPEinit\Programs", "DeepBurner", "%SystemDrive%\Programs\DeepBurner\DeepBurner.r2g"

[WinntDirectories]
a="Programs\DeepBurner",3

[SourceDisksFiles]
DeepBurner.r2g=a,,1
Files\DeepBurner.exe=a,,4
Files\deepburner.exe.manifest=a,,4
Files\DeepBurner.lng=a,,4
Files\bass.dll=a,,4
Files\BurnerHelp.chm=a,,4
msacm32.dll=2,,4

[Default.AddReg]
0x2, "Software\Astonsoft\DeepBurner\Settings", "AppPath", "%SystemDrive%\Programs\DeepBurner\"
0x4, "Software\Astonsoft\DeepBurner\Settings", "Eject_BurnDone", 0x1
0x4, "Software\Astonsoft\DeepBurner\Settings", "Eject_EraseDone", 0x0
0x4, "Software\Astonsoft\DeepBurner\Settings", "InitializeASPI_SystemFirst", 0x1
0x4, "Software\Astonsoft\DeepBurner\Settings", "Autorun_GridEnabled", 0x1
0x4, "Software\Astonsoft\DeepBurner\Settings", "Autorun_GridXOrigin", 0x0
0x4, "Software\Astonsoft\DeepBurner\Settings", "Autorun_GridYOrigin", 0x0
0x4, "Software\Astonsoft\DeepBurner\Settings", "Autorun_GridStep", 0xA
0x4, "Software\Astonsoft\DeepBurner\Settings", "DriveBufferSize", 0x8
0x1, "Software\Astonsoft\DeepBurner\Settings", "Autorun_Folder", "Autorun"
0x1, "Software\Astonsoft\DeepBurner\Settings", "DefaultDrive", ""
0x4, "Software\Astonsoft\DeepBurner\Settings", "SoundsEnabled", 0x0
0x0, "Software\Astonsoft\DeepBurner\Tools"
0x0, "Software\Astonsoft\DeepBurner\Tools\CommandStrings"
0x0, "Software\Astonsoft\DeepBurner\Tools\Names"
0x0, "Software\Astonsoft\DeepBurner\Tools\Paths"
0x3, "Software\Astonsoft\DeepBurner\UI", "Data Burn Window", fc,ff,ff,ff,e2,ff,ff,ff,08,04,00,00,8e,02,00,00,00,c3, 52,00
0x3, "Software\Astonsoft\DeepBurner\UI", "Explorer Window", fc,ff,ff,ff,e2,ff,ff,ff,08,04,00,00,8e,02,00,00,00,c3,52, 00
0x3, "Software\Astonsoft\DeepBurner\UI", "About Window", 00,00,00,00,00,00,00,00,30,01,00,00,2b,01,00,00,00,1c,a1,01
0x3, "Software\Astonsoft\DeepBurner\UI", "Settings Window", 96,00,00,00,96,00,00,00,05,01,00,00,f3,00,00,00,00,c3,52, 00
0x3, "Software\Astonsoft\DeepBurner\UI", "Main Window", fc,ff,ff,ff,fc,ff,ff,ff,08,04,00,00,e9,02,00,00,02,c3,52,00
 
Loader Configuration File ; Configure file for Reatogo-Loader
;
; DeepBurner

[Shell]
IconFile="%SystemDrive%\Programs\DeepBurner\DeepBurner.exe"

[Application]
Title="DeepBurner"
Source="%SystemDrive%\Programs\DeepBurner"
Destination="%Ramdrv%\DeepBurner"
Launch="DeepBurner.exe"
StartOnly=0
Overwrite=1
DeleteAfter="OnlyCopied"

[CopyFiles]
*.*=2
Nu2Menu XML No Nu2Menu for DeepBurner
 

XnView autoHelp.cmd

Top

INF Head +Basics %GET% CREDITS "reatogo" "" "314-104" "25.07.2005"
%GET% HEAD "590" "XnView.exe" "" "ram" "Programs" "" "Rea" "" "cache" "Filters" "Lut" "PlugIns" "skins" "language" "Help" "skins\Xp"
Program Download %GET% DOWNLOAD "XnView" "" "" "download.xnview.com/XnView-win.zip"
File Copy +print to INF %GET% PROGPATH "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\XnView_is1" "InstallLocation"
%GET% FILES "a" "xnview.exe" "" "xnview.exe.manifest"
%GET% SELECTION "LANGUAGE" "German" "de" "English" "en" "French" "fr" "" "be" "" "cs" "" "es" "Finnish" "fi" "Italian" "it" "Dutch" "nl" "Norwegian" "no" "Polish" "pl" "" "pt" "Romanian" "ro" "Russian" "ru" "" "sv" "" "th" "Japaneese" "ja" "" "hr"
%GET% FILES "b" "*.*"
%GET% FILES "c" "*.*"
%GET% FILES "d" "*.*"
%GET% FILES "e" "*.*"
%GET% FILES "f" "*.*"
%GET% FILES "g" "xnview%result%.dll"
%GET% FILES "h" "*.*"
%GET% FILES "i" "*.*"
Creation of static INF-part

ECHO [Default.AddReg] %OUT%
ECHO 0x1, "Software\XnView\Start", "Language", "%result%" %OUT%
%line%
ECHO [Software.AddReg] %OUT%
ECHO 0x1, "Classes\XnView.Image", "", "XnView Image" %OUT%
ECHO 0x1, "Classes\XnView.Image\DefaultIcon", "", "%%SystemDrive%%\Programs\XnView\XnView.exe,0" %OUT%
ECHO 0x1, "Classes\XnView.Image\shell\open\command", "", "\"%%SystemDrive%%\Programs\XnView\XnView.exe\" \"%%1\"" %OUT%
ECHO 0x1, "Classes\XnView.Slide", "", "XnView Slide" %OUT%
ECHO 0x1, "Classes\XnView.Slide\DefaultIcon", "", "%%SystemDrive%%\Programs\XnView\XnView.exe,0" %OUT%
ECHO 0x1, "Classes\XnView.Slide\shell\open\command", "", "\"%%SystemDrive%%\Programs\XnView\XnView.exe\" -slide \"%%1\"" %OUT%
%line%
ECHO [Default.AddReg] %OUT%
ECHO 0x4, "Software\Microsoft\Windows\CurrentVersion\Explorer", "Browse For Folder Height", 0x00000120 %OUT%
ECHO 0x4, "Software\Microsoft\Windows\CurrentVersion\Explorer", "Browse For Folder Width", 0x0000013e %OUT%
ECHO 0x1, "Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{1A5921C4-B0BA-4BF1-A864-A04EC19E48D1}\ShellFolder", "Attributes", "76A06F90821649C8A5A413" %OUT%
ECHO 0x1, "Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{5C343AE2-6264-440C-B919-58A8A9BD4B20}\ShellFolder", "Attributes", "76EBABA430745D9C8F95F0" %OUT%
%line%
ECHO 0x4, "Software\XnView", "UseRegistry", 0x00000001 %OUT%
ECHO 0x4, "Software\XnView\AutoCrop", "Tolerance", 0x00000000 %OUT%
ECHO 0x4, "Software\XnView\AutoCrop", "BackColor", 0x00000000 %OUT%
ECHO 0x4, "Software\XnView\Browser", "Layout", 0x00000003 %OUT%
ECHO 0x4, "Software\XnView\Browser", "TreeViewWidth", 0x00000161 %OUT%
ECHO 0x4, "Software\XnView\Browser", "TreeViewHeight", 0x0000015e %OUT%
ECHO 0x4, "Software\XnView\Browser", "ListViewWidth", 0x0000029b %OUT%
ECHO 0x4, "Software\XnView\Browser", "ListViewHeight", 0x0000026f %OUT%

 

etc ...

 

Some Details on autoHelp scripting:

 

%GET% HEAD "590" "XnView.exe" "" "ram" "Programs" "" "Rea" "" "cache" "Filters" "Lut" "PlugIns" "skins" "language" "Help" "skins\Xp"

 

Prints to the INF as followns and defines target directories for file copy action with %GET% FILES

 

[WinntDirectories]
a="Programs\XnView",3
b="Programs\XnView\
cache",3
c="Programs\XnView\
Filters",3
d="Programs\XnView\
Lut",3
e="Programs\XnView\
PlugIns",3
f="Programs\XnView\
skins",3
g="Programs\XnView\
language",3
h="Programs\XnView\
Help",3
i="Programs\XnView\
skins\Xp",3

 

Note: directory "a" is already pre-defined by the template.

 

Great ACDsee style program, but will definitely only run in XPE.

above autoHelp.cmd creates these files:

Resulting INF ; PE Builder v3 plug-in INF file
; XnView.inf
; reatogo autoHelp plugin created by reatogo
; Last Revision 25.07.2005

[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="590 XnView (314-104)"
Enable=1
Help="\"

[SetValue]
; reatogoMenu-Entry for XnView
"reatogoMenu.ini", "Entries", "XnView", "%SystemDrive%\Programs\XnView\XnView.exe"

[Software.Addreg]
; XPE Shortcuts for XnView, pointing to ReaLoader
0x2, "Sherpya\XPEinit\Desktop", "XnView", "%SystemDrive%\Programs\XnView\XnView.r2g"
0x2, "Sherpya\XPEinit\Programs", "XnView", "%SystemDrive%\Programs\XnView\XnView.r2g"

[WinntDirectories]
a="Programs\XnView",3
b="Programs\XnView\cache",3
c="Programs\XnView\Filters",3
d="Programs\XnView\Lut",3
e="Programs\XnView\PlugIns",3
f="Programs\XnView\skins",3
g="Programs\XnView\language",3
h="Programs\XnView\Help",3
i="Programs\XnView\skins\Xp",3

[SourceDisksFiles]
XnView.r2g=a,,1
Files\xnview.exe=a,,4
Files\xnview.exe.manifest=a,,4
Files\cache\*.*=b,,4
Files\Filters\*.*=c,,4
Files\Lut\*.*=d,,4
Files\PlugIns\*.*=e,,4
Files\skins\*.*=f,,4
Files\language\xnviewde.dll=g,,4
Files\Help\*.*=h,,4
Files\skins\Xp\*.*=i,,4

[Default.AddReg]
0x1, "Software\XnView\Start", "Language", "de"

[Software.AddReg]
0x1, "Classes\XnView.Image", "", "XnView Image"
0x1, "Classes\XnView.Image\DefaultIcon", "", "%SystemDrive%\Programs\XnView\XnView.exe,0"
0x1, "Classes\XnView.Image\shell\open\command", "", "\"%SystemDrive%\Programs\XnView\XnView.exe\" \"%1\""
0x1, "Classes\XnView.Slide", "", "XnView Slide"
0x1, "Classes\XnView.Slide\DefaultIcon", "", "%SystemDrive%\Programs\XnView\XnView.exe,0"
0x1, "Classes\XnView.Slide\shell\open\command", "", "\"%SystemDrive%\Programs\XnView\XnView.exe\" -slide \"%1\""

[Default.AddReg]
0x4, "Software\Microsoft\Windows\CurrentVersion\Explorer", "Browse For Folder Height", 0x00000120
0x4, "Software\Microsoft\Windows\CurrentVersion\Explorer", "Browse For Folder Width", 0x0000013e
0x1, "Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{1A5921C4-B0BA-4BF1-A864-A04EC19E48D1}\ShellFolder", "Attributes", "76A06F90821649C8A5A413"
0x1, "Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{5C343AE2-6264-440C-B919-58A8A9BD4B20}\ShellFolder", "Attributes", "76EBABA430745D9C8F95F0"

0x4, "Software\XnView", "UseRegistry", 0x00000001
0x4, "Software\XnView\AutoCrop", "Tolerance", 0x00000000
0x4, "Software\XnView\AutoCrop", "BackColor", 0x00000000
0x4, "Software\XnView\Browser", "Layout", 0x00000003
0x4, "Software\XnView\Browser", "TreeViewWidth", 0x00000161
0x4, "Software\XnView\Browser", "TreeViewHeight", 0x0000015e
0x4, "Software\XnView\Browser", "ListViewWidth", 0x0000029b
0x4, "Software\XnView\Browser", "ListViewHeight", 0x0000026f

etc ...

Loader Configuration File ; Configure file for Reatogo-Loader
;
; XnView

[Shell]
IconFile="%SystemDrive%\Programs\XnView\XnView.exe"

[Application]
Title="XnView"
Source="%SystemDrive%\Programs\XnView"
Destination="%Ramdrv%\XnView"
Launch="XnView.exe"
StartOnly=0
Overwrite=1
DeleteAfter="OnlyCopied"

[CopyFiles]
*.*=2
cache\*.*=2
Filters\*.*=2
Lut\*.*=2
PlugIns\*.*=2
skins\*.*=2
language\*.*=2
Help\*.*=2
skins\Xp\*.*=2
Nu2Menu XML No Nu2 XML for XnView
 

Top