Help - Search - Members - Calendar
Full Version: QuickZip, free, autoHelp plugin
The CD Forum > Bart's PE Builder > AutoHelp Plugins
gibo
Plugin for QuickZip 4, free
(no. 207 on the download list)

-For Nu2menu and XPE

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

-Info HERE

Regards, Gibo smile.gif






autoHelp_QuickZip.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 "Gibo" "" "317-104" "04/08/2006" "QuickZip4"

%GET% HEAD "680" "QuickZip.exe" "QuickZip 4" "disk" "Programs" "" "Rea" "Nu2" ""

:: Homepage URL of the program for Info:
:: If prog not "free" remove "free"
%GET% INFO "http://www.quickzip.org/quickzip/whatsnew450.php" "free"

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

:: Note: PROGPATH is already defined.
:: ==================================================

:: Download the program if not installed:
%GET% DOWNLOAD "exe" "" "" "http://home.netvigator.com/~mso6f/quickzip.exe"

:: Importing configuration file to user profile
ECHO b="$ramdrv$\$appdata$",3 %OUT%

:: To exclude up to 20 files from copying, just list them in the ""
%GET% FOLDER "a" "unins000.*" "" "*.rtf" "" "QuickZip.conf" "" "" "" "" ""
%GET% Files "-b" "Pre\Localisation\%lang%.txt" "QuickZip45.ini" "" "" "" "" "" "" "" ""

set FromHost=yes
if not exist Files\QuickZip.exe set FromHost=no&call :GetFiles

:: lang
%GET% YES-NO "Include additional lang files? (700 kb)"
If "%result%" == "no" call :CleanUpLang

:: help
%GET% YES-NO "Include the help file? (150 Kb)"
If "%result%" == "no" del Files\quickzip.chm /q

:: Create QuickZip.conf pointing to %APPDATA%
SET Verconf=Files\QuickZip.conf
ECHO [Qzip]>> "%Verconf%"
ECHO ; 0 = HKCU >> "%Verconf%"
ECHO ; 1 = HKLM >> "%Verconf%"
ECHO ; 2 = Inifiles >> "%Verconf%"
ECHO StorageLocation=2 >> "%Verconf%"
ECHO StorageInifilename=%%APPDATA%%\QuickZip45.ini >> "%Verconf%"
ECHO WriteProtected=0 >> "%Verconf%"

:: Associate
%GET% YES-NO "Associate QuickZip as the default archiver for the most relevant archive tipe?"
If "%result%" == "yes" %GET% ADD-2-INF "Pre\Associate.inf.dat"

:: Include Context menu
%GET% YES-NO "Include Context menu when you right click file(s)?"
If "%result%" == "yes" %GET% ADD-2-INF "Pre\Context.inf.dat"


:: Uncomment to supress UPX dialog:
set autoUPX=no
:: ==================================================
:: FINAL CLEANUP
if exist start.inf rename start.inf start.inf.txt&%GET% FINAL&exit
%GET% FINAL
:: ==================================================


:CleanUpLang
:: =========================
move Files\Trans\%LANG%.ini Files\
del Files\Trans\*.ini
move Files\%LANG%.ini Files\Trans\
goto :EOF
:: =========================


:GetFiles
:: =========================
if not exist quickzip.exe goto :EOF
:: Unpack ISS archive
PRE\innounp -x -dTemp quickzip.exe
:: Importing Files
xcopy Temp\{app}\*.* Files\ /I /E /R /Y /C /H
:: Cleanup
rd Temp /s /q
ren "Files\UnzDll,1.dll" "UnzDll.dll"
del "Files\UnzDll,2.dll"
del Files\*.rtf
del Files\QuickZip.conf
goto :EOF
:: =========================




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
psc
it is $ramdrv$\$appdata$\...

But usually you do not have to think on this.

If you use a plugin provided by Reatogo, you only have to start autohelp_<your plugin>. cmd

If you want to create your own plugin. autoHelp-Creator does the work for you.

Try it and look into the autohelp_<your plugin>. cmd files and the results (in the <your plugin>.inf files)

Peter
gibo
QUOTE (psc @ Jun 26 2006, 03:38 PM) *
it is $ramdrv$\$appdata$\...

But usually you do not have to think on this.

If you use a plugin provided by Reatogo, you only have to start autohelp_<your plugin>. cmd

If you want to create your own plugin. autoHelp-Creator does the work for you.

