4.5

Table Of Contents
ThinApp User’s Guide
48 VMware, Inc.
To link an application to Microsoft .NET
1Capturetheinstallationofthe.NET2.0Framework.
Duringthecaptureprocess,youmustselectatleastoneuseraccessibleentrypoint.
2 Renamethe.exefilethatThinAppproducestoa.datfile.
Thisrenamingpreventsusersfromaccidentallyrunningtheapplication.
Thenameofthe.datfileyouselectdoesnot
matterbecauseusersdonotrunthefiledirectly.
For example,usedotnet.dat.
3 Savethe.NETprojecttoC:\Captures\dotnet.
4Capturethebaseapplicationbyusingthesamephysicalsystemorvirtualmachinewiththe.NET
frameworkalreadyinstalled.
5 SavetheprojecttoC:\Captures\MyApp.
6OpenthePackage.inifileinthecapturedapplicationfolder
forthebaseapplication.
7EnabletheRequiredAppLinksparameterforthebaseapplicationbyaddingthefollowinglineafterthe
[BuildOptions]entry.
RequiredAppLinks=dotnet.dat
ApplicationLinkparametersmustreferencetheprimarydatacontaineroftheapplicationyouwantto
linkto.Youcannotreferenceshortcut.exefilesbecausethesefilesdonotcontainanyapplications,files,
orregistrykeys.
8Rebuildthe.NET2.0andbaseapplicationpackages.
aDoubleclickthebuild.batfileinC:\Captures\MyApp.
bDoubleclick
thebuild.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\cmd.exeto
\\<end_user_desktop>\<Program_Files_share>\MyApp\dotnet.dat.
Set up Nested Links with Application Link
ThinAppsupportsnestedlinkswiththeApplicationLinkutility.Forexample,ifMicrosoftOfficelinkstoa
servicepack,andtheservicepacklinkstoahotfix,ThinAppsupportsallthesedependencies.
ThisprocedurereferstoAppAthatrequiresAppBandAppBthatrequiresAppC.Assumethefollowingfolder
layout
fortheprocedure:
C:\AppFolder\AppA\AppA.exe
C:\AppFolder\AppB\AppB.exe
C:\AppFolder\AppC\AppC.exe
ForinformationaboutsettinguprequiredandoptionalApplicationLinkparametersinthisprocedure,see
“ConfiguringDependentApplicationswithApplicationLink”onpage 81.
To set up nested links
1CaptureApplicationA.
2InthePackage.inifile,specifyApplicationBasarequiredoroptionalapplicationlink.
Forexample,addRequiredLinks=\AppFolder\AppB\AppB.exetothefile.