VMware Horizon Community
Raulddan
Contributor
Contributor

Leave a folder and its files outside data container !

Hello.

I am currently looking for a solution to my problem.

I have captured an application and want to leave a folder and its files outside data container.

The folder its part of the application so I dont want to just delete it.

Is there a solution for this ?

Thanks.

Reply
0 Kudos
9 Replies
Cievo
Commander
Commander

I replyed at https://communities.vmware.com/thread/320327

***Good question is half of the answer...***
Reply
0 Kudos
Lakshman
Champion
Champion

Hi,

Are you looking to create a folder on the physical machine?

Reply
0 Kudos
Raulddan
Contributor
Contributor

Hello.

Sorry I havent had myself understood. I will try to give an example.

So, I have "prog.exe" and "prog.dat" files thinapped - prog.dat has 6 Gb.

Prog.dat contains a folder called "pictures" and this folder has JPG's of about 4Gb.

Now what I want is to leave the JPG's folder outside Thinapped application so "prog.dat" will have only 2Gb and offcourse the folder "pictures" and its files to be deployed outside thinapped application so at finall we will have:

"prog.exe"

"prog.dat" - 2Gb

and folder "Pictures" - 4Gb

One to mention is that folder PICTURES is a must for software to run

I really hope that I have made myself understood.

The above is just an example.

Thanks.

Reply
0 Kudos
Lakshman
Champion
Champion

I have written a VB script to copy the 'Pictures' folder from ThinApp DAT file to the local system (C:\Pictures).

To make it work, do the following.

1. Download the attached script.vbs and copy it to ThinApp project folder where build.bat file exists

2. Copy/move the Pictures folder into %ProgramFilesDir%\Pictures

3. Run build.bat

When you run the prog.exe, it copies the Picture folder to your local C drive. Change the script wherever you want.

Reply
0 Kudos
Raulddan
Contributor
Contributor

Hello Lakshman,

Thank you for all your help.

After running doeas it leave the Prog.dat file at 2Gb or it still remains at 6Gb because this is what I am after. The software would need to deployed on DVD like 2 files and one folder (prog.exe, prog.dat and PICTURES folder).

Thanks and sorry for asking too much, I know your time is important and do apreciate any help received.

Thanks.

Reply
0 Kudos
Lakshman
Champion
Champion

The script is to help deploying the Pictures folder automatically when the ThinApp is launched but it leaves the DAT file at 6 GB because it has the Pictures folder in it.

If you are fine to deploy the Pictures folder separately outside ThinApp, you can go ahead with 2 GB DAT file by removing Pictures folder.

Reply
0 Kudos
Raulddan
Contributor
Contributor

Yes, this is exactly what I ned. To deploy the folder  separately. After I remove the Pictures folder will I need to deploy in the same folder as prog.exe and prog.dat , or somewhere else ?

I need to mention that when the software starts it looks for the PICTURES folder and it files exactly. If doesnt find them hits an error and stops.

Thanks.

Reply
0 Kudos
Lakshman
Champion
Champion

Check the native application behavior for the location where it reads the Picture folder.

Once it is known, you can copy the Picture folder to the same location manually.

Reply
0 Kudos
Raulddan
Contributor
Contributor

So on this solution the folder PICTURES can only be in exactly one place and one place only. Ex: C:/PICTURES and nowhere else

This is not quite practicall.

The reason wanting this is because I have an application with lots of SVGZ and PNG files and the finall Thinapped application is about 12.7 GB.

It is running really slow and in Proces Monitor I can see that the majority of time waiting it is READING the DAT file. The SVGZ and PNG are about 7-8GB.

The application is based on Oracle with Databases. Each picture file name and description is stored in database (.mdb) and this is where the software reads the description and also the link to pictures and svgz's.

Thanks.

Reply
0 Kudos