Try it and look into the autohelp_<your plugin>. cmd files and the results (in the <your plugin>.inf files)

Peter

Thanks for your reply psc.

I create my autohelp plugin and i need to include a preference file into B:\Documents and Settings\Default User\Local Settings\
psc
Post yout autoHelp_<your plugin> here (add it as attachment)
and write as comment what additionally you want to process.

If there are any confidential contents like your license number etc. x it out.

Peter
gibo
@psc sorry for delay...

here is the autohelp.cmd:

autoHelp_quickzip.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 "Gibo" "" "317-104" "27/06/2006" "QuickZip4"

%GET% HEAD "680" "QuickZip.exe" "QuickZip 4" "disk" "Programs" "" "Rea" "Nu2" ""

:: Homepage URL of the program for Info:
:: If prog not "free" remove "free"
%GET% INFO "http://www.quickzip.org/quickzip/whatsnew450.php" "free"

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

:: Note: PROGPATH is already defined.
:: ==================================================

:: Download the program if not installed:
%GET% DOWNLOAD "exe" "" "" "http://home.netvigator.com/~mso6f/quickzip.exe"

:: Importing configuration file to user profile
ECHO b="$ramdrv$\$appdata$",3 %OUT%
ECHO c="$ramdrv$\Documents and Settings\Default User\Impostazioni locali",3 %OUT% ====== NOTE THIS =====



:: To exclude up to 20 files from copying, just list them in the ""
%GET% FOLDER "a" "unins000.*" "" "*.rtf" "" "QuickZip.conf" "" "" "" "" ""
%GET% Files "-b" "Pre\Localisation\%lang%.txt" "QuickZip45.ini" "" "" "" "" "" "" "" ""
%GET% Files "-c" "Pre\Localisation\%lang%.txt" "QuickZip45.ini" "" "" "" "" "" "" "" ""

set FromHost=yes
if not exist Files\QuickZip.exe set FromHost=no&call :GetFiles

:: lang
%GET% YES-NO "Include additional lang files? (700 kb)"
If "%result%" == "no" call :CleanUpLang

:: help
%GET% YES-NO "Include the help file? (150 Kb)"
If "%result%" == "no" del Files\quickzip.chm /q

:: Create QuickZip.conf pointing to %APPDATA%
SET conf=Files\QuickZip.conf
ECHO [Qzip]>> "%conf%"
ECHO ; 0 = HKCU >> "%conf%"
ECHO ; 1 = HKLM >> "%conf%"
ECHO ; 2 = Inifiles >> "%conf%"
ECHO StorageLocation=2 >> "%conf%"
ECHO StorageInifilename=%%APPDATA%%\QuickZip45.ini >> "%conf%"
ECHO WriteProtected=0 >> "%conf%"

:: Associate
%GET% YES-NO "Associate QuickZip as the default archiver for the most relevant archive tipe?"
If "%result%" == "yes" %GET% ADD-2-INF "Pre\Associate.inf.dat"

:: Include Context menu
%GET% YES-NO "Include Context menu when you right click file(s)?"
If "%result%" == "yes" %GET% ADD-2-INF "Pre\Context.inf.dat"


:: Uncomment to supress UPX dialog:
set autoUPX=no
:: ==================================================
:: FINAL CLEANUP
if exist start.inf rename start.inf start.inf.txt&%GET% FINAL&exit
%GET% FINAL
:: ==================================================


:CleanUpLang
:: =========================
move Files\Trans\%LANG%.ini Files\
del Files\Trans\*.ini
move Files\%LANG%.ini Files\Trans\
goto :EOF
:: =========================


:GetFiles
:: =========================
if not exist quickzip.exe goto :EOF
:: Unpack ISS archive
PRE\innounp -x -dTemp quickzip.exe
:: Importing Files
xcopy Temp\{app}\*.* Files\ /I /E /R /Y /C /H
:: Cleanup
rd Temp /s /q
ren "Files\UnzDll,1.dll" "UnzDll.dll"
del "Files\UnzDll,2.dll"
del Files\*.rtf
del Files\QuickZip.conf
goto :EOF
:: =========================


QuickZip45.ini must be copied into B:\Documents and Settings\Default User\Applications Data\ and
into B:\Documents and Settings\Default User\Impostazioni Locali\ (Impostazioni Locali == Local Settings for english users My source CD is XP Pro SP2 Italian....)

