Sign in to follow this  
Followers 0
bobzee

COM, AutoIT & WordViewer...need help guys....

3 posts in this topic

I have a GTk+ application which prints MSWord files coming from server using COM. I am installing that application and other required libraries using AutoIt.

My problem is with Clients who DO NOT have MSWORD installed on their pcs.

I do have two options :

1) install WORD Viewer (free) automatically using Autoit. (this need to be automatic but i know we can read window titles and do automatic installation using autoit)

2) or distrubute required dll or exe to make COM work. ( I have no idea what dlls or exe require along with WORDVIEW.exe)

So my question is

1) How to find whether user has WORD installed or not in Autoit.

2) if Not what above option is best. if you say second one, could please guide what files I need to distrubure along with my application.

I really really appreciate your help.

(At one moment I thought of implementing whole application in Autoit.... using ObjectCreate and all that...but we need webservices and file encryption kind of other stuff ).....

- Bob

Share this post


Link to post
Share on other sites



Hi,

do get the info whether word is installed or not you could read the registry.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I realized that I could use

$oword = ObjCreate(Word.Application)

if isObj($oword) Then

; word installed

Else

; word not installed

EndIf

This works most of the time except where you had a trail version of WORD and its expired Now...inthat case it creates Object ok but you can't call any methods on it.

Edited by bobzee

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0