websafe
13th September 2006 12:34 UTC
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
{_trueparuex^}
13th September 2006 13:47 UTC
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)
websafe
13th September 2006 14:07 UTC
silenttest.exe /S
silenttest.exe /S /passive
silenttest.exe /S /anything
The params appear in the window :confused:
{_trueparuex^}
13th September 2006 14:43 UTC
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.
websafe
13th September 2006 15:01 UTC
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"
:>
websafe
13th September 2006 15:13 UTC
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?
I did not found "Installer is silent and you can't see this text. :P" anywhere after running silenttest.exe 8-)
{_trueparuex^}
13th September 2006 16:18 UTC
Quote:
websafe
13th September 2006 18:34 UTC
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)
kichik
15th September 2006 17:57 UTC
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. |