![]() |
#1 |
Junior Member
Join Date: Jun 2010
Posts: 6
|
Conditionally Set SetDetailsPrint
In .onInit I have this:
StrCpy $verbosity "none" ${GetParameters} $R0 ${if} $R0 == "verbose" StrCpy $verbosity "both" MessageBox MB_ICONINFORMATION $verbosity ${endif} This grabs the parameters which I only have one which is blank or "verbose" It sets the $verbosity variable correctly, I confirm this by the message box. Then throughout my installer I want to SetDetailsPrint to both if verbose was specified on the command line or none if not. In my section I have this: ${if} $verbosity == "verbose" SetDetailsPrint both ${else} SetDetailsPrint none ${endif} But it does not set it to both. Only to what I explicitly set at the beginning of the section. Basically I want to be able to see the full details when a problem with the installer happens so I can troubleshoot, but under normal conditions I don't want the full paths and commands I'm executing to show up. Seems like this should be possible, can someone help? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Can't tell you the problem from that. It looks fine. Unless something else is using SetDetailsPrint (i.e. a function or macro).
Stu |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Aug 2007
Location: Paris, France
Posts: 304
|
shouldn't it be
${if} $verbosity == "both" ? My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Woops!
Stu |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Jun 2010
Posts: 6
|
I don't know whether to laugh or cry. Thanks Wizou, I just could *not* see that.
Of course... this fixed everything. lol. Thanks. |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|