Jump to content











Photo
- - - - -

Emsisoft Free Emergency Kit 1.0


  • Please log in to reply
1 reply to this topic

#1 Feral

Feral
  • Members
  • 4 posts
  •  
    Australia

Posted 31 January 2011 - 05:45 AM

Hi, I found this a very interesting and useful site for infomation...

As I like using "Emsisoft Free Emergency Kit 1.0" from a boot USB or CD/DVD, one of the best AVs I have found and FREE.
I found the script and edit for "a-squared GUI"
I have it working great with Win7, have also edited the same script for opera 11 & FireFox4beta and all work OK....great script for portable programs easy to edit :-)



====================[Cut & Paste Below]====================

[Main]
Title=a-squared (Portable)
Description=Emsisoft Free Emergency Kit from http://www.emsisoft....ftware/download
Type=script
Selected=True
Level=5
Author=SkyBeam, edited by Feral
Contact=http://www.emsisoft.com
Credits=http://www.emsisoft.com
Locked=false
Version=1
Date=30.01.2011
Mandatory=False
Download_Level=1

[Variables]
// title of the program (shortcut name
%ProgramTitle%=A-squared
// folder name in program files directory
%ProgramFolder%=Emsisoft
// name of executable
%ProgramEXE%=a2emergencykit.exe
// Name of folder to prepare application within
%TmpFolder%=%GlobalTemp%\%ProgramFolder%
// path to templates
%TemplatesFolder%=%GlobalTemplates%
// path where program templates are stored
%ProgramTemplate%=%TemplatesFolder%\%ProgramFolder%

[Process]
Echo,"Processing %ProgramTitle%..."
Run,%ScriptFile%,CheckUpdate
If,NotExistFile,"%ProgramTemplate%\%ProgramEXE%",Exit,"Error preparing template, download failed."
RunFromRam,%pRunFromRAM%
CopyProgram,%ProgramTemplate%
Run,%ScriptFile%,Shortcuts

[CheckUpdate]
If,%pAlwaysUpdate%,EQUAL,True,Run,%ScriptFile%,Download
Else,Begin
If,NotExistFile,"%ProgramTemplate%\%ProgramEXE%",Run,%ScriptFile%,Download
End

[Download]
Echo,"Downloading %ProgramTitle%..."
If,EXISTDIR,"%TmpFolder%",DirDelete,"%TmpFolder%"
If,EXISTDIR,"%ProgramTemplate%",DirDelete,"%ProgramTemplate%"
DirMake,"%TmpFolder%"
DirMake,"%ProgramTemplate%"
Set,%downloadName%,"download.zip"
WebGet,"%pDownloadUrl%","%TmpFolder%\%downloadName%"
DirMake,"%TmpFolder%\extract"
//# INNO-Setup:
//ExtractAllFiles,%ScriptFile%,"Tools",%TmpFolder%
//ShellExecute,Hide,#$q%TmpFolder%\innounp.exe#$q,"-x -b -q -d#$q%TmpFolder%\extract#$q #$q%TmpFolder%\%downloadName%#$q"
//DirMove,"%TmpFolder%\extract\{app}\*","%ProgramTemplate%"
//# MSI files:
//ShellExecute,Hide,#$qmsiexec.exe#$q,"/a #$q%TmpFolder%\%downloadName%#$q /qn TARGETDIR=#$q%TmpFolder%\extract#$q"
//DirMove,"%TmpFolder%\extract\*","%ProgramTemplate%"
//DirMove,"%TmpFolder%\extract\Files\7-Zip\*",%ProgramTemplate%
//# ZIP files:
ShellExecute,Hide,"%Tools%\7z.exe","x -y #$q%TmpFolder%\%downloadName%#$q -o#$q%TmpFolder%\extract#$q"
//# move files from sub-directory one directory up
If,EXISTDIR,"%TmpFolder%\compose",DirDelete,"%TmpFolder%\compose"
DirMake,"%TmpFolder%\compose"
ShellExecute,Hide,"cmd.exe","/c for /f #$qtokens=*#$q #$pG IN ('dir /A:D /b #$q%TmpFolder%\extract#$q') DO (xcopy #$q%TmpFolder%\extract\#$pG\*#$q #$q%TmpFolder%\compose#$q /E /C /I /Q /H /R /Y)"
DirMove,"%TmpFolder%\compose\*","%ProgramTemplate%"
DirDelete,"%TmpFolder%"

