Trust No Program
This topic is locked: you cannot edit posts or make replies.
Check Sandboxie version? Registry key?
FireFox31


Joined: 17 Jun 2009
Posts: 7
Reply with quote
Hello, how can a script determine the version of the installed Sandboxie? Is there a registry key for that?

I'm writing a script to deploy and upgrade Sandboxie in a workgroup. It has three steps:
1. If the current version is installed, exit.
2. If Sandboxie is installed then it must not be current, upgrade then exit.
3. Sandboxie must not be installed, install it.

I've only found:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sandboxie\DisplayName
but haven't determined what happens when I upgrade. Will the value in there change.

Or does anyone have a better Windows BAT script for running this? Thanks.
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15159
Reply with quote
Windows XP Service Pack 2 Support Tools includes a program called filever.exe.

http://www.microsoft.com/downloads/details.aspx?FamilyID=49ae8576-9bb9-4126-9761-ba8011fabf38&displaylang=en

http://support.microsoft.com/kb/913111

You should be able to execute this program on some EXE file in the Sandboxie installation folder and get the version number.

In a future version I will add an option to Start.exe to display the current version of Sandboxie. It's a good idea.

_________________
tzuk
View user's profileSend private message
FireFox31


Joined: 17 Jun 2009
Posts: 7
Reply with quote
Thanks, I will try this! Thanks for the great product.
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15159
Reply with quote
Sandboxie version 3.47.01 adds this feature as part of the new Sandboxie License Manager.

To display the version, use:

Code:
"C:\Program Files\Sandboxie\License.exe" print version


For command line output, invoke from a command prompt console:

Code:
"C:\Program Files\Sandboxie\License.exe" silent print version | more

Sandboxie License Manager
Version 3.47.01


Or for use in a batch file:

Code:
FOR /F "usebackq skip=1 tokens=2" %A IN (`"C:\Program Files\Sandboxie\License.exe" silent print version`) do set SANDBOXIE_VERSION=%A

echo %SANDBOXIE_VERSION%
3.47.01


Note that using batch-% variables in batch files requires using two percent signs, so inside a batch file, use %%A instead of just %A.
View user's profileSend private message
Check Sandboxie version? Registry key?
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

Use the RSS feed to watch this topic for replies
  
  
 This topic is locked: you cannot edit posts or make replies.  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 213,235,111 times since June 2004