VMware Communities > VMTN > Enterprise Desktop Products > VMware ThinApp™ > VMware ThinApp: Discussion Forum > Discussions

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
3 Replies Last post: Jun 21, 2009 8:56 PM by Tejashri
Reply

bug with -OutDir switch and tlink.exe ?

Jun 19, 2009 4:26 AM

Click to view arodulr's profile Novice arodulr 24 posts since
Jul 5, 2008
Hi,

I was experimenting with a custom build.bat to generate the package into %PROJECT_DIR%\bin2 instead of %PROJECT_DIR%\bin as set up in the default build.bat.
vregtool and vftool don't seem to have problem with that:

"%THINSTALL_BIN%\vregtool" "%PROJECT_DIR%\bin2\Package.ro.tvr" ImportDir "%PROJECT_DIR%"
IF ERRORLEVEL 1 GOTO failed

"%THINSTALL_BIN%\vftool" "%PROJECT_DIR%\bin2\Package.ro.tvr" ImportDir "%PROJECT_DIR%"
IF ERRORLEVEL 1 GOTO failed

But for some reason, tlink is always searching into the default bin output dir even if I use the -OutDir switch:

"%THINSTALL_BIN%\tlink" "%PROJECT_DIR%\Package.ini" -OutDir "%PROJECT_DIR%\bin2"
IF ERRORLEVEL 1 GOTO failed


I get:
Could not initialize registry file: bin\Package.ro.tvr
Could not obtain lock file bin\Package.ro.tvr.lck
Press any key to continue...
*** Build failed ***


Moreover, there are path to the build directory inside package.ini, but even if I modify them, tlink is still looking for a bin output dir:

OutDir=bin2
...
[http://IrfanView 4.23.exe|http://IrfanView 4.23.exe]
ReadOnlyData=bin2\Package.ro.tvr
Source=%ProgramFilesDir%\IrfanView\i_view32.exe
FileTypes=.acr.aif.ani.asf.au.avi.b3d.bmp.cam.clp.cr2.crw.cur.dcm.dcx.dds.dib.djvu.ecw.emf.eps.exr.flv.fpx.fsh.g3.gif.gsm.hdp.icl.ico.iff.img.iw44.j2k.jng.jp2.jpc.jpe.jpeg.jpg.jpm.kdc.lbm.ldf.lwf.med.mid.mng.mov.mp3.mpe.mpeg.mpg.ngg.nlm.nol.ogg.pbm.pcd.pcx.pgm.png.ppm.psd.psp.ra.ras.raw.rgb.rle.rmi.sff.sfw.sgi.sid.snd.sun.swf.tga.tif.tiff.ttf.wav.wbmp.wdp.wma.wmf.wmv.xbm.xpm
Shortcuts=%Programs%\IrfanView


So how can I build a same project tree into different output directories without making a full copy of the project tree ?
The purpose is to build one package with different licensing enforcement scripts.

Thanks

Alban

PS: I found this same behaviour from Thinstall 3.3 to ThinApp 4.0.3 RC
Reply Re: bug with -OutDir switch and tlink.exe ? Jun 21, 2009 10:12 AM
Click to view Thinstall2's profile Enthusiast Thinstall2 40 posts since
Jul 29, 2008
Have u ever let ThinApp complete its built? When I supply a custom "bin"-path in package.ini it The temporary buildfiles is still placed in bin, but when theyre completed vftool moves them to the output-path youve specified. Haven't messed with the bat-files yet though.
Reply Re: bug with -OutDir switch and tlink.exe ? Jun 21, 2009 12:18 PM
in response to: Thinstall2
Click to view arodulr's profile Novice arodulr 24 posts since
Jul 5, 2008
Hi Thinstall2,

Thanks for you suggestion: I didn't try to only modify package.ini with a custom bin path, I'll try that ASAP. However building the .tfd files with vftool.exe and vregtool.exe into a custom output dir is not a problem as I wrote. So maybe the temp dir for tlink.exe must be bin and the output dir can be anything else.
But having to modify package.ini (or having multiple package.ini) in order to build to different directory is not a very cool feature. I think the command line options should allow to do that, and package.ini should reference variables set at the command line ($BIN or something).
Or maybe I didn't understand how things work.

Any idea ?
Reply Re: bug with -OutDir switch and tlink.exe ? Jun 21, 2009 8:56 PM
in response to: arodulr
Click to view Tejashri's profile Enthusiast Tejashri 36 posts since
Jan 8, 2009

Hi arodulr,

Have you tried with "OutDir" parameter in Package.ini? The OutDir parameter specifies the directory that stores the build.bat output. By default it is "bin" directory. You can set it with any name.

e.g. BuildOptions

OutDir=Test1

After setting the parameter in Package.ini, rebuild the package. Virtualized exes are copied in new Output directory specified against "OutDir" parameter.

Thanks & Regards,

Tejashri Khopkar

Actions