4.0.4

Table Of Contents
VMware, Inc. 47
Chapter 4 Updating Applications
Optional Parameters
Theoptionalsbmerge.exeparametersspecifyprojectandsandboxpathsandblockprogressmessagesand
mergingofsandboxfiles.
Automatic Application Updates
Ifanapplicationcanupdateautomatically,itsupdatemechanismfunctionswithThinApp.Iftheapplication
downloadstheupdateandrunsaninstallerorpatchingprogram,thisactivityoccursinsidethevirtual
environmentandThinAppstoresthechangesfromtheupdatesoftwareinthesandbox.Whentheapplication
restarts,itusesthe
versionoftheexecutablefileinthesandboxandnottheexecutablefilefromtheoriginal
package.
Forexample,ifyoucaptureFirefox1.5,yourautoupdatemechanismmightpromptyouto upgradetoFirefox2.0.
Ifyouproceedwiththeupgrade,theapplicationdownloadstheupdates,writestheupdatestothe
sandbox,
andpromptsyoutorestarttheapplication.Whenyourunthecapturedapplicationagain,Firefox2.0starts.
If youdeletethesandbox,Firefoxrevertsbacktoversion 1.5.
Tomergechangesthatanautoupdatemechanismmakeswiththeoriginalpackagetobuildanupdated
executablefile,usethesbmerge.exeutility.See
ApplicationUpdatesThattheAdministratorTriggerson
page 45.
Dynamic Updates Without Administrator Rights
Youcanupdateapplicationsdynamicallywithoutrequiringadministratorrights.For example,.NETbased
applicationsthatdownloadnewDLLfilesfromtheInternetaspartoftheirupdateprocessmustrunthe
ngen.exefiletogeneratenativeimageassembliesforstartupperformance.Intypicalcircumstances,the
ngen.exefilewritestoHKLMandC:\WINDOWS
,bothofwhichareonlyaccessiblewithadministratoraccounts.
WithThinApp,thengen.exefilecaninstallnativeimageassembliesonguestuseraccountsbutstoreschanges
inauserspecificdirectory.
Parameter Description
-ProjectDir <project_path> Ifyoustartthesbmerge.execommandfromalocationotherthantheapplication
projectfolder,usetheabsoluteorrelativepathtotheprojectdirectoryusingthe
-ProjectDir <project_path>parameter.Asamplecommandis"C:\Program
Files\VMware\VMware ThinApp\sbmerge" Print –ProjectDir
"C:\<project_folder_path>"".
-SandboxDir <sandbox_path> Whenyoustartacapturedapplication,itsearchesforthesandboxinaparticular
order.
See“SearchOrderfortheSandbox”onpage 95.
Ifyouuseacustomlocationforthesandbox,usethe–SandboxDir
<sandbox_path>parametertospecifythelocation.
-Quiet Blockstheprintingofprogressmessages.
-Exclude <excluded_file>.ini Preventsthemergingofspecificfilesorregistryentriesfromthesandbox.
Youcanspecifya.inifiletodetermine
thecontentforexclusion.Thisfile
containsseparatesectionstospecifyfiles,suchastheFileSystemIgnoreList
andtheRegistryIgnoreList.
Thesbmerge.exeutilityusesthesnapshot.inifileintheThinAppinstallation
folderbydefaulttoexcludecertaincontentfromthemergeprocess.Thisoption
allowsyoutospecifyanother.inifileto
ensureadditionalexclusionofcontent.
NOTEIfyouusetheApplicationSyncutilitytoperformapplicationupdates,disabletheautoupdate
capabilitiesoftheapplication.See“UsingApplicationSyncinaManagedorUnmanagedEnvironment”on
page 39.