Solved

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

Posted on 2000-03-09
4
914 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
ID: 2603597
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
ID: 2604403
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
ID: 2604473
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
ID: 2604491
Ok, you convinced me.  Thanks.


0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 100
What is UAC Virtualization in the Process (TASK) Manager? 4 1,919
Visual Studio 2015 locks debug executable 9 180
Dialogbox API leak? 18 93
This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 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

18 Experts available now in Live!

Get 1:1 Help Now