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