Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2001
    Location
    Houston, Texas, USA
    Posts
    39

    Can I Specify a Program to Open a doc File?

    I have a notepad replacement that is small enough to fit on a CD. I would like to use it to open a doc file on my CD. Can I specify the program I want to use when reading a doc file?

    I want to be able to keep the formatting in the document and I can't know that all customers will have Word on their systems. Thank you in advance.

    David Kay

  2. #2
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943

    Re: Can I Specify a Program to Open a doc File?

    Hi,
    What you should do is launch the program located on your CD-ROM using an EXECUTE PROGRAM action, and then pass the path to your document as a Command Line Argument.

    You should try something that looks like:

    EXECUTE PROGRAM ACTION
    File Name: %SrcDrv%\DocViewer\MyProg.exe
    Arguments: %SrcDrv%\Docs\MyDoc.txt

    That's it, you might have to play around with it but it should work.

    Please note that if the path to your document contains a space you will have to put double quotes around your Command Line Argument. So it might have to look something like:
    "%SrcDrv%\My Documents\MyDoc.txt"

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

  3. #3
    Join Date
    Mar 2001
    Location
    Houston, Texas, USA
    Posts
    39

    Re: Can I Specify a Program to Open a doc File?

    Mark,

    Thank you.

    David

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts