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.
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.
Remove Compact from dialog - custom doesn't work.
Started by
agaskell
, Apr 11 2002 18:43
6 replies to this topic
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.
Once Stefan notices this though, he'll move it to the appropirate one for you.
Posted 12 April 2002 - 09:38
But I can't see an InstallShield 7 forum here on installSite. Please advise.
Regards
Andrew
Regards
Andrew
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.
Posted 14 April 2002 - 08:15
Moved to InstallShield Developer - Standard Projects forum
Stefan Krüger
InstallSite.org twitter facebook
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
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
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
(Sorry, didn' t check this out properly at first time)
Regards
PM