Skip to content

Open a Document File

This action lets you execute a program or open a document file. This function is useful for opening single or multiple document files at the end of the extraction process, or to execute standard applications.

In order to open a document file, the package automatically asks Windows to run the associated application. For example: to open a bitmap file (.BMP ), the default bitmap editor (generally Microsoft Paint) will be run.

Property NameData TypeDescription
DisplaydwWindowStateDefines the state of the program’s window. There is a defined set of window states from which you can choose in the list box.
FilenameStringFull path to the file you would like to execute. Example: %DESTPATH%\Readme.txt
OperationStringVerb that specifies the action to be performed. The set of available verbs depends on the particular file or folder. The following verbs are commonly used: open, edit, explorer, print
ParametersStringIf you would like to pass any command line options to the executed program. Optional.
UnelevatedBooleanIf your package runs with administrative rights (defined by the manifest), any executable started by the package will also be run with administrative rights. To avoid this, you can turn this property to True. Then, the document file or application opened will be run with standard user rights (unelevated).