![]() |
#1 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
![]()
I have an installation file packed with NSIS, can you help me see the packaging of that file?
|
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
Your post title is not very descriptive, edit and try again.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
sorry i am new and dont understand anything.
I have a setup file that uses "TextReplace" to modify the path and IP address of the computer into the ini files. can you help me ? |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
how to add IP address to setup window. and how to get this IP address automatically corrected to * .ini file |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
|
![]() |
![]() |
![]() |
#6 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
Use nsDialogs to create custom pages.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
|
![]() |
![]() |
![]() |
#8 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
![]() I have done this. I want the imported IP address to be saved in my "* .ini" file. can you guide me |
![]() |
![]() |
![]() |
#9 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
outfile 'test_install.exe'
!include 'nsdialogs.nsh' !include "MUI2.nsh" Name "Program" OutFile Program.exe InstallDir $Temp !insertmacro MUI_PAGE_DIRECTORY Page custom CreatePage !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_LANGUAGE "English" Section Install SectionEnd Function CreatePage !insertmacro MUI_HEADER_TEXT "Set IP address" "Please input the IP address you want to set" nsDialogs::Create 1018 Pop $0 ${If} $0 == error Abort ${EndIf} ${NSD_CreateLabel} 0u 2u 64u 8u "IP Address:" ${NSD_CreateIPaddress} 70u 0u 80u 12u "" nsDialogs::Show FunctionEnd |
![]() |
![]() |
![]() |
#10 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
PHP Code:
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#11 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
Thank you so much for your help
|
![]() |
![]() |
![]() |
#12 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
![]() i did a good job fixing the path to ini. My problem is how do I remove the text before the IP address "a =" |
![]() |
![]() |
![]() |
#13 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
![]() |
![]() |
![]() |
![]() |
#14 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
You don't because that is the format of a ini file. You can't use WriteIniStr with the format you want.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#15 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
![]() I cannot do as original installation file |
![]() |
![]() |
![]() |
#16 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
Are you saying you want to disable these controls? It is pointless, the user can override with /D on the commandline.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#17 |
Junior Member
Join Date: Sep 2020
Posts: 16
|
locks the installation path selection when the file is installed
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|