Old 2nd November 2016, 16:03   #1
rrbs
Junior Member
 
Join Date: Jul 2016
Posts: 6
Problems with wrong value in variable.

Problems with wrong value in variable.

Ask for help.

code:
# database selection
!define MUI_PAGE_CUSTOMFUNCTION_PRE SqlPage
!insertmacro MUI_PAGE_COMPONENTS

##Query the input values
code:
Function SqlPage

nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog

${If} $Dialog == error
Abort
${EndIf}

${NSD_CreateLabel} 7.9u 22.77u 65.82u 14.15u "Server"
Pop $lblServer

${NSD_CreateLabel} 7.9u 69.54u 55.95u 14.15u "Database"
Pop $lblDatabase

${NSD_CreateLabel} 7.9u 39.38u 65.82u 14.15u "SQLUser"
Pop $lblUsername

${NSD_CreateLabel} 7.9u 55.38u 65.82u 14.15u "SQLPassword"
Pop $lblPassword

${NSD_CreateText} 77.67u 22.77u 208.66u 12.31u ""
Pop $txtServer

${NSD_CreateText} 77.67u 71.38u 98.73u 12.31u ""
Pop $txtDatabase

${NSD_CreateText} 77.67u 38.77u 98.73u 12.31u ""
Pop $txtUsername

${NSD_CreateText} 77.67u 55.38u 98.73u 12.31u ""
Pop $pwdPassword

nsDialogs::Show
FunctionEnd



Click "Next" button no function.
When clicking on the start button, $ 0 - $ 3 are incorrectly assigned

# finish page
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE InstStartWeb
!define MUI_PAGE_CUSTOMFUNCTION_SHOW Questions
!define MUI_FINISHPAGE_TEXT $(mui_finishpage_text)
!define MUI_FINISHPAGE_BUTTON $(mui_finishpage_button)

# finish page
!insertmacro MUI_PAGE_FINISH




##
code:

Function InstStartWeb
# after completion launch the web installer for a new install
# or the agent interface for upgrade (possibly even package manager?)

${If} $Upgrade == "no"

# write a .json file to indicate we already had the License page
CreateDirectory $INSTDIR\KIX\var\tmp
FileClose $9 ;Closes the filled file

NSExec::ExecToLog "perl $\"$INSTDIR\test\config\mssql.pl$\" -u $0 -h $1 -p $2 -d $3"

FunctionEnd



Click "Next" button no function.
When clicking on the start button, $ 0 - $ 3 are incorrectly assigned?
rrbs is offline   Reply With Quote
Old 2nd November 2016, 16:39   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,280
This just looks like random code and you never assign the variables, please try again.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 3rd November 2016, 13:52   #3
rrbs
Junior Member
 
Join Date: Jul 2016
Posts: 6
yes, the problem is, that i have no event, where i can assign the variables.

where can ich do this?

on the SQLPage funktion?

Thanks

rrbs
rrbs 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