From 3da23a80567191e90ebbc6695c14f5ecb60952a3 Mon Sep 17 00:00:00 2001 From: Kevin Dorner Date: Wed, 28 Oct 2020 00:37:42 +0100 Subject: [PATCH] the really really initial commit --- .gitignore | 2 ++ control | 21 ++++----------------- install.ins | 41 ++++++++++++++++++++--------------------- logo.png | Bin 0 -> 2838 bytes remove.ins | 33 +++++++++++++++++++++++++-------- 5 files changed, 51 insertions(+), 46 deletions(-) create mode 100644 .gitignore create mode 100644 logo.png diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fa015d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.exe +/data/ \ No newline at end of file diff --git a/control b/control index f8fbcca..8def667 100644 --- a/control +++ b/control @@ -1,26 +1,13 @@ [Product] type: localboot -id: mdg-visual-studio-code -name: MDG Visual Studio Code -description: VSCode ist eine von Microsoft entwickelte, weit verbreitete Entwicklungsumgebung mit Unterstützung für eine Vielzahl an Erweiterungen. Der Großteil des Programms ist quelloffen. -advice: Erweiterungen werden im Verzeichnes %USERPROFILE%\.vscode\extensions und somit im Windows-Profil des Nutzers installiert. -version: 1.50.1 +id: mdg-git-client +name: MDG Git Client +description: Git ist ein kostenloses und quelloffenes Versionskontrollsystem. Git ist unter der GPL v2 lizensiert. +version: 2.29.1 packageVersion: 1.0 setupScript: install.ins uninstallScript: remove.ins -[ProductDependency] -action: setup -requiredProduct: microsoft-dot-net-framework -requiredStatus: installed -requirementType: before - -[ProductProperty] -name: desktopshortcut -type: bool -description: Verknüpfung auf dem Windows Desktop erstellen -default: False - [ProductProperty] name: contextmenuentry type: bool diff --git a/install.ins b/install.ins index b6da981..ea2b03f 100644 --- a/install.ins +++ b/install.ins @@ -1,14 +1,12 @@ [Initial] -Message=Installiere MDG Visual Studio Code... +Message=Installiere MDG Git Client... DefVar $Version$ DefVar $ExitCode$ DefVar $CreateContextMenuEntry$ DefVar $ContextMenuArguments$ -DefVar $CreateDesktopShortcut$ -DefVar $DesktopShortcutArgument$ [Aktionen] -ShowBitmap "%ScriptPath%\logo.png" "MDG Visual Studio Code" +ShowBitmap "%ScriptPath%\logo.png" "MDG Git Client" Sub_GetProperties Sub_ConfigureProperties Sub_PrepareInstall @@ -18,34 +16,35 @@ Sub_HandleExitCode [Sub_GetProperties] Set $Version$ = GetValue("productversion", GetProductMap) Set $CreateContextMenuEntry$ = GetProductProperty("contextmenuentry", "false") -Set $CreateDesktopShortcut$ = GetProductProperty("desktopshortcut", "false") [Sub_ConfigureProperties] if ($CreateContextMenuEntry$ = "true") - Set $ContextMenuArguments$ = ", addcontextmenufiles, addcontextmenufolders" + Set $ContextMenuArguments$ = ",ext,ext\shellhere,ext\guihere" else - Set $ContextMenuArguments$ = ", !addcontextmenufiles, !addcontextmenufolders" -endif - -if ($CreateDesktopShortcut$ = "true") - Set $DesktopShortcutArgument$ = ", desktopicon" -else - Set $DesktopShortcutArgument$ = ", !desktopicon" + Set $ContextMenuArguments$ = "" endif [Sub_PrepareInstall] -if (processIsRunning("Code.exe")) - comment "Killing Process..." - Killtask "Code.exe" +; Kill gpg-agent +if (processIsRunning("gpg-agent.exe")) + comment "Killing gpg-agent..." + Killtask "gpg-agent.exe" sleepSeconds 3 endif -[WinBatch_Setup] -%ScriptPath%\data\VSCodeSetup-x64-$Version$.exe /VERYSILENT /SUPPRESSMSGBOXES /MERGETASKS="!runcode$ContextMenuArguments$$DesktopShortcutArgument$" /LOG="%opsiLogDir%\vscode-install.log" +; Kill ssh-agent +if (processIsRunning("ssh-agent.exe")) + comment "Killing ssh-agent..." + Killtask "ssh-agent.exe" + sleepSeconds 3 +endif -; VERYSILENT unterdrückt das Installationsfenster -; SUPPRESSMSGBOXES unterdrückt Benachrichtigungsfenster -; MERGETASKS verhindert das automatische Starten des Programms nach der Installation + + +[WinBatch_Setup] +%ScriptPath%\data\Git-$Version$-64-bit.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL /SP- /COMPONENTS="icons,icons\quicklaunch,assoc,assoc_sh,gitlfs$ContextMenuArguments$" /LOG="%opsiLogDir%\git-client-install.log" + +; See Components under https://github.com/git-for-windows/build-extra/blob/HEAD/installer/install.iss [Sub_HandleExitCode] ; check return code diff --git a/logo.png b/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..082d8e0e18117b836e79ce2fe9c3a1a70b3aa944 GIT binary patch literal 2838 zcmeHJ`#TegA07*HS*{g}#!8XPa!V^`?zs&!ax2X`O2#3g+}c)WHiahFI!8kdle-p2 z2n}5pHn|qb{Sp(o&p5t+#P_%JJfF||KA&IS=Xu}f{o!*T?P3R(f=B@X0I-9-4Q7w? z{##m%#rc0S|-4vAu?Uh{U+K0{{{hX+7(UEw_#y zOP|}>;$4+K^FHGMqFY#Ss8IPVxJtx+$oBkKU5$o%O~GbUoWIw#KdUFiB?*ICc^fiI z#QjCDjmBOoh(2WhMpb-wG5;6&r(v{Df|A^k{$-~NlND>BbtNiOWvJ(>&W9l{JVxF! z9zU)50yNN;Qgfxxik+)`!o~fu{m~NI7xFph`i-a`N$7S~>|NLic#vsk+rEG7T6Lx! zk6Y<|y9_eBXMXbU;qmYM0qdK^;l?qm$)&yOo-3r$u7iKcrY>n_Ki@M$cd)Vai2l-% zBfuW8Rc^nXinf%cQ1l%mQ84Eoi-$P;)sy%sJ)KV|563D6qt;XIMzqW^)Wy?k`9h&Ir@raIZ)d+&ndl z6AkWoz^qqIrI34u5KOW+=AJt0X;`{b;=(#iUyz%Dx^rq$pGuLBKzKpz72CI+Kl zDQI<3&SVVyC@}*ceWVm943z&ufQ?mSi!KxHKuo~Ht1sg*+uYQs-N$1CvTSE5!A{GK z7<`$ExW*!30_C{MdN6CmFE7a*1X$tARX5h1-Vu~598-JXFY)}KWU=D>eqlF%`8#=I zK5p8Ayp=X~r-^lab*L zYo~4c144rbw@b^W^MY#Kdb&isZS<@V;5rAlshgth43mil5ibt)Fc%i@(swnBGPgAe zEHvrKQkq(4D~SZn#{_|Yr9ZPaH_fx1;ohicabh=yNaYNc>3lS9I!UeG7fr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d1r>1braL1NMEtNHh zMkL0j`ByKuPrpQlX*P14YpR_!dL3)@zV}N7HX-M_dAZ4Ii+sdjvFsvI(#JD^06kK_ Q_kI8zY+Y>1t^Du(3(vD{WB>pF literal 0 HcmV?d00001 diff --git a/remove.ins b/remove.ins index 8c22542..6759f50 100644 --- a/remove.ins +++ b/remove.ins @@ -1,25 +1,42 @@ [Initial] -Message=Deinstalliere MDG Visual Studio Code... +Message=Deinstalliere MDG Git Client... DefVar $ExitCode$ +DefVar $UninstallExecutablePath$ [Aktionen] -ShowBitmap "%ScriptPath%\logo.png" "MDG Visual Studio Code" +ShowBitmap "%ScriptPath%\logo.png" "MDG Git Client" Sub_PrepareRemove WinBatch_Setup +Files_Cleanup Sub_HandleExitCode [Sub_PrepareRemove] -if (processIsRunning("Code.exe")) - comment "Killing Process..." - Killtask "Code.exe" +; Kill gpg-agent +if (processIsRunning("gpg-agent.exe")) + comment "Killing gpg-agent..." + Killtask "gpg-agent.exe" + sleepSeconds 3 +endif + +; Retrieve Uninstall executable Path +Set $UninstallExecutablePath$ = getRegistryValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Git_is1", "UninstallString","64bit") + +; Kill ssh-agent +if (processIsRunning("ssh-agent.exe")) + comment "Killing ssh-agent..." + Killtask "ssh-agent.exe" sleepSeconds 3 endif [WinBatch_Setup] -"%ProgramFiles64Dir%\Microsoft VS Code\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /LOG="%opsiLogDir%\vscode-uninstall.log" +if not ($UninstallExecutablePath$ = "") + if FileExists ($UninstallExecutablePath$) + $UninstallExecutablePath$ /VERYSILENT /SUPPRESSMSGBOXES /LOG="%opsiLogDir%\git-client-uninstall.log" + endif +endif -; VERYSILENT unterdrückt das Installationsfenster -; SUPPRESSMSGBOXES unterdrückt Benachrichtigungsfenster +[Files_Cleanup] +delete -sf "%ProgramFilesDir%\Git\" [Sub_HandleExitCode] ; check return code