darshanaltekar
12th March 2007 10:05 UTC
Problem with Custome Page
In my installer i've created 5 custome pages, but the problem with them is that when my installer starts running i have to click twice on say NEXT or PREVIOUS or CANCEL button in order to move next,previous or cancel any solution? also the header text that i'm assigning to my pages disappears sometimes when my installer starts running why is this happening?
Joel
12th March 2007 22:51 UTC
why is this happening?
Is happening that we don't have a magic ball crystal to tell what is in your code?
Care to put some?
darshanaltekar
13th March 2007 08:54 UTC
Page custom Repair_Modify_Uninstall_pre Repair_Modify_Uninstall__leave
!define MUI_PAGE_CUSTOMFUNCTION_PRE check_flags_for_license
!define MUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "C:\Documents and Settings\Administrator\Desktop\license aggrement.txt"
;Organisation ID page
Page custom organisation_id_pre organisation_id_leave
;statica page showing organisation ID & default preferences
page custom default_preferences_pre
Page custom complete_custom_install_pre
Page custom after_repair_modify after_repair_modify_leave
Function .onInit
call set_flags
; call chcek_dotnet_framework
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "Repair_UNINSTALL.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "after_Repair_modify.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "Organisation_id.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "default_preferences.ini"
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "Complete_custom_install.ini"
call Check_Already_Installed
FunctionEnd
Function Repair_Modify_Uninstall_Pre
strcmp $ALREADY_INSTALLED "NO" 0 +3
abort
goto Repair_Modify_Uninstall_Pre_end
!insertmacro MUI_HEADER_TEXT "Program Maintenance" "Modify,Repair or Remove the program"
InstallOptions::Dialog "$PLUGINSDIR\Repair_UNINSTALL.ini"
pop $0
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "Repair_UNINSTALL.ini"
Repair_Modify_Uninstall_Pre_end:
FunctionEnd
function Repair_Modify_Uninstall__leave
ReadINIStr $0 "$PLUGINSDIR\Repair_UNINSTALL.ini" 'Field 2' "State" ;Repair
ReadINIStr $1 "$PLUGINSDIR\Repair_UNINSTALL.ini" 'Field 3' "State" ;Uninstall
ReadINIStr $2 "$PLUGINSDIR\Repair_UNINSTALL.ini" 'Field 4' "State" ;Modify
$state2"
strcmp $ALREADY_INSTALLED "YES" 0 label_l1
strcmp $0 "1" 0 +5
strcpy $REPAIR "YES"
strcpy $UNINSTALL "NO"
strcpy $MODIFY "NO"
goto label_l1
strcmp $1 "1" 0 +5
strcpy $REPAIR "NO"
strcpy $UNINSTALL "YES"
strcpy $MODIFY "NO"
goto label_l1
strcpy $REPAIR "NO"
strcpy $UNINSTALL "NO"
strcpy $MODIFY "YES"
label_l1:
strcmp $UNINSTALL "YES" 0 +6
hidewindow
writeuninstaller $WINDIR\temp\un_kat.exe
execwait $WINDIR\temp\un_kat.exe
delete $WINDIR\temp\un_kat.exe
quit
functionend
;I have included code for just one custome page
kichik
14th March 2007 19:46 UTC
You shouldn't call both InstallOptions::Dialog and MUI_INSTALLOPTIONS_DISPLAY. Use only one of the two. When using the MUI, you should use MUI_INSTALLOPTIONS_DISPLAY.
darshanaltekar
15th March 2007 04:50 UTC
Thank you very much it works fine now