I am a Unix guy! I have written packages for Solaris and HP.
I am new to Windows development. Have been studying VB and
finally developed an application using VB.
I am in the process of writting an installer for the application.
Studied VB Installer, Windows Installer, InstallShield, ... and
came across NSIS a week ago. I found NSIS easy to learn and
implement, but I am stuck at one place.
Here is what needs to be done,
1) Findout if the target machine has Microsoft Word Installed.
2) If Word is NOT installed, print an error message and
abort the installation.
3) If Word is installed,
a) Copy a file from $INSTDIR to MS Word installed directory,
default c:\Program Files\Microsoft Office\Office
b) Write an entry into the registry name/value
WordInstall "<WORD INSTALL DIR>"
One of the ways to resolve the problems is, I can write an
ActiveX DLL file with functions,
a) GetWordPath ==> Returns the InstallDir of MS Word or empty str
1) I created the DLL and copied it to NSIS directory
When I call myDLL::GetWordPath in the .nsi script, I am getting
Invalid command: myDLL::GetWordPath
2) Say, If the above command is successful, where is the
return value from ActiveX function stored?
Can someone help me with the nsi script to get the results.
Is it possible to get the Word Install Path in NSIS, without
even bothering to create VB ActiveX DLL?