Posts tagged thinapp

VMware_ThinApp_v4.0_icon

[ThinApp] Register an app based on the OS language

0

I came across a post on the VMware ThinApp forum of a user looking for a way to register with thinreg an app based on the OS language (french or english) so as I’m working in a similar environment I came up with a little VBS script for this.

First, the package.ini; two entry points, one for the english shortcut, the other one for the french shortcut:

 

[Readme.exe]
Source=%ProgramFilesDir%\App\app.exe
Shortcut=App.dat
WorkingDirectory=%ProgramFilesDir%\App
 
[Lisez-moi.exe]
Source=%ProgramFilesDir%\App\app.exe
Shortcut=App.dat
WorkingDirectory=%ProgramFilesDir%\App

 

Second, the script:

 

 Visual Basic |  copy code |? 
01
02
'=================================================
03
' Initialize vars
04
'=================================================
05
Dim strComputer, strOSLanguage
06
Dim strThinregPath, strAppToRegister, strThinregCmdLine
07
 
08
'=================================================
09
' Set thinreg path and params
10
'=================================================
11
strThinregPath = "\\fileserver\share\thinreg.exe"
12
 
13
'=================================================
14
' Get Computer OS Language
15
' See: http://msdn.microsoft.com/en-us/library/aa394239%28v=vs.85%29.aspx
16
'=================================================
17
strComputer = "."
18
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
19
Set oss = objWMIService.ExecQuery ("Select OSLanguage FROM Win32_OperatingSystem")
20
 
21
For Each os in oss
22
	strOSLanguage = os.OSLanguage
23
Next
24
 
25
If strOSLanguage = 1036 or strOSLanguage = 3084 Then
26
	REM Wscript.Echo "OS Language: French – France / Canada"
27
	strAppToRegister = "\\fileserver\share\Lisez-moi.exe"
28
ElseIf strOSLanguage = 1033 or strOSLanguage = 4105 Then
29
	REM Wscript.Echo "OS Language: English – US / Canada"
30
	strAppToRegister = "\\fileserver\share\Readme.exe"
31
End If 
32
 
33
'=================================================
34
' Register the app
35
'=================================================
36
Set WSHShell = WScript.CreateObject("WScript.Shell")
37
strThinregCmdLine = strThinregPath & " " & strAppToRegister
38
WSHShell.Run "" & strThinregCmdLine & "", 0, True
39

 

And here you go! Happy Scripting!

SCC_Computer_logo

Virtualizing SoftLab/SoftPath with VMware ThinApp 4.7.3/5.0

0

While trying to virtualize the softwares, SoftLab and SoftPath, from SCC Soft Computer with ThinApp 4.7.3, I ran into this issue:

SCC SoftLab Issue

I was able to get to the main window but after opening a module and doing stuff or closing it, the program was stopping to respond. The process module was hanging. By closing it, the program started to respond again.

SCC SoftLab Issue Processes

After working with VMware Support, adding this parameter to the package.ini solved everything in SoftLab/SoftPath:

ExternalDLLs=orb_r.dll

For reference:

ExternalDLLs Parameter

 

 

The ExternalDLLs parameter can force Windows to load specific DLL files from the virtual file system.

 

ThinApp sets an initial value that loads DLL files from the virtual file system and passes the loading process to Windows for DLL files on the physical file system. In some circumstances, Windows must load a DLL file in the virtual file system. You might have a DLL file that inserts itself into other processes using Windows hooks. The DLL file that implements the hook must be available on the host file system and Windows must load that file. When you specify a DLL file in the ExternalDLLs parameter, ThinApp extracts the file from the virtual file system to the sandbox and instructs Windows to load it. Virtual dictation software is a type of software that might interface with native applications that pass information between DLLs. ThinApp can pass the loading of DLLs in the virtual environment to Windows to ensure that local applications can interface with the DLLs.

 

 

The ExternalDLLs parameter does not support a DLL file that depends on other DLL files in the virtual file system. In this case, Windows cannot load the DLL file.

Note that at the moment I’m writing this post, the virtualization of this software is not supported by the editor, SCC Soft Computer.

Go to Top