Archive: Custom Page ?


Custom Page ?
  Hello,

WriteINIStr problem

Problem is i need to modify the .ini file to make it display, for example, 123.

1.Make buttom
2.Click on buttom
3.Run .exe file

a custom page, that is set on a mypage.ini file, it has 4 buttoms and each one of this buttons calls the same installer with one diferent parameters, on my custompage.ini had 2 button fields like this:

[Field 1]
Type=Button
Text=INSTALL 0
Flags=NOTABSTOP
State=Installer\db.exe 0
Left=254
Right=304
Top=65
Bottom=75

[Field 2]
Type=Button
Text=INSTALL 1
Flags=NOTABSTOP
State=Installer\db.exe 1
Left=254
Right=304
Top=65
Bottom=75

but it does not work, if i use:

State=Installer\db.exe

without the parameter it works fine, but no parameters is set, is there anyway to make the .ini file to accept command lines with parameters?

Or add Section for only bottom




Section"PaintDesktopVersion" Extras_Paint

WriteRegDword HKCU"Control Panel\Desktop" "PaintDesktopVersion" 0x00000001

MessageBox MB_OK
|MB_ICONINFORMATION ' Paint Desktop Version Enable '
MessageBox MB_OK|MB_ICONINFORMATION ' Please restart computer '
>SectionEnd
>
Plz Eeample for me.

Best regards.

Thx in advance. :)

http://forums.winamp.com/showthread.php?threadid=274107


add Section for only bottom

Plz Eeample for me.


Plz Eeample for me.


Plz Eeample for me.


Problem is i need to modify the .ini file to make it display

1.Make buttom
2.Click on buttom
3.Run .exe file

ok


See the Examples\InstallOptions\testnotify.nsi example script.

You need to use Flags=NOTIFY on your button and that will make the button call the page's Leave function. In there you can check Settings>State with ReadINIStr/MUI_INSTALLOPTIONS_READ and that will give you the field number of the button or 0.

Stu


Afrow UK THANKFUL

not ATTENTIVE

PLEASE Code Eeample for me.

THANKS

:)


plz :rolleyes:


The suggested included testnotify.nsi is an example, a very good one.
Go ahead, give it a try.


Function .onInit
#INITIALIZATIONS
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "my.ini"

ReadINIStr $0 "$PLUGINSDIR\my.ini" "Settings" "State"

FunctionEnd

Function my

SetOutPath "$PLUGINSDIR"

!insertmacro MUI_INSTALLOPTIONS_DISPLAY "my.ini"

StrCmp $R1 29 PDVE ; "Enable" button

PDVE:

WriteRegDword HKCU "Control Panel\Desktop" "PaintDesktopVersion" 0x00000001
MessageBox MB_OK|MB_ICONINFORMATION ' Paint Desktop Version Enable '
SKIP:

SetOutPath "$PLUGINSDIR"

!insertmacro MUI_INSTALLOPTIONS_DISPLAY "my.ini"

StrCmp $R1 37 PDVD ; "Disable" button

PDVD:

WriteRegDword HKCU "Control Panel\Desktop" "PaintDesktopVersion" 0x00000000
MessageBox MB_OK|MB_ICONINFORMATION ' Paint Desktop Version Disable '

MessageBox MB_OK|MB_ICONINFORMATION ' Please restart computer ' '

FunctionEnd


Close Program Run Function my

plz help me :(

Please Code (Function) Eeample for me.

plz help me ☻


Please Code (Function) Eeample for me.


We're very sorry but we do not understand what you need. Perhaps you could use an online translator such as http://babelfish.altavista.com/

Stu