4.6.1

Table Of Contents
ThinApp User’s Guide
58 VMware, Inc.
Link an application to Microsoft .NET
1Capturetheinstallationofthe.NET2.0Framework.
Duringthecaptureprocess,youmustselectatleastoneuseraccessibleentrypoint.
2 Renamethe.exefilethatThinAppproducestoa.datfile.
Thisrenamingpreventsusersfromaccidentallyrunningtheapplication.
Thenameofthe.datfileyouselectdoesnotmatterbecauseusersdonotrunthefiledirectly.
For example,usedotnet.dat.
3 Savethe.NETprojecttoC:\Captures\dotnet.
4Capturethebaseapplicationbyusingthesamephysicalsystemorvirtualmachinewiththe.NET
frameworkalreadyinstalled.
5 SavetheprojecttoC:\Captures\MyApp.
6OpenthePackage.inifileinthecapturedapplicationfolderforthebaseappl
ica
tion.
7EnabletheRequiredAppLinksparameterforthebaseapplicationbyaddingthefollowinglineafterthe
[BuildOptions]entry.
RequiredAppLinks=dotnet.dat
ApplicationLinkparametersmustreferencetheprimarydatacontaineroftheapplicationyouwantto
linkto.Youcannotreferenceshortcut.exefilesbecausethesefilesdonotcontainanyapplications,files,
orregistrykeys.
8Rebuildthe.NET2.0andbaseapplicationpackages.
aDoubleclickthebuild.batfileinC:\Captures\MyApp.
bDoubleclickthebui
ld.batfileinC:
\Captures\dotnet.
RunningthesebatchfilesbuildsseparateThinApppackages.
9DeploytheapplicationstoanenduserdesktopinC:\Program Files\MyApp.
aCopyC:\Captures\MyApp\bin\MyApp.exeto
\\<end_user_desktop>\<Program_Files_share>\MyApp\MyApp.exe.
bCopyC:\Captures\dotnet\bin\dotnet.datto
\\<end_user_desktop>\<Program_Files_share>\MyApp\dotnet.dat.
Set Up Nested Links with Application Link
ThinAppsupportsnestedlinkswiththeApplicationLinkutility.Forexample,ifMicrosoftOfficelinkstoa
servicepack,andtheservicepacklinkstoahotfix,ThinAppsupportsallthesedependencies.
ThisprocedurereferstoAppA,whichrequiresAppB;andAppB,whichrequiresAppC.Assumethefollowing
folderlayoutfortheprocedure:
C:\AppFolder\AppA\AppA.exe
C:\AppFolder\AppB\AppB.exe
C:\AppFolder\AppC\AppC.exe
ForinformationaboutsettinguprequiredandoptionalApplicationLinkparametersinthisprocedure,see
“ConfiguringDependentApplicationswithApplicationLink”onpage 91.
Set up nested links
1CaptureApplicationA.
2InthePackage.inifile,specifyApplicationBasarequiredoroptionalapplicationlink.
Forexample,addRequiredLinks=\AppFolder\AppB\AppB.exetothefile.