Git: SUPPRESSMSGBOXES does not work for uninstall

Created on 2 Mar 2018  路  2Comments  路  Source: git-for-windows/git

  • [x] I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.16.2.windows.1
cpu: x86_64
built from commit: e1848984d1004040ec5199e749b5f282ddf4bb09
sizeof-long: 4
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 6.1.7601]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VIM
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

* insert your response here *

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

CMD

Git-2.16.2-64-bit.exe /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh" unins001.exe -ArgumentList "/VERYSILENT /NORESTART /NOCANCEL /SP- /SUPPRESSMSGBOXES /FORCECLOSEAPPLICATIONS"

  • What did you expect to occur after running these commands?
  • What actually happened instead?

3 message boxes appear and are not suppressed:

  • Are you sure you want to completely remove Git and all of its components?
  • Progress dialog of deinstall (is closed wihout interaction)
  • Git was successfully removed from your computer.
  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

Not relevant.

question

All 2 comments

unins001.exe -ArgumentList "/VERYSILENT /NORESTART /NOCANCEL /SP- /SUPPRESSMSGBOXES /FORCECLOSEAPPLICATIONS"```

Our own installer calls any previously version's uninstaller with /VERYSILENT /SILENT /NORESTART /SUPPRESSMSGBOXES: https://github.com/git-for-windows/build-extra/blob/922e32b5de8af3fff26d5f73a36ce1e9129a3d17/installer/install.iss#L1646

We do not see those message boxes. Probably due to the extra /SILENT option.

I had to remove "-ArgumentList" then my options works fine too.
ArgumentList seems to be an option of msiexec.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Snaptags picture Snaptags  路  4Comments

educhana picture educhana  路  5Comments

jesterKing picture jesterKing  路  3Comments

yegorich picture yegorich  路  3Comments

sschlesier picture sschlesier  路  3Comments