Detecting if Sandboxie is registered

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

Detecting if Sandboxie is registered

Post by Anon85035 » Sun Jan 27, 2013 8:13 am

Hi, I'm writing a script to automate some Sandboxie operations and I was wondering if it's possible to detect if the installation is registered. That way I could for example automatically determine if it can utilize multiple sandboxes at once.

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

Post by tzuk » Mon Jan 28, 2013 11:49 am

Yes, you can run

"C:\Program Files\Sandboxie\License.exe" silent print exprdate

Note that License.exe is not a console program so you have to pipe or redirect the output to see it. For example in a cmd promt,

"C:\Program Files\Sandboxie\License.exe" silent print exprdate | more
tzuk

Anon85035

Post by Anon85035 » Mon Jan 28, 2013 3:49 pm

Thanks! Exactly what I was looking for.

Anon85035

Post by Anon85035 » Tue Jan 29, 2013 7:44 am

Actually, both the registered and unregistered Sandboxie seem to output the same thing :/ At least if I unregister it. I haven't tried with a fresh installation

Code: Select all

Sandboxie License Manager
The expiration date of your Product Key is (None).

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

Post by tzuk » Thu Jan 31, 2013 2:12 pm

Sorry. I guess that would only work for time-limited product keys. How about timeleft instead of exprdate ?
tzuk

Anon85035

Post by Anon85035 » Fri Feb 01, 2013 2:18 am

Yep, that works!

Code: Select all

Sandboxie License Manager
The license for Sandboxie will have to be reactivated in 177 days.

Code: Select all

Sandboxie License Manager
Unregistered copy.  Register today!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest