5.0

Table Of Contents
VMware, Inc. 59
Chapter 4 Updating and Linking Applications
Dynamic Updates Without Administrator Rights
Youcanupdateapplicationsdynamicallywithoutrequiringadministratorrights.For example,.NETbased
applicationsthatdownloadnewDLLfilesfromtheInternetaspartoftheirupdateprocessmustrunthe
ngen.exefiletogeneratenativeimageassembliesforstartupperformance.Intypicalcircumstances,the
ngen.exefilewritestoHKLMandC:\WINDOWS
,bothofwhichareonlyaccessiblewithadministratoraccounts.
WithThinApp,thengen.exefilecaninstallnativeimageassembliesonguestuseraccountsbutstoreschanges
inauserspecificdirectory.
Youcanupdatethepackageonacentralcomputerandpushthechangestoclientmachinesortocentral
networksharesasanewcapturedexecutablefile.Useoneofthefollowingoptionsforapplyingupdates:
Duringthesetupcaptureprocess.
Insidethevirtualenvironment.
Applicationswithautoupdatecapabilitiescanundergoupdates.Iftheupdateisapatch.exefile,the
patchprogramcanruninthevirtualenvironmentandrunfromacmd.exefileentrypoint.Changesoccur
inthesandboxduringautomaticupdatesormanualupdatestoallowyouto
reverttotheoriginalversion
bydeletingthesandbox.
Ifyouapplypatchesinthevirtualenvironmentonacentralpackagingmachine,youcanusethe
sbmerge.exeutilitytomergesandboxchangesmadebytheupdatewiththeapplication.See
ApplicationUpdatesThattheAdministratorTriggersonpage 56.
Inthecapturedproject.
Ifyoumustupdateasmallsetoffilesorregistrykeys,replacethefilesinthecapturedproject.
This approachisusefulforsoftwaredeveloperswhointegrateThinAppbuildswiththeirworkflow.
Upgrading Running Applications on a Network Share
ThinAppallowsyoutoupgradeorrollbackanapplicationthatisrunningonanetworkshareformultiple
users.Theupgradeprocessoccurswhentheuserquitstheapplicationandstartsitasecondtime.InTerminal
Serverenvironments,youcanhavemultipleusersexecutingdifferentversionsatthesame
timeduringthe
transitionperiod.
File Locks
Startinganapplicationlockstheexecutablefilepackage.Youcannotreplace,delete,ormovetheapplication.
Thisfilelockensuresthatanycomputeroruserwhoaccessesaspecificversionofanapplicationcontinuesto
havethatversionavailableaslongastheapplicationprocessesandsubprocessesarerunning.
Ifyou
storeanapplicationinacentrallocationformanyusers,thisfilelockpreventsadministratorsfrom
replacingapackagedexecutablefilewithanewversionuntilallusersexittheapplicationandreleasetheir
locks.
Upgrade a Running Application
Youcancopyanewversionofanapplicationintoanexistingdeploymentdirectorywithahigherfilename
extension,suchas.1or.2.ThisprocedureusesFirefoxasasampleapplication.
Youdonothavetoupdateshortcuts.
Upgrade a running application
1Deploytheoriginalversionoftheapplication,suchasFirefox.exe.
2Copythe
applicationtoacentralshareat\\<server>\<share>\Firefox.exe.
AsamplelocationisC:\Program Files\Firefox\Firefox.exe.