Fake free space on drive C

If it's not about a problem in the program
Post Reply
odin

Fake free space on drive C

Post by odin » Mon Jan 07, 2013 4:55 pm

Hello, I keep my sandbox container folders on another hard drive with plenty of space but sometimes when installing programs they check drive C free space and usually I only have 3-4 gigs free on that partition., is there anyway sandboxie can fake free space on a drive (since the program will really be installed to the other hdd it shouldn't matter what the free space is on the main drive)

Guest10
Posts: 5124
Joined: Sun Apr 27, 2008 5:24 pm
Location: Ohio, USA

Post by Guest10 » Tue Jan 08, 2013 6:28 am

I doubt that any setting in Sandboxie would help.
Programs probably ask Windows to tell them how much space is available on C drive, since it's Windows that keeps track of that.
Paul
Win 10 Home 64-bit (w/admin rights) - Zone Alarm Pro Firewall, MalwareBytes Premium A/V, Cyberfox, Thunderbird
Sandboxie user since March 2007

Buster
Posts: 2576
Joined: Mon Aug 06, 2007 2:38 pm
Contact:

Post by Buster » Tue Jan 08, 2013 6:46 am

Programs usually check for free disk space using:

GetDiskFreeSpace:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

GetDiskFreeSpaceEx:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Sandboxie would have to hook both APIs and return faked values.

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Tue Jan 08, 2013 7:05 am

I think that prior to version 3.54 (according to my change log), a program would get the amount of free space on the drive containing the sandbox, and starting with version 3.54, Sandboxie intentionally makes sure the accurate amount of free space is reported for the drive in question. I think this is the correct behavior.

If a program refuses to install due to disk space on drive C, why not tell it to install on some other drive instead? It's all going into the same sandbox drive anyway.
tzuk

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest