Allow downgrade in silent mode

113 views
Skip to first unread message

Chris. N.

unread,
Jun 21, 2022, 9:49:23 AM6/21/22
to innosetup
Hi,

I'm trying to downgrade a version of Git for windows (from 2.32.0 to 2.29.0) using the command line.

"C:\Progs\Git-2.29.0-64-bit.exe" /SILENT /COMPONENTS=icons,ext\reg\shellhere,assoc,assoc_sh /DIR=C:\Progs\Git

Nothing happens; the git command seems frozen.

I've removed from the command the /SILENT option, and I can see a dialog asking to allow the downgrade.

How can I configure the command line to say Yes to this dialog?

Regards,

Chris

Wilenty

unread,
Jun 21, 2022, 1:29:18 PM6/21/22
to innosetup
Hello,
can I ask why you not asked them before asking here? Because they have their own forum: https://groups.google.com/g/git-for-windows/search?q=downgrade
I am asking, because most users here are helping with creating installers, but not in finding hidden command-line parameters prepared by their owners.

Answering to your question, to skip that dialog on downgrade, you should add this parameter to the command-line:
/ALLOWDOWNGRADE=1

So, in your example it could be:
"C:\Progs\Git-2.29.0-64-bit.exe" /SILENT /COMPONENTS=icons,ext\reg\shellhere,assoc,assoc_sh /DIR=C:\Progs\Git /ALLOWDOWNGRADE=1

Greetings,
Wilenty

Chris. N.

unread,
Jun 22, 2022, 8:13:18 AM6/22/22
to innosetup
Hi Wilenty,
I just followed the URL given into the help by running Git-2.29.0-64-bit.exe  /?
The /ALLOWDOWNGRADE=1  option was not present, so I asked here.
Thanks for the tip and link to git setup forum.
Regards,
Chris
Reply all
Reply to author
Forward
0 new messages