VMware, Inc.
121
Chapter 9 Creating ThinApp Scripts
ExecuteVirtualProcess
The
ExecuteVirtualProcess(CommandLine)
function
runs
a
command
inside
of
the
virtual
environment.
You
can
use
this
function
to
make
changes
to
the
virtual
environment.
Parameters
CommandLine
[in]
Representation
of
the
application
and
command
‐
line
parameters
to
run
outside
of
the
virtual
environment.
Returns
Integer
process
ID.
You
can
use
the
process
ID
with
the
WaitForProcess
function.
See
“WaitForProcess”
on
page 125.
Examples
ExecuteVirtualProcess("C:\WINDOWS\system32\cmd.exe /c copy C:\systemfile.txt C:\virtualfile.txt")
You
can
run
a
command
that
requires
quotation
marks
in
the
command
line.
ExecuteVirtualProcess("regsvr32 /s " & chr(34) & "C:\Program Files\my.ocx" & chr(34))
GetBuildOption
The
GetBuildOption(OptionName)
function
returns
the
value
of
a
setting
specified
in
the
[BuildOptions]
section
of
the
Package.ini
file
used
for
capturing
applications.
Parameters
OptionName
[in]
Name
of
the
setting.
Returns
This
function
returns
a
string
value.
If
the
requested
option
name
does
not
exist,
the
function
returns
an
empty
string
(
ʺʺ
).
Examples
Package.ini contains:
[BuildOptions]
CapturedUsingVersion=4.0.1-2866
The
following
line
appears
in
a
VBS
file:
Value = GetBuildOption("CapturedUsingVersion")
GetFileVersionValue
The
GetFileVersionValue(Filename, Value)
function
returns
version
information
value
from
files
such
as
a
specific
DLL,
OCX,
or
executable
file.
You
can
use
this
function
to
determine
the
internal
version
number
of
a
DLL
or
retrieve
DLL
information
about
the
copyright
owner
or
a
product
name.
Parameters
Filename
[in]
The
name
of
the
filename
whose
version
information
is
being
retrieved.
Value
[in]
The
name
of
the
value
to
retrieve
from
the
version
information
section
of
the
specified
file.
Summary of Contents for THINAPP 4.6 - MIGRATING APPLICATIONS TECHNICAL NOTE
Page 38: ...ThinApp User s Guide 38 VMware Inc...
Page 114: ...ThinApp User s Guide 114 VMware Inc...
Page 136: ...ThinApp User s Guide 136 VMware Inc...