Skip to content
⌘ NSIS Forum Archive

Hide single operation in "Show details"

3 posts

MonsterMash#

Hide single operation in "Show details"

Hi everybody,
This is my first post in this form, but I often lurked, and I'm pretty sure there's no ready solution in here.
The point is: I have a script doing several operations, and some of these operations require to execute commands with passwords (example: certutil.exe to import certificates, with the password written in the executed line, or signtool.exe to digital sign some exetutable).
What I would like to do is to keep the button "Show details" and the window showing the details, but just hide the lines containing private informations, like passwords.

The ideal would be to show all the lines, but just replace in the operations log the "*****" in the place of the password.

To be clear, I would like to see in the details the line:
signtool.exe sign /v /f "certificate.pfx" /p "********" "myApp.exe"

Or to hide the line at all.

Thank you very much.

Bye.
r2du-soft#
use before your operation:

SetDetailsPrint none

and use after your operation:

SetDetailsPrint both

Like this:
SetDetailsPrint none
DetailPrint "1"

SetDetailsPrint both
DetailPrint "2"
in the up code DetailPrint "1" not show but DetailPrint "2" show