I know, I have to put /S to be able to install it silently. I'm using this function:
${GetOptions}for getting command line parameters. Problem is that all of a sudden installer aborts on this line:
Here is a part of the code:
StrCmp "" $0 +1 +2
Before this point, I also have this function called:
${GetOptions} $R0 /PASSWORD= $0
StrCpy $password $0
StrCmp $password "" +1 +2
${LogText} "Password is not specified."
continue:
${GetOptions} $R0 /WINACC= $0
${LogText} "win acc: $0"
StrCpy $accountName $0
${LogText} "win acc2: $accountName"
${LogText} "win acc again1: $0"
StrCmp "" $0 +1 +2 ; this is the line where it aborts
${LogText} "Windows account is not specified."
${LogText} "after win acc"
${GetParameters} $R0Strange thing is that I have called StrCmp function couple of times before this. Function
${LogText}is used for logging.I have put so many LogText statements for debugging reasons. All the code I wrote here is located in .onInit function. I don't know if that means something.
I'm really confused what is wrong here, if anyone knows what is the problem, please tell me. If you want more detail fill free to ask.