4.7.3

Table Of Contents
ThinApp User’s Guide
56 VMware, Inc.
sbmerge.exe Commands
Thesbmerge.exe Printcommanddisplayssandboxchangesanddoesnotmakemodificationstothe
sandboxororiginalproject.
Thesbmerge.exe Applycommandmergeschangesfromthesandboxwiththeoriginalproject.This
commandupdatestheprojectregistryandfilesystemtoreflectchangesanddeletesthesandboxdirectory.
Usage
"C:\Program Files\VMware\VMware ThinApp\sbmerge" Print [<optional_parameters>]
"C:\Program Files\VMware\VMware ThinApp\sbmerge" Apply [<optional_parameters>]
Optional Parameters
Theoptionalsbmerge.exeparametersspecifyprojectandsandboxpathsandblockprogressmessagesand
mergingofsandboxfiles.
Automatic Application Updates
Ifanapplicationcanupdateautomatically,itsupdatemechanismfunctionswithThinApp.Iftheapplication
downloadstheupdateandrunsaninstallerorpatchingprogram,thisactivityoccursinsidethevirtual
environmentandThinAppstoresthechangesfromtheupdatesoftwareinthesandbox.Whentheapplication
restarts,itusesthe
versionoftheexecutablefileinthesandboxandnottheexecutablefilefromtheoriginal
package.
Forexample,ifyoucaptureFirefox1.5,yourautoupdatemechanismmightpromptyoutoupgradetoFirefox2.0.
Ifyouproceedwiththeupgrade,theapplicationdownloadstheupdates,writestheupdatestothe
sandbox,
andpromptsyoutorestarttheapplication.Whenyourunthecapturedapplicationagain,Firefox2.0starts.
If youdeletethesandbox,Firefoxrevertsbacktoversion 1.5.
Tomergechangesthatanautoupdatemechanismmakeswiththeoriginalpackagetobuildanupdated
executablefile,usethesbmerge.exeutility.See
ApplicationUpdatesThattheAdministratorTriggerson
page 54.
Table 4-2. Optional sbmerge.exe Parameters
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 59.
Ifyouuseacustomlocationforthesandbox,usethe–SandboxDir
<sandbox_path>parametertospecifythelocation.
-Quiet Blockstheprintingofprogressmessages.
-Exclude <excluded_file>.ini Preventsthemergingofspecificfilesorregistryentriesfromthesandbox.
Youcanspecifya.inifiletodeterminethe
contentforexclusion.Thisfile
containsseparatesectionstospecifyfiles,suchastheFileSystemIgnoreList
andtheRegistryIgnoreList.
Thesbmerge.exeutilityusesthesnapshot.inifileintheThinAppinstallation
folderbydefaulttoexcludecertaincontentfromthemergeprocess.Thisoption
enablesyoutospecifyanother.inifileto
ensuretheadditionalexclusionof
content.
NOTEIfyouusetheApplicationSyncutilitytoperformapplicationupdates,disabletheautoupdate
capabilitiesoftheapplication.See“UsingApplicationSyncinaManagedorUnmanagedEnvironment”on
page 47.