PDA

View Full Version : SdFinish dialog displaying twice!!!!



elektrik
10-26-2001, 01:37 PM
I'm hoping anyone out there can help me. I'm making a (fairly simple) Installshield script using Installshield Professional 6.3.

I've gotten everything working fine except for one thing. When I finish, I need the system to reboot. I call SdFinishReboot and I get my dialog ok, but then I get the standard SdFinish dialog (whether I want it or not!) When I created the project with the Project Wizard, I made sure to "uncheck" that dialog box, but it still shows up.

Can anyone help me remove this extra dialog box?

Thanks!

Jerry Horgan

Chandima
10-29-2001, 10:59 AM
You might get much more usefull responses if you try posting this on the proper Newsgroup :)

This is for InstallShield Express. Try

installShield.is5.general
installShield.is5.installscript
installShield.is6.general
installShield.is6.installscript

Hope you find an answer there!

elektrik
10-29-2001, 11:59 AM
I would be more than happy to-if there were one (There isn't, at least according to the links on your website ;-)

Maurits Vlasman
10-30-2001, 04:11 AM
Hi Elektrik,

you can find the newsgroup on the 'old' news server news.installshield.com

elektrik
10-30-2001, 12:34 PM
Thanks...I've looked at the newsgroups and am posting now. I was, however, referring to the "Installshield community" website. The reason I posted here was because I didn't see a section in the "Installshield community" for Installshield Professional, yet I did for Installshield Express and your Beta 7. Now that I've looked at your support options (Pay per incident-sheesh!) I think I understand why you don't have more than minimal support for it.

Thanks anyway.

NewsArchive
11-22-2001, 01:00 AM
Thank you David... I was still unable to find the sdFinish so I started a
new Install and told it not to put it in. I then took your advice and put
the following code in the OnEnd fundtion:

STRING szApplicaiton;
STRING szTitle, szMsg1, szMsg2, szOpt1, szOpt2;
BOOL bvOpt1, bvOpt2;

begin

szTitle = "Stealth Backup Installation";
szMsg1 = "%P Setup is almost complete.\n" + "Choose the options you want
below.";
szMsg2 = "Click Finish to complete %P Setup.";
szOpt1 = "I would like to launch %P.";
szOpt2 = "";

SdFinish (szTitle, szMsg1, szMsg2, szOpt1, szOpt2, bvOpt1, bvOpt2);

if (bvOpt1) then
szApplicaiton = TARGETDIR + "%P";
if (LaunchApp (szApplicaiton, "") < 0) then
MessageBox ("Unable to launch " + szApplicaiton + ".", SEVERE);
endif;
endif;

end;

Thanks again

"David Stiff" <davids@trangosoft.com> wrote in message
news:3bfd3690$1@news.installshield.com...
> How about putting a LaunchApp call in the OnEnd() function?
>
> Dave Stiff
> Trango Software
>
> "Rob Schenkel" <rschenkel@sympatico.ca> wrote in message
> news:3bfd2d66$1@news.installshield.com...
> > I would like to add a szOpt1 to run my program when done installing but
> > can't find the call to sdFinish any where within my script. I image it
> must
> > be there as the dialog is called and displayed. Can anyone help me find
> > where this call is being made.
> >
> > Also once I get the option into the dialog how would I start my program
if
> > it is checked?
> >
> > Thanks a lot, Rob
> >
> >
>
>

NewsArchive
11-22-2001, 01:00 AM
If I put the code in the OnEnd function then it is called every time even
during uninstall.

Rob

"David Stiff" <davids@trangosoft.com> wrote in message
news:3bfd3690$1@news.installshield.com...
> How about putting a LaunchApp call in the OnEnd() function?
>
> Dave Stiff
> Trango Software
>
> "Rob Schenkel" <rschenkel@sympatico.ca> wrote in message
> news:3bfd2d66$1@news.installshield.com...
> > I would like to add a szOpt1 to run my program when done installing but
> > can't find the call to sdFinish any where within my script. I image it
> must
> > be there as the dialog is called and displayed. Can anyone help me find
> > where this call is being made.
> >
> > Also once I get the option into the dialog how would I start my program
if
> > it is checked?
> >
> > Thanks a lot, Rob
> >
> >
>
>

NewsArchive
11-22-2001, 01:00 AM
Corrected by own problem by putting it in the OnFirstUIAfter() fucntion.

Thanks

"Rob Schenkel" <rschenkel@sympatico.ca> wrote in message
news:3bfd463c@news.installshield.com...
> If I put the code in the OnEnd function then it is called every time even
> during uninstall.
>
> Rob
>
> "David Stiff" <davids@trangosoft.com> wrote in message
> news:3bfd3690$1@news.installshield.com...
> > How about putting a LaunchApp call in the OnEnd() function?
> >
> > Dave Stiff
> > Trango Software
> >
> > "Rob Schenkel" <rschenkel@sympatico.ca> wrote in message
> > news:3bfd2d66$1@news.installshield.com...
> > > I would like to add a szOpt1 to run my program when done installing
but
> > > can't find the call to sdFinish any where within my script. I image
it
> > must
> > > be there as the dialog is called and displayed. Can anyone help me
find
> > > where this call is being made.
> > >
> > > Also once I get the option into the dialog how would I start my
program
> if
> > > it is checked?
> > >
> > > Thanks a lot, Rob
> > >
> > >
> >
> >
>
>

NewsArchive
11-22-2001, 01:00 AM
Enclose the code in:

if (!MAINTENANCE) then
....
endif;

"Rob Schenkel" <rschenkel@sympatico.ca> wrote in message
news:3bfd463c@news.installshield.com...
> If I put the code in the OnEnd function then it is called every time even
> during uninstall.
>
> Rob
>
> "David Stiff" <davids@trangosoft.com> wrote in message
> news:3bfd3690$1@news.installshield.com...
> > How about putting a LaunchApp call in the OnEnd() function?
> >
> > Dave Stiff
> > Trango Software
> >
> > "Rob Schenkel" <rschenkel@sympatico.ca> wrote in message
> > news:3bfd2d66$1@news.installshield.com...
> > > I would like to add a szOpt1 to run my program when done installing
but
> > > can't find the call to sdFinish any where within my script. I image
it
> > must
> > > be there as the dialog is called and displayed. Can anyone help me
find
> > > where this call is being made.
> > >
> > > Also once I get the option into the dialog how would I start my
program
> if
> > > it is checked?
> > >
> > > Thanks a lot, Rob
> > >
> > >
> >
> >
>
>