VMware Horizon Community
david29
Contributor
Contributor
Jump to solution

Automatically erase the thinstall folder content on my USB key

Hi all,

Is that possible to create a script to clear automatically the cache of the sandbox (Thinstall folder) on my USB key without the user to do it ?

If it is, can you give me one to try it please ?

Thank you for your help Smiley Happy

David

Reply
0 Kudos
1 Solution

Accepted Solutions
Cievo
Commander
Commander
Jump to solution

>>> 1. What did you change in the package.ini ?

I uncommented one line RemoveSandboxExit=1 as pbjork wrote you.

>>> 2. How do I rebuild my application with this package.ini ?

Replace your Package.ini file (which you uploaded into thread) with my Package.ini and run build.bat file. In bin directory you will have new application.

***Good question is half of the answer...***

View solution in original post

Reply
0 Kudos
10 Replies
MindTheGreg
Enthusiast
Enthusiast
Jump to solution

check the package.ini. There is a clean sandbox on exit option that you want to select.

Uncomment this line:

RemoveSandboxonExit=1

Set-Annotation -CustomAttribute "The Impossible" -Value "Done and that makes us mighty"
Reply
0 Kudos
david29
Contributor
Contributor
Jump to solution

Thank you for your answer but the option is still set to 1 and when I close the application, there is always the application folder with its content. I want to clear all the thinstall folder content as it becomes empty.

Thank you Smiley Happy

Reply
0 Kudos
pbjork
VMware Employee
VMware Employee
Jump to solution

RemoveSandboxonExit=1 should do just that. Since it isn’t does it sounds like something is kept running in the background locking the Sandbox. If you run the application and shut it down, can you delete the Sandbox manually or is it locked?

If locked please look at this blog post for resolution: http://blogs.vmware.com/thinapp/2011/04/whats-keeping-my-sandbox-locked.html

Reply
0 Kudos
Cievo
Commander
Commander
Jump to solution

Can you, please, post your Package.ini file?

Thank you,

***Good question is half of the answer...***
Reply
0 Kudos
david29
Contributor
Contributor
Jump to solution

Here it is Smiley Happy

Thank you ...

Reply
0 Kudos
Cievo
Commander
Commander
Jump to solution

Rebuild package with this Package.ini.

***Good question is half of the answer...***
Reply
0 Kudos
david29
Contributor
Contributor
Jump to solution

1. What did you change in the package.ini ?

2. How do I rebuild my application with this package.ini ?

Thank you

Reply
0 Kudos
Cievo
Commander
Commander
Jump to solution

>>> 1. What did you change in the package.ini ?

I uncommented one line RemoveSandboxExit=1 as pbjork wrote you.

>>> 2. How do I rebuild my application with this package.ini ?

Replace your Package.ini file (which you uploaded into thread) with my Package.ini and run build.bat file. In bin directory you will have new application.

***Good question is half of the answer...***
Reply
0 Kudos
david29
Contributor
Contributor
Jump to solution

Thank you Cievoooooooooo Smiley Happy

You're too strong !

It works Smiley Happy

Thank you for your help

Reply
0 Kudos
Cievo
Commander
Commander
Jump to solution

Cool, I'm happy.

Can you, please, mark my answer as answer so this thread is closed and marked as answered?

Thank you,

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