Help - Search - Members - Calendar
Full Version: siw, free, autoHelp plugin
The CD Forum > Bart's PE Builder > AutoHelp Plugins
Nikky
Today I’ve found this util. similar name already exists but this have much more details and don’t need install.
smile.gif



Plugin for System Information, free
(no. 198 on the download list)

-For Nu2menu and XPE

-If the program is not installed, the plugin will download it for you.

-Info HERE

Regards, Nikky smile.gif






autoHelp_siw.cmd
QUOTE
@echo off& Color F0&MODE CON: COLS=73 LINES=20&if not exist ..\..\REA.cmd echo Wrong Directory...&pause&exit
set SILENT=%1&set GET=call ..\..\REA.cmd
If not "%SILENT%" == "silent" if exist start.inf.txt echo The plugin is already configured...&pause&exit
If "%MASTER%" == "" If "%SILENT%" == "silent" if exist start.inf goto :EOF

:: ==================================================
:: REATOGO AUTOHELP BASIC PLUGIN SETTINGS
:: ==================================================

%GET% CREDITS "Nikky" "" "3110a-104" "2006-05-04" ""

%GET% HEAD "780" "siw.exe" "System Information" "cmd" "None" "System Info" "Rea" "Nu2" ""

%GET% INFO "http://www3.sympatico.ca/gtopala/about_siw.html" "free"

:: ==================================================
:: CREATING THE REST OF THE PLUGIN
:: ==================================================

%GET% DOWNLOAD "exe" "" "" "http://www3.sympatico.ca/gtopala/siw.exe"

%GET% FILES "-a" "siw.exe"

%line%

ECHO [Software.AddReg] %OUT%
ECHO ; XPE Shortcuts for System Information %OUT%
ECHO 0x2, "Sherpya\XPEinit\Desktop", "System Information", "%%SystemDrive%%\Programs\siw\Start_siw.cmd||%%SystemDrive%%\Programs\siw\siw.exe,1" %OUT%
ECHO 0x2, "Sherpya\XPEinit\Programs", "System Info\System Information", "%%SystemDrive%%\Programs\siw\Start_siw.cmd||%%SystemDrive%%\Programs\siw\siw.exe,1" %OUT%

set autoUPX=no
:: ==================================================
:: FINAL CLEANUP
if exist start.inf rename start.inf start.inf.txt&%GET% FINAL&exit
%GET% FINAL
:: ==================================================




Start_siw.cmd
QUOTE
@echo off&Color F8

if "%temp%" == "" goto :EOF
if exist "%temp%\siw\siw.exe" goto _prep

xcopy "%~dp0*.*" "%temp%\siw\" /I /E /R /Y /C /H > nul

:_prep

:_run
start %temp%\siw\siw.exe /w




Note for users not using the reatogo setup:
The plugin depends on certain files to be in the PEbuilder root.
Download Getting_Started.exe and run it in your folder "plugin". This will put those depends into your setup and then present you with the list of all available autoHelp plugins, including this one.
Get it here
Siegfried
Thanks for your plugin, Nikky! biggrin.gif

From what you had in the code, I think that you wanted to start the prog on ramdrive, using parameter "/w" and icon no. 1.

The changes I made will do that. I edited your post to this and also attached the revised version to your post.

Please check it out and if it is what you wanted, we´ll upload and add it to the list right away! cool.gif

Siegfried
Nikky
Sorry for misunderstanding, /w switch is not needed. For XPE-Reatogo env. ReaLoader is enough. For Nu2Menu env. We can use cmd to start. So my suggestion of files is:

autoHelp_siw.cmd
QUOTE
@echo off& Color F8&MODE CON: COLS=73 LINES=20&if not exist ..\..\REA.cmd echo Wrong Directory...&pause&exit
set SILENT=%1&set GET=call ..\..\REA.cmd
If not "%SILENT%" == "silent" if exist start.inf.txt echo The plugin is already configured...&pause&exit
If "%MASTER%" == "" If "%SILENT%" == "silent" if exist start.inf goto :EOF

:: ==================================================
:: REATOGO AUTOHELP BASIC PLUGIN SETTINGS
:: ==================================================

%GET% CREDITS "Nikky" "" "3110a-104" "04/05/06" ""

%GET% HEAD "780" "siw.exe" "System Information" "ram" "Programs" "System Info" "Rea" "Nu2" ""

%GET% INFO "http://www3.sympatico.ca/gtopala/about_siw.html" "free"

