How to determine the location of WinWord.exe using Actual Installer?
If you created a Microsoft Office Word or Excel-based program then you may need to know where Office is installed and what version is used.
The executable file of Microsoft Word is "Winword.exe". Here and below, an example is described for Word. If you need it for Excel then just replace Winword.exe with excel.exe .
The path to "Winword.exe" is stored in Registry under the following key (Default value):
For Office 2016 this value usually is: C:\Program Files\Microsoft Office\Office16\Winword.exe
The location of "Winword.exe" is stored in the "Path" value.
In Actual Installer, to read this value from Registry go to System \ Variables and add the following:
Registry Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe
Value Name: Path //to read Default value leave this field blank
Value Type: REG_SZ
When you launch your setup file, variable <WinwordDir> will contain the path to the directory where winword.exe file is located. You can use it anywhere in the setup program, e.g. as Installation Directory or File Destination.
How to get the version of Office Word?
There are few ways on how to receive the version number of Microsoft Office - from Registry; by reading version number of the Winword.exe file, etc..
Note: user may have installed several versions of Office.
Under the following Registry key are listed installed Office versions:
But it's easier to get version of Office from winword.exe file.
Please read more here.
NOTE: If a user has Office Starter, Home, or Student Edition installed, there is no WinWord.exe , since it uses a Client Virtualization Handler. The path to launch a .DOC (.DOCX) files could be something like this:
"C:\Program Files (x86)\Common Files\microsoft shared\virtualization handler\cvh.exe" "Microsoft Word Starter 2010 9014006604190000" /n "%1"