didava
11th July 2007 01:00 UTC
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. :)
didava
11th July 2007 12:51 UTC
add Section for only bottom
Plz Eeample for me.
didava
11th July 2007 16:38 UTC
Plz Eeample for me.
didava
12th July 2007 10:13 UTC
Plz Eeample for me.
didava
12th July 2007 12:22 UTC
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
Afrow UK
12th July 2007 12:24 UTC
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
didava
14th July 2007 00:26 UTC
Afrow UK THANKFUL
not ATTENTIVE
PLEASE Code Eeample for me.
THANKS
:)
didava
14th July 2007 15:47 UTC
plz :rolleyes:
Red Wine
14th July 2007 16:16 UTC
The suggested included testnotify.nsi is an example, a very good one.
Go ahead, give it a try.
didava
14th July 2007 23:19 UTC
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.
didava
15th July 2007 07:41 UTC
plz help me ☻
didava
15th July 2007 14:48 UTC
Please Code (Function) Eeample for me.
Afrow UK
15th July 2007 15:42 UTC
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