:: ==================================================
:: CREATING THE REST OF THE PLUGIN
:: ==================================================

%GET% DOWNLOAD "exe" "" "" "http://www3.sympatico.ca/gtopala/siw.exe"

%GET% FILES "-a" "siw.exe"

%line%

set autoUPX=no

:: ==================================================
:: FINAL CLEANUP
if exist start.inf rename start.inf start.inf.txt&%GET% FINAL&exit
%GET% FINAL
:: ==================================================
siw_nu2menu.xml
QUOTE
<!-- Nu2Menu entry for siw -->
<NU2MENU>
<MENU ID="Programs">
<MITEM TYPE="POPUP" DISABLED="@Not(@FileExists(@GetProgramDrive()\PROGRAMS\siw\*.*))" MENUID="System Info">System Info</MITEM>
</MENU>
<MENU ID="System Info">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\siw\siw.exe))" CMD="RUN" FUNC="@GetProgramDrive()\Programs\siw\Start_siw.cmd" PARM="1">System Information</MITEM>
</MENU>
</NU2MENU>


Start_siw.cmd
QUOTE
@echo off&Color F8

if "%temp%" == "" goto :EOF
if exist "%temp%\siw\siw.exe" goto _prep

xcopy "%~dp0*.*" "%temp%\siw\" /I /E /R /Y /C /H > nul

:_prep

:_run
start %temp%\siw\siw.exe


Another adds prg. internally have pcidevs.txt witch is actual. When it become old just add actual pcidevs.txt with prg. in same folder. PCIDEVS can find here.
Siegfried
Nikky,
The ram option is nice but it has the problem that if Nu2 users run the CD on a real system, it will not start the program but only display the loader definition text file.

I Nu2 is enabled always use "cmd" to run the prog on the ramdrive.

From your original post I took it that you want to start with a switch and a special icon. If that is not the case, it is just a simple case of a single-exe prog to run on ramdrive.

Now you mention, that "pcidevs.txt" is needed with the latest defs.

That is done with an "Update_Plugin.cmd" in the plugin (update the plugin before build)
and with "update.cmd" on CD (download latest defs when booted with CD).

Both is implemented in the attached version.

Let me know, if it does everything you want, so I can finally upload your new plugin. biggrin.gif

Siegfried
Nikky
Yes, everything is now ok. PCIDEVS.txt is not needed, it’s incorporated in prg. I only suggested it can be added later. So just rem:
:: %GET% DOWNLOAD "exe" "" "" "http://members.datafast.net.au/dft0802/downloads/pcidevs.txt"

biggrin.gif Nikky
Siegfried
He Nikky,
why do you mention PCIDEVS.txt if it is not needed?

Please let us stop confusing the issue. sad.gif

If it is not needed, just don´t mention it in the first place.
If it is needed once the original download of the EXE is outdated then the plugin as I made the last version is what the function requires and what should go online. cool.gif

Siegfried biggrin.gif

Edit: this whould supress the download of the defs file during the original download.
Update run will later add it.

QUOTE
:: ==================================================

:: only effective during update run:
if exist siw.exe
%GET% DOWNLOAD "exe" "" "" "http://members.datafast.net.au/dft0802/downloads/pcidevs.txt"

%GET% DOWNLOAD "exe" "" "" "http://www3.sympatico.ca/gtopala/siw.exe"

%GET% FILES "-a" "siw.exe" "" "pcidevs.txt" ""

set autoUPX=no
:: ==================================================
Nikky
Don't be angry, you have good point. Sorry for confusing you. It can go online.

Nikky biggrin.gif
Siegfried
QUOTE (Nikky @ May 8 2006, 10:26 AM) *
Don't be angry, you have good point. Sorry for confusing you. It can go online.

Nikky biggrin.gif


More confused than angry, Nikky! biggrin.gif
I tried to make it the way you want it, but had problems figuring out what you want! laugh.gif

What do you think about the compromize presented in the edit above. I think that adds the function but still keeps the original size down.

Siegfried
Nikky
You have free hands. At least yoa are chif guru.

Nikky
Siegfried
OK, it´ll be online as no. 198 within the next 5 minutes biggrin.gif

Again, thanks for your plugin!
Siegfried
Nikky
Siegfried

UPDATE

Autor move to new host. Atached updated plugin for upload:Click to view attachment
Siegfried
Thanks Nikky, your update is online. biggrin.gif

Siegfried
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.