[Shortcuts]
Echo,"Creating %ProgramTitle% Shortcuts..."
// Start menu shortcut name
Set,%StartMenuFolder%,%pStartMenuFolder%
If,"%pStartMenuFolder%",EQUAL,"%ScriptDir%",StrFormat,FILENAME,%pStartMenuFolder%,%StartMenuFolder%
//Add_Shortcut,[Type],[Folder],[FullFileName],[Title],[Work Folder],[Parameters],[IconFile( .ico .exe)],[StartMode(1, 2, 3, or 4)]
If,%pStartmenuIcon%,Equal,True,Add_Shortcut,StartMenu,%StartMenuFolder%,,%pShortcutName%
If,%pDesktopIcon%,Equal,True,Add_Shortcut,Desktop,,,%pShortcutName%
If,%pQuickLaunchIcon%,Equal,True,Add_Shortcut,StartMenu,QuickLaunch,,%pShortcutName%

[Interface]
pRunFromRAM="Run from RAM (boot.wim)",1,3,11,156,220,18,True
pStartmenuIcon="Create Startmenu Shurtcut",1,3,11,-4,200,18,True
pStartMenuFolder="Start menu folder (blank for none):",1,0,31,36,160,20,%ScriptDir%
pShortcutName="Name for shortcut:",1,0,31,76,160,20,%ProgramTitle%
pQuickLaunchIcon="Create Quicklaunch Shurtcut",1,3,11,116,200,18,False
pDesktopIcon="Create Desktop Shurtcut",1,3,11,96,200,18,True
pDownloadUrl="Download URL",1,0,11,276,320,20,http://download12.emsisoft.com/EmsisoftEmergencyKit.zip
pUpdateNow="Download/Update now",1,8,11,296,129,25,Download,0
pAlwaysUpdate="Always update on build",1,3,11,236,200,18,False

====================[Cut & Paste Above]====================

#2 Alex Goff

Alex Goff
  • Members
  • 1 posts
  •  
    United States

Posted 07 June 2011 - 05:19 PM

I took your design and rebuilt it a little. I have set it up so that there is an option to update and to download, as the download does not update the signatures, only the software. Posting here as a give-back.




====================[Cut & Paste Below]====================
[Main]
Title=a-squared (Portable)
Description=Emsisoft Free Emergency Kit from http://www.emsisoft....ftware/download
Type=script
Selected=True
Level=5
Author=SkyBeam, edited by Feral and Ragmanix
Contact=http://www.emsisoft.com
Credits=http://www.emsisoft.com
Locked=false
Version=1
Date=30.01.2011
Mandatory=False
Download_Level=1
NoWarning=False

[Variables]
// title of the program (shortcut name
%ProgramTitle%=A-squared
// folder name in program files directory
%ProgramFolder%=Emsisoft
// name of executable
%ProgramEXE%=a2emergencykit.exe
// Name of folder to prepare application within
%TmpFolder%=%GlobalTemp%\%ProgramFolder%
// path to templates
%TemplatesFolder%=%GlobalTemplates%
// path where program templates are stored
%ProgramTemplate%=%TemplatesFolder%\%ProgramFolder%

[Process]
Echo,"Processing %ProgramTitle%..."
Run,%ScriptFile%,CheckUpdate
If,NotExistFile,"%ProgramTemplate%\%ProgramEXE%",Exit,"Error preparing template, download failed."
If,%pAlwaysUpdate%,EQUAL,True,ShellExecute,Hide,#$q"%ProgramTemplate%\a2cmd.EXE"#$q," /u"
RunFromRam,%pRunFromRAM%
CopyProgram,%ProgramTemplate%
Run,%ScriptFile%,Shortcuts

[CheckUpdate]
If,%pAlwaysDownload%,EQUAL,True,Run,%ScriptFile%,Download
Else,Begin
If,NotExistFile,"%ProgramTemplate%\%ProgramEXE%",Run,%ScriptFile%,Download
End

[Download]
Echo,"Downloading %ProgramTitle%..."
If,EXISTDIR,"%TmpFolder%",DirDelete,"%TmpFolder%"
If,EXISTDIR,"%ProgramTemplate%",DirDelete,"%ProgramTemplate%"
DirMake,"%TmpFolder%"
DirMake,"%ProgramTemplate%"
Set,%downloadName%,"download.zip"
WebGet,"%pDownloadUrl%","%TmpFolder%\%downloadName%"
DirMake,"%TmpFolder%\extract"
//# INNO-Setup:
//ExtractAllFiles,%ScriptFile%,"Tools",%TmpFolder%
//ShellExecute,Hide,#$q%TmpFolder%\innounp.exe#$q,"-x -b -q -d#$q%TmpFolder%\extract#$q #$q%TmpFolder%\%downloadName%#$q"
//DirMove,"%TmpFolder%\extract\{app}\*","%ProgramTemplate%"
//# MSI files:
//ShellExecute,Hide,#$qmsiexec.exe#$q,"/a #$q%TmpFolder%\%downloadName%#$q /qn TARGETDIR=#$q%TmpFolder%\extract#$q"
//DirMove,"%TmpFolder%\extract\*","%ProgramTemplate%"
//DirMove,"%TmpFolder%\extract\Files\7-Zip\*",%ProgramTemplate%
//# ZIP files:
ShellExecute,Hide,"%Tools%\7z.exe","x -y #$q%TmpFolder%\%downloadName%#$q -o#$q%TmpFolder%\extract#$q"
//# move files from sub-directory one directory up
If,EXISTDIR,"%TmpFolder%\compose",DirDelete,"%TmpFolder%\compose"
DirMake,"%TmpFolder%\compose"
ShellExecute,Hide,"cmd.exe","/c for /f #$qtokens=*#$q #$pG IN ('dir /A:D /b #$q%TmpFolder%\extract#$q') DO (xcopy #$q%TmpFolder%\extract\#$pG\*#$q #$q%TmpFolder%\compose#$q /E /C /I /Q /H /R /Y)"
DirMove,"%TmpFolder%\compose\*","%ProgramTemplate%"
DirDelete,"%TmpFolder%"

[Shortcuts]
Echo,"Creating %ProgramTitle% Shortcuts..."
// Start menu shortcut name
Set,%StartMenuFolder%,%pStartMenuFolder%
If,"%pStartMenuFolder%",EQUAL,"%ScriptDir%",StrFormat,FILENAME,%pStartMenuFolder%,%StartMenuFolder%
//Add_Shortcut,[Type],[Folder],[FullFileName],[Title],[Work Folder],[Parameters],[IconFile( .ico .exe)],[StartMode(1, 2, 3, or 4)]
If,%pStartmenuIcon%,Equal,True,Add_Shortcut,StartMenu,%StartMenuFolder%,,%pShortcutName%
If,%pDesktopIcon%,Equal,True,Add_Shortcut,Desktop,,,%pShortcutName%
If,%pQuickLaunchIcon%,Equal,True,Add_Shortcut,StartMenu,QuickLaunch,,%pShortcutName%

[Interface]
pRunFromRAM="Run from RAM (boot.wim)",1,3,11,156,220,18,True
pStartmenuIcon="Create Startmenu Shurtcut",1,3,11,-4,200,18,True
pStartMenuFolder="Start menu folder (blank for none):",1,0,31,36,160,20,%ScriptDir%
pShortcutName="Name for shortcut:",1,0,31,76,160,20,%ProgramTitle%
pQuickLaunchIcon="Create Quicklaunch Shurtcut",1,3,11,116,200,18,False
pDesktopIcon="Create Desktop Shurtcut",1,3,11,96,200,18,True
pDownloadUrl="Download URL",1,0,11,276,320,20,http://download12.emsisoft.com/EmsisoftEmergencyKit.zip
pUpdateNow="Download/Update now",1,8,11,296,129,25,Download,0
pAlwaysDownload="Always download on build",1,3,11,236,200,18,False

pAlwaysUpdate="Always Update on Build",1,3,10,213,200,18,True
====================[Cut & Paste Above]====================




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users