Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Remove Compact from dialog - custom doesn't work.


6 replies to this topic

agaskell

agaskell
  • Members
  • 5 posts

Posted 11 April 2002 - 18:43

This is for Developer 7, hope this is the best place for this post as I'm new here :)
I removed the compact option from Setup types. I then removed the compact option from the setup dialog. The installscript code looks fine to me but when I run the install the custom option no longer works - ie I always get Typical as the option whether I select Typical or Custom. Dlg_SdAskDestPath: and Dlg_SdFeatureTree: never run for Custom even though they are there.

Here is the relavent Installscript:

Dlg_SetupType:
   szTitle = "";
   szMsg   = "";
   nResult = SetupType(szTitle, szMsg, "", nSetupType, 0);
   if (nResult = BACK) then
       goto Dlg_SdCustomerInformation;
   else
       nSetupType = nResult;
       if (nSetupType != CUSTOM) then
           nvSize = 0;
           FeatureCompareSizeRequired(MEDIA, INSTALLDIR, nvSize);
           if (nvSize != 0) then      
            MessageBox(szSdStr_NotEnoughSpace, WARNING);
               goto Dlg_SetupType;
           endif;
           bCustom = FALSE;
           MessageBox("bCustom is false", WARNING);
           goto Dlg_SdStartCopy;
       else
           bCustom = TRUE;
           MessageBox("bCustom is True", WARNING);
       endif;
   endif;    

Dlg_SdAskDestPath:    
   nResult = SdAskDestPath(szTitle, szMsg, INSTALLDIR, 0);
   if (nResult = BACK) goto Dlg_SetupType;

Dlg_SdFeatureTree:
   szTitle    = "";
   szMsg      = "";
   if (nSetupType = CUSTOM) then
       nResult = SdFeatureTree(szTitle, szMsg, INSTALLDIR, "", 2);
       if (nResult = BACK) goto Dlg_SdAskDestPath;  
   endif;


Please can someone help with this.

Thanks Andrew.

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 11 April 2002 - 20:07

No, this is definitely not the place as this forum is for InstallShield 6, not 7.

Once Stefan notices this though, he'll move it to the appropirate one for you.
user posted image

agaskell

agaskell
  • Members
  • 5 posts

Posted 12 April 2002 - 09:38

But I can't see an InstallShield 7 forum here on installSite. Please advise.

Regards
Andrew

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 12 April 2002 - 20:46

If you go to the Discussion Forum page, it's all the "InstallShield Developer - *" forums.  Those are ones for IS 7.
user posted image

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 14 April 2002 - 08:15

Moved to InstallShield Developer - Standard Projects forum

PM

PM
  • Members
  • 3 posts

Posted 16 April 2002 - 06:51

Hi,
found out couple days ago that if you remove Compact option from SetupType- dialog and choose Custom in setup, it returns 302 (=COMPACT) instead of 303 (=CUSTOM).
Easiest way to make your script work is to replace all CUSTOM words with a word COMPACT.
Another way is to use SdSetupType- dialog instead. It seems to work fine without Compact option and you don't need SdAskDestPath- dialog anymore.

Regards
PM

PM

PM
  • Members
  • 3 posts

Posted 16 April 2002 - 07:08

SdSetupType- dialog also returns 302 (=COMPACT) if you remove compact option from dialog and choose Custom option in setup.
(Sorry, didn' t check this out properly at first time)

Regards
PM