Moin moin
erstmal muss ich sagen, GENIAL das ich das Forum gefunden hab.
und hoffe auch ein einiges an Hilfestellung zu erhalten
Folgendes:
Ich muss ein Projekt realisieren mit Folgendem Inhalt:
Splashscreen und dann soll rechts in der ecke der kleine initialisierungsbalken angezeigt werden.
Eine normale installation ohne extras (erstmla, ggf. dann noch logos rein, aber das würde ich dann vorher nochmal hier rechachieren)
SdRegisterUserEx mit CdKeyabfrage aus einer DLL funktion herraus. (habe 2 vorhandene funktionen würde das vorher noch weiter probieren)
INIdatei generierung. (skriptteil vorhanden)
Am ende soll als ein Feature verpack eine EXE mit Switches ausgeführt werden, während dieser Zeit soll dann eine Message à la "Anderes Programm wird Installiert ausgegeben"
_________
Das gut ist: Der CODE an sich ist da. nur ich bekomm den nicht angepasst da es eine version mit demo und convertierung war.
ich möchte meine probleme chronologisch beheben und das fängt beim splashscreen an.
habs zwar in den Splashscreen kram in den Supportfolder kopiert, aber da tut sich garnix. - im debug mode wird der pfad mal rot mal nicht und vor allem ist er sehr ich glaube ZU lang.
habs dann damit irgendwie probiert:
wird der String im Debug rot.
CODE |
//=========================================================================== // // File Name: Setup.rul // // Description: Blank setup main script file // // Comments: Blank setup is an empty setup project. If you want to // create a new project via. step-by step instructions use the // Project Assistant. // //===========================================================================
// Included header files ---------------------------------------------------- #include "ifx.h" #include "splash.rul"
// ---- script function prototypes -----
//--------------------------------------------------------------------------- // OnFirstUIBefore // // First Install UI Sequence - Before Move Data // // The OnFirstUIBefore event is called by OnShowUI when the setup is // running in first install mode. By default this event displays UI allowing // the end user to specify installation parameters. // // Note: This event will not be called automatically in a // program...endprogram style setup. //--------------------------------------------------------------------------- function OnFirstUIBefore()
number nResult; number nLevel; number nvSize, nSetupType; number nId; string szTitle, szMsg; string szOpt1, szOpt2, szLicenseFile; string szName, szCompany; string szTargetPath; string svDir; string szFeatures, szTargetdir; string szId; BOOL bLicenseAccepted; string InvitationSetup[255], svTempDir; string szSerial; begin SetupScreen(); nSetupType = COMPLETE; if ( ALLUSERS ) then TARGETDIR = PROGRAMFILES ^ IFX_COMPANY_NAME ^ IFX_PRODUCT_NAME; else TARGETDIR = FOLDER_APPDATA ^ IFX_COMPANY_NAME ^ IFX_PRODUCT_NAME; endif;
// Customize the default TARGETDIR for multi-instance application. // TODO: If you want something different customize the code below. if( MAINT_OPTION = MAINT_OPTION_MULTI_INSTANCE && MULTI_INSTANCE_COUNT > 0) then
// Start with the current multi-instance count plus one. nId = MULTI_INSTANCE_COUNT + 1;
// Find a unique TARGETDIR. while( ExistsDir( TARGETDIR ) = EXISTS ) // Convert to string. NumToStr( szId, nId ); // Update IFX_MULTI_INSTANCE_SUFFIX IFX_MULTI_INSTANCE_SUFFIX = "_" + szId; // Update TARGETDIR TARGETDIR = TARGETDIR + IFX_MULTI_INSTANCE_SUFFIX; // Update nId nId = nId + 1;
endwhile;
endif;
svDir = TARGETDIR; szName = ""; szCompany = ""; bLicenseAccepted = TRUE;
// Beginning of UI Sequence
Dlg_Start: nResult = 0; Dlg_SdWelcome: szTitle = ""; szMsg = ""; //{{IS_SCRIPT_TAG(Dlg_SdWelcome) nResult = SdWelcome( szTitle, szMsg ); //}}IS_SCRIPT_TAG(Dlg_SdWelcome) if (nResult = BACK) goto Dlg_Start;
Dlg_SdLicense2: szTitle = ""; szOpt1 = ""; szOpt2 = ""; //{{IS_SCRIPT_TAG(License_File_Path) szLicenseFile = SUPPORTDIR ^ "license.txt"; //}}IS_SCRIPT_TAG(License_File_Path) //{{IS_SCRIPT_TAG(Dlg_SdLicense2) nResult = SdLicense2( szTitle, szOpt1, szOpt2, szLicenseFile, bLicenseAccepted ); //}}IS_SCRIPT_TAG(Dlg_SdLicense2) if (nResult = BACK) then goto Dlg_SdWelcome; else bLicenseAccepted = TRUE; endif;
Dlg_SdRegisterUserEx: szMsg = ""; szTitle = ""; //{{IS_SCRIPT_TAG(Dlg_SdRegisterUserEx) nResult = SdRegisterUserEx( szTitle, szMsg, szName, szCompany, szSerial ); //}}IS_SCRIPT_TAG(Dlg_SdRegisterUserEx) if (nResult = BACK) goto Dlg_SdLicense2;
Dlg_SetupType2: szTitle = ""; szMsg = ""; //{{IS_SCRIPT_TAG(Dlg_SetupType2) nResult = SetupType2( szTitle, szMsg, "", nSetupType, 0 ); //}}IS_SCRIPT_TAG(Dlg_SetupType2) if (nResult = BACK) then goto Dlg_SdRegisterUserEx; else nSetupType = nResult; if (nSetupType != CUSTOM) then szTargetPath = TARGETDIR; nvSize = 0; FeatureCompareSizeRequired( MEDIA, szTargetPath, nvSize ); if (nvSize != 0) then MessageBox( szSdStr_NotEnoughSpace, WARNING ); goto Dlg_SetupType2; endif; endif; endif;
Dlg_SdAskDestPath2: if ((nResult = BACK) && (nSetupType != CUSTOM)) goto Dlg_SetupType2; szTitle = ""; szMsg = ""; if (nSetupType = CUSTOM) then //{{IS_SCRIPT_TAG(Dlg_SdAskDestPath2) nResult = SdAskDestPath2( szTitle, szMsg, svDir ); //}}IS_SCRIPT_TAG(Dlg_SdAskDestPath2) TARGETDIR = svDir; endif; if (nResult = BACK) goto Dlg_SetupType2;
Dlg_SdFeatureTree: if ((nResult = BACK) && (nSetupType != CUSTOM)) goto Dlg_SdAskDestPath2; szTitle = ""; szMsg = ""; szTargetdir = TARGETDIR; szFeatures = ""; nLevel = 2; if (nSetupType = CUSTOM) then //{{IS_SCRIPT_TAG(Dlg_SdFeatureTree) nResult = SdFeatureTree( szTitle, szMsg, szTargetdir, szFeatures, nLevel ); //}}IS_SCRIPT_TAG(Dlg_SdFeatureTree) if (nResult = BACK) goto Dlg_SdAskDestPath2; endif;
Dlg_ObjDialogs: nResult = ShowObjWizardPages( nResult ); if (nResult = BACK) goto Dlg_SdFeatureTree; Dlg_SdStartCopy2: szTitle = ""; szMsg = ""; //{{IS_SCRIPT_TAG(Dlg_SdStartCopy2) nResult = SdStartCopy2( szTitle, szMsg ); //}}IS_SCRIPT_TAG(Dlg_SdStartCopy2) if (nResult = BACK) goto Dlg_ObjDialogs; return 0; end;
|