I try to find a kind of global variable like $ramdrv$\$localsettings$\ ---- obviously not work ---- to copy files into B:\Documents and Settings\Default User\Local Settings\ independently from the language....

I hope you understand me tongue.gif
Siegfried
QUOTE (gibo @ Jun 27 2006, 08:00 AM) *
@psc sorry for delay...

here is the autohelp.cmd:

autoHelp_quickzip.cmd
QuickZip45.ini must be copied into B:\Documents and Settings\Default User\Applications Data\ and
into B:\Documents and Settings\Default User\Impostazioni Locali\ (Impostazioni Locali == Local Settings for english users My source CD is XP Pro SP2 Italian....)

I try to find a kind of global variable like $ramdrv$\$localsettings$\ ---- obviously not work ---- to copy files into B:\Documents and Settings\Default User\Local Settings\ independently from the language....

I hope you understand me tongue.gif


Hi gibo,
Please try this:

These variables expand to the local name:
QUOTE
ECHO c="$ramdrv$\%docsandsettings%\Default User\%_localsettings_%",3 %OUT%


Two more things to check:
-the file exclusion in GET FOLDER is only effective when copied from the local installation.
If you expand the setup-EXE, you have to delete these files in that subroutine (Cleanup)

-Does "QuickZip.conf" go directly into APPDATA? (no subfolder?)

Other than that everything looks really good! cool.gif

I move this topic to the autoHelp section now and we take it from there. biggrin.gif
Siegfried
psc
Look into the file Localization_Details.txt which is created by autoHelp-creator.

I think you shouls use here the environment variable %_localsettings_%

Peter
Siegfried
QUOTE (psc @ Jun 28 2006, 12:15 PM) *
Look into the file Localization_Details.txt which is created by autoHelp-creator.

I think you shouls use here the environment variable %_localsettings_%

Peter



%_localsettings_% expands to the foldername not to a full path.

This is the complete entry:
ECHO c="$ramdrv$\%docsandsettings%\Default User\%_localsettings_%",3 %OUT%

Siegfried
gibo
Fist of all thanks Reatogo and Psc for their support smile.gif

QUOTE
This is the complete entry:
ECHO c="$ramdrv$\%docsandsettings%\Default User\%_localsettings_%",3 %OUT%


I have tried this code many times with no luck.....QuickZip.conf is not copied.... and it does not exist into SFX
directory (checked all sfx 7zip archives).
This is annoying but insignificant because after more testing I discovered that QuickZip.conf "must only" copied into B:\Documents and Settings\Default Users\Applications Data\ so only this code is necessary:

QUOTE
ECHO b="$ramdrv$\$appdata$",3 %OUT%


@Reatogo
QUOTE
-Does "QuickZip.conf" go directly into APPDATA? (no subfolder?)
Yes

QUOTE
-the file exclusion in GET FOLDER is only effective when copied from the local installation.
If you expand the setup-EXE, you have to delete these files in that subroutine (Cleanup)


I do not understand completely....
In my Cleanup subroutine I have put this:

QUOTE
:: Cleanup
rd Temp /s /q
ren "Files\UnzDll,1.dll" "UnzDll.dll"
del "Files\UnzDll,2.dll"
del Files\*.rtf
del Files\QuickZip.conf
goto :EOF


so *.rtf & QuickZip.conf are deleted and unins000.* does not exist after the extraction of setup-EXE

My best regards.
psc
In my opinion it shoud be

ECHO c="$ramdrv$\$profiles$\Default User\%_localsettings_%",3 %OUT%

instead of

ECHO c="$ramdrv$\%docsandsettings%\Default User\%_localsettings_%",3 %OUT%

Peter
gibo
QUOTE (psc @ Jun 30 2006, 01:26 PM) *
In my opinion it shoud be

ECHO c="$ramdrv$\$profiles$\Default User\%_localsettings_%",3 %OUT%

instead of

ECHO c="$ramdrv$\%docsandsettings%\Default User\%_localsettings_%",3 %OUT%

Peter


Tested and Approved. Thanks Psc wink.gif
Siegfried
Hi gibo!

Is your plugin final now?

If yes, I suggest you edit your opening post with a complete presentation (use the posting template created by autoHelp creator) and send me an e-mail with the complete final plugin ready for upload so I can put it on the download list and upload to my server.

siegfried.benthin@reatogo.de

Siegfried
Siegfried
Thanks for sending the finished plugin per e-mail, Gibo cool.gif

Online now as no. 207.

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.