4.6.1

Table Of Contents
VMware, Inc. 71
Chapter 5 Configuring Package Parameters
Configuring Build Output
YoucanmodifyThinAppparameterstospecifythelocationofthebuildoutputandthefilesinthepackage.
ExcludePattern
TheExcludePatternparameterexcludesfilesordirectoriesduringtheapplicationbuildprocess.Youmust
adda[FileList]headingbeforethisparameterentry.
Youcanuseacommatoseparatepatternsinthelist.Wildcards (*)matchnoneofthecharactersoratleastone
ofthecharactersandquestionmarks (?)matchexactlyonecharacte
r.ThesyntaxissimilartotheDOSdir
command,butyoucanapplywildcardcharacterstodirectorynamesandfilenames.
YoucanspecifytheExcludePatternparameterinthePackage.inifile,wherethepatternexclusionapplies
totheentiredirectorystructure,andthe##Attributes.inifile,whereThinAppaddsthepatternexclusion
tothecu
rrentlistofexclusions,butappliessettingsonlytothespecificdirectoryandsubdirectories.Youcan
createadifferentexclusionlistfordifferentdirectoriesinyourproject.
Examples
Ifyoustorepackagesinaversioncontrolsystemandyouwanttoexcludeversioncontrolinformationfrom
thevirtualfilesystem,youcanexcludeanydirectoriescalled.svnor.cvsandallthesubdirectories.
[FileList]
ExcludePattern=\.svn,\.cvs
Thepatterndoesnotmatchfilenamesordirectoriesthatcontain.svnor.cvsinthemiddleofthestring.
Youcanexcludeanypaththatendswith.bakor.msi.
[FileList]
ExcludePattern=*.bak,*.msi
Icon
TheIconparameterspecifiestheiconfiletoassociatewiththegeneratedexecutablefile.Thisiconappearsin
theapplication,suchasMicrosoftWord,andinthefilesassociatedwiththeapplication,suchas.docfiles.
Eachapplicationincludesitsowniconstoredasa.icofile,withinthe.exefileoftheapplicat
ion,orwithin
a.dllfile.Thecaptureprocessattachestheiconstotheexecutablefiles.Theapplicationusesthemaingroup
iconfromtheexecutablefileintheSourceparameterandtheindividualiconresourcethatthegroupicon
pointsto.
Examples
YoucanmodifytheIconparametertouseanalternativeiconbyspecifyinganexecutablefilethatisdifferent
fromtheexecutablefileintheSourceparameter.Alternative iconsmightbeusefulforthirdpartycompanies.
[<my_app>.exe]
Source=%ProgramFilesDir%\<my_app>\app.exe
Icon=%ProgramFilesDir%\<my_app>\app2.exe
Youcanspecifyaniconsetbyappending,1 ,2totheendoftheiconpath.
[<my_app>.exe]
Source=%ProgramFilesDir%\<my_app>\<app>.exe
Icon=%ProgramFilesDir%\<my_app>\<app2>.exe,1
Youcanusea.ico filetospecifytheapplicationicon.
[<my_app>.exe]
Source=%ProgramFilesDir%\<my_app>\<app>.exe
Icon=%ProgramFilesDir%\<my_app>\<my_icon>.ico