Old 8th October 2004, 08:22   #1
trizzi_it
Junior Member
 
Join Date: Oct 2004
Posts: 5
simple questions

Hi all,
I have a couple of questions:
a) These are my page settings:
PHP Code:
   Page custom BlaBla
  
!insertmacro MUI_PAGE_DIRECTORY
  
!insertmacro MUI_PAGE_INSTFILES
  
!insertmacro MUI_PAGE_FINISH 
When the inst files finished its tasks i'd like to see the details, but it's not done (if the installer sucessfully performs the inst part) and jump directly to the finish page.
Probably i've missed something important (AutoCloseWindow if has relevence is set to false).


b) suppose you have a RadioButton. I want to change its state dinamically. i.e.: i set the notify flag and inside a funtion ...

PHP Code:
!insertmacro MUI_INSTALLOPTIONS_READ $"pippo.ini" "Settings" "State"
   
IntCmp $0 0 next
   IntCmp 
$0 3 enableThis
   IntCmp 
$0 2 disableThis
   Abort
   enableThis
:
   
GetDlgItem $DLGITEM $HWND 1205
   EnableWindow $DLGITEM 1
   GetDlgItem $DLGITEM $HWND 1203
..... 
What is the code to change the state?

Thanks a lot!
trizzi_it is offline   Reply With Quote
Old 8th October 2004, 09:31   #2
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
a)
code:
!define MUI_INSTFILESPAGE_FINISHHEADER_TEXT "text"
!define MUI_INSTFILESPAGE_FINISHHEADER_SUBTEXT "text"
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_NOAUTOCLOSE
!insertmacro MUI_PAGE_FINISH

b)
code:
!define BM_SETCHECK 0x00F1

!define BST_UNCHECKED 0x0000
!define BST_CHECKED 0x0001
!define BST_INDETERMINATE 0x0002

SendMessage $DLGITEM ${BM_SETCHECK} ${BST_CHECKED} ""


My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump