Ok, So I've decided to upload the template that I use when I start a new script. I've updated my template over the last couple of weeks and I feel pretty good about it. Now I know that the script needs to be modified for each application, but remember that this is just a boilerplate starting script that gets modified for each application. I hope that some of you find this script helpful. I tried to comment the script fairly well so that you would know what to change and where. Let me know what you think.
[Main] Title=WinBuilder_Template_For_Applications Description=Something useful here! Author=GreatDevourer Type=script Selected=False Level=5 Version=1 Date=2011-11-09 Locked=false Download_Level=1 [Variables] // //============================================================================== // destination folder %ProgramFolder%=WinBuilder_Template_For_Applications // application EXE file %ProgramEXE%=WinBuilder_Template_For_Applications.exe //start menu title %ProgramTitle%=WinBuilder_Template_For_Applications // where the local files to include in the build are stored // this location is usually relative to the script location %Local_Folder%=WinBuilder_Template_For_Applications // name of the file downloaded and stored locally %Local_Archive%=archive.zip [Interface] // //============================================================================== // the selections below are a minimal ammount of information for the build pBevel1=pBevel1,1,12,30,57,236,155 pCheckBox1="Add desktop shortcut",1,3,43,72,185,18,False pCheckBox2="Add start menu shortcut",1,3,43,126,168,18,True pCheckBox3="Add quicklaunch shortcut",1,3,43,99,180,18,False TBoxFolder="Folder in menu (empty for scriptfolder)",1,0,45,171,165,21,"HD Tasks" // enable options for downloading and updating pCheckBox4="Delete local files and download new version",1,3,44,231,256,18,True pWebLabel1="Homepage",1,10,30,18,200,18,http://www.google.com pTextBox1="Download Link",1,0,45,275,333,21,http://www.google.net/something.zip [Process] // //============================================================================== // core processing of files, registry entries, and everything else Echo,Processing %ProgramTitle%... RunFromRam,False // //------------------------------------------------------------------------------ // support for multiple projects // // Check for Windows XP Set,%IsPE1%,False If,ExistFile,%source_win%\TXTSETUP.SIF,Set,%IsPE1%,True // // Set Windows x86/x64 variables Set,%registrysub%,"" Set,%systemreglocation%,"" Set,%systemreglocations%,"" // // Settings for Windows 7 x86 builds If,%SourceArch%,Equal,x86,Begin Set,%systemreglocation%,system32 Set,%systemreglocations%,system32 End // Settings for Windows 7 x64 builds If,%SourceArch%,Equal,x64,Begin Set,%registrysub%,Wow6432Node\ Set,%systemreglocation%,SysWOW64 Set,%systemreglocations%,syswow64 End // //------------------------------------------------------------------------------ // download the file from the vendor website If,%pCheckBox4%,Equal,True,Run,%ScriptFile%,FlushCache // download the file from the vendor website if it is not currently available If,NotExistFile,"%ScriptDir%\%Local_Folder%\%Local_Archive%",Run,%ScriptFile%,FlushCache // //------------------------------------------------------------------------------ // create destination folder Echo,"Making new directories.." DirMake,%target_prog%\%ProgramFolder% // //------------------------------------------------------------------------------ // copy files from source to destination Echo,"Copying directories.." // extract files from the downloaded archive If,ExistFile,"%ScriptDir%\%Local_Folder%\%Local_Archive%",Begin ShellExecute,Hide,"%Tools%\7za.exe","x #$q%ScriptDir%\%Local_Folder%\%Local_Archive%#$q -y -o#$q%target_prog%\%ProgramFolder%#$q" End // copy files from the folder If,ExistFile,"%ScriptDir%\%Local_Folder%\%ProgramEXE%",Begin FileCopy,"%ScriptDir%\%Local_Folder%\*.*",%target_prog%\%ProgramFolder% End // //------------------------------------------------------------------------------ Run,%ScriptFile%,RegistrySettings // //------------------------------------------------------------------------------ // add Windows Start Menu items, desktop shortcuts If,%pCheckBox1%,Equal,True,Add_Shortcut,Desktop If,%pCheckBox2%,Equal,True,Add_Shortcut,StartMenu,%TBoxFolder%,"%PE_Programs%\%ProgramFolder%\%ProgramEXE%","%ProgramTitle%" If,%pCheckBox3%,Equal,True,Add_Shortcut,QuickLaunch [FlushCache] // //------------------------------------------------------------------------------ // delete the local fiels and download the files from the Internet // Make local cache folder if it does not exist If,ExistDir,"%ScriptDir%\%Local_Folder%",DirDelete,"%ScriptDir%\%Local_Folder%" If,NotExistDir,"%ScriptDir%\%Local_Folder%",DirMake,"%ScriptDir%\%Local_Folder%" Echo,"Delete cached files and download current version from website..." If,ExistFile,"%ScriptDir%\%Local_Folder%\%Local_Archive%",FileDelete,"%ScriptDir%\%Local_Folder%\%Local_Archive%" WebGetIfNotExist,%pTextBox1%,"%ScriptDir%\%Local_Folder%\%Local_Archive%",,"Download current file",15 [RegistrySettings] // //------------------------------------------------------------------------------ // configure registry settings Hive_Load,HKLM Echo,"Writing new values on registry hive.." Hive_Unload,HKLM