Archive: Problem with NSIS and win-bash.


Problem with NSIS and win-bash.
Hello,

I'm trying to do a silent installation of 7-Zip. AFAIK 7-Zip uses NSIS installer. I'm trying to do a silent installation, and i notice problems under win-bash.

On the classic "windows-shell" (cmd.exe):

7z442.exe /S

everything works fine... Installs silently. But...

When I do the same under Bash for Windows (http://sourceforge.net/projects/win-bash)

7z442.exe /S

the installer is NOT SILENT :> Probably the parameter "/S" is not read by the installer... Other software, like the GnuWin32 packages install silently under win-bash without any problems... So it seems to be a NSIS related problem,
am I right?

Is this a known problem? Is there a solution?


TIA for any suggestions :)

--
websafe


Could you try this simple test file with win-bash. If you can see the text "Installer is silent and you can't see this text. :P" there really is something wrong, but if you don't and the window still appears with /S switch, try to run the test with random parameters and see if those appears in the log window ($CMDLINE)


silenttest.exe /S
silenttest.exe /S /passive
silenttest.exe /S /anything

The params appear in the window :confused:


But the text doesn't appear? Ok could you try this new test file. Don't use any parameters, just run it and try the silent mode if it works. It also should show message "Silent flag is set" in the silent mode.


when I'm doing silenttest.exe /S /anything then in the windows appears:
$CMDLINE = SILENT~1.EXE "/S" "/anything"
Completed


silenttest2.exe -> "Silent mode? YES|NO" -> YES -> "Silent flag i set"

silenttest2.exe /S -> "Silentmode? YES|NO" -> YES -> "Silent flag is set"

silenttest2.exe /S -> "Silentmode? YES|NO" -> NO -> "Silent flag is not set" -> OK -> "Completed"


:>


Originally posted by {_trueparuex^}
... If you can see the text "Installer is silent and you can't see this text. :P" there really is something wrong...
Originally posted by {_trueparuex^}
But the text doesn't appear?

Sorry, I missed this question :P
I did not found "Installer is silent and you can't see this text. :P" anywhere after running silenttest.exe 8-)

Quote:


Originally posted by {_trueparuex^}
Wait a minute... :weird: "/S" Where did those quotes come from. It should be just /S it doesn't work with quotes.
silenttest.exe /S /anything

in the window appears:

$CMDLINE = SILENT~1.EXE "/S" "/anything"
Completed

(with quotes, exactly as shown)

That's not very nice of winbash, changing the command line like that. Use the following from winbash to get around it:

cmd.exe /C "7z442.exe /S"


$CMDLINE = SILENT~1.EXE "/S" "/anything" Wait a minute... :weird: "/S" Where did those quotes come from. It should be just /S it doesn't work with quotes.