Solved

InstallShield - How can I get a Read Me file to launch?"

Posted on 2000-03-09
4
906 Views
Last Modified: 2013-12-03
I'm using InstallShield for MS Visual C++ 6.  I mention this because I can't determine whether this version provides the ability to launch programs or files.

Right now I'm trying to launch a Read ME file from the DialogShowSdFinishReboot() function.  Actually this function takes the necessary parameters and passes them to the SdFinish() function.  Here is an example of SdFinish() from the docs:

 #include "Sddialog.h"

   STRING   szProductName, szTitle, szMsg, svDir, szComponents;
   STRING   szMsg1, szMsg2, szOpt1, szOpt2;
   BOOL     bvOpt1, bvOpt2;
   NUMBER   nReturn;

program

   //Set the product name to substitute for the %P place holder.
   szProductName = "My Application";

   SdProductName(szProductName);

SdWelcomeLabel:
   szTitle = "SdWelcome Example";
   Disable(BACKBUTTON);

   //Display the SdWelcome dialog box. The null string in parameter
   //two specifies the default message, which uses the %P place holder.
   SdWelcome(szTitle, "");

   Enable(BACKBUTTON);

SdSetupTypeLabel:
   szTitle = "SdProductName Example";

   //The %P place holder is embedded in a custom message that will be
   //passed to SdSetupType.
   szMsg   = "Choose the type of installation for %P.";

   svDir   = "C:\\EXAMPLE";

   // Display the SdSetupType dialog box.
   if (SdSetupType(szTitle, szMsg, svDir, 0) = BACK) then

      goto SdWelcomeLabel;
   endif;

   // The %P place holder is embedded in several of the string
   // parameters that will be passed to SdFinish.
   szTitle = "SdFinish Example";
   szMsg1  = "%P Setup is almost complete.\nChoose the options you want below.";
   szMsg2  = "Click Finish to complete %P Setup.";
   szOpt1  = "I would like to view the README file.";

   szOpt2  = "I would like to launch %P.";
   Enable(BACKBUTTON);

   // Display the SdFinish dialog box.
   SdFinish(szTitle, szMsg1, szMsg2, szOpt1, szOpt2, bvOpt1, bvOpt2);

   if(bvOpt1) then
     MessageBox("Display readme file here.", INFORMATION);
   endif;

   if(bvOpt2) then
     SprintfBox(INFORMATION, szTitle, "Launch %s here.", szProductName);
   endif;

endprogram

#include "Sddialog.rul"

// Source file: Is5fn142.rul

As you can see, if bvOpt1 is TRUE then the Read ME file is to be launched.  But since this is an example, I'm assuming they used a MessageBox rather than some sort of 'launch' function like:

LaunchApp  or
LaunchAppAndWait

When I try to get info on these functions, I get this:

This feature is unavailable in the InstallShield for Microsoft Visual C++ edition.

I must be missing something.  My first question:  is it possible to launch a Read ME file?  Also, is there some other version of InstallShield that should be obtained if I plan to do serious (many) installations?

Thanks!
 
0
Comment
Question by:John500
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:pjknibbs
Comment Utility
Sounds like the cut-down InstallShield you've got doesn't support LaunchApp--they have to give you *some* incentive for buying the full version, after all! If you intend to do a lot of installers, get the full version of InstallShield--at the moment this is InstallShield 2000.
0
 

Author Comment

by:John500
Comment Utility
pjknibbs,

Are you saying that 'LaunchApp()' would be the only function that could launch a ReadMe file?

I still think there would be a way to do this, maybe not.
0
 
LVL 12

Accepted Solution

by:
pjknibbs earned 50 total points
Comment Utility
LaunchApp() (or LaunchAppAndWait()) are the only ways I know of to launch an external application from an InstallShield script, and I've been using the thing since version 3.0! Like I said, the version of InstallShield which ships with Visual C++ is a cut-down version, and they no doubt disabled LaunchApp() to give you an incentive to buy the full version.
0
 

Author Comment

by:John500
Comment Utility
Ok, you convinced me.  Thanks.


0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now