| | 8 | === Maak nieuwe build: === |
| | 9 | 1. Kies in Visual Studio bovenaan in de dropdown list voor project `OpenACProtocolhandler`. |
| | 10 | 2. Verhoog het versienummer op twee plaatsen (gebruik hetzelfde versienummer): |
| | 11 | a. in `OpenACProtocolhandler\AssemblyInfo.cs`, in regel: `public const string Version = "1.8";` (na versie 1.9 komt versie 1.10, etc.) |
| | 12 | b. in `OpenACProtocolhandler\Setup\OpenACProtocolHandler.iss`, in regel: `#define MyAppVersion "1.8"` |
| | 13 | 3. Kies in de Visual Studio menubalk voor Build -> Publish. |
| | 14 | 4. Klik button `Publish`. |
| | 15 | 5. Het resultaat van de publish actie is een aantal dll's, .json files, een .exe en wat .pdb files. Deze komen terecht in map `OpenACProtocolHandler\bin\Release\netcoreapp3.1\publish`. |
| | 19 | 1. //Inno Setup// kun je via onderstaande links downloaden. Gebruik versie 6.2.0.\\ |
| | 20 | https://jrsoftware.org/isdl.php\\ |
| | 21 | https://files.jrsoftware.org/is/6/ |
| | 22 | 2. De //Inno Setup Compiler// gebruikt een script en dit script gebruikt environment variable `WORKSPACE`.\\ |
| | 23 | Deze variabele moet wijzen naar de root map van je Visual Studio projecten.\\ |
| | 24 | Als dit het pad naar het script is: `C:\Projecten\OpenACWebCore\OpenACProtocolHandler\Setup\OpenACProtocolHandler.iss`,\\ |
| | 25 | dan moet de `WORKSPACE` variabele zijn: `C:\Projecten`.\\ |
| | 26 | Stel de `WORKSPACE` variabele in met `setx` vanaf een command prompt: `setx WORKSPACE "C:\Projecten"`\\ |
| | 27 | Sluit hierna de command prompt en open een nieuwe om te controleren of de variabele goed is ingesteld met: `echo %WORKSPACE%` |
| | 28 | 3. Open bestand `OpenACProtocolHandler.iss` in de //Inno Setup Compiler//.\\ |
| | 29 | N.B. Als je net de environment variabele hebt aangemaakt, start dan de //Inno Setup Compiler// door in de Windows Explorer te dubbelklikken op de .iss file. Als je vanuit Visual Studio de .iss file opent in de //Inno Setup Compiler//, dan is de nieuwe environment variabele nog niet beschikbaar. (Wel nadat je Visual Studio opnieuw gestart hebt.) |
| | 30 | 4. Kies in de menubalk voor Build -> Compile. |
| | 31 | 5. //Inno Setup Compiler// creëert een map `Output` naast het `OpenACProtocolHandler.iss` script: |
| | 32 | `OpenACWebCore\OpenACProtocolHandler\Setup\Output` |
| | 33 | 6. In de map `Output` staat het nieuwe installatiebestand `OpenACProtocolHandlerSetup.exe`. |
| | 34 | 7. Open de Properties van deze .exe en kijk op tabblad 'Details' of het versienummer klopt. |
| | 35 | 8. Zip deze .exe naar `OpenACProtocolHandlerSetup.zip`. |
| | 36 | |
| | 37 | === Wiki updaten: === |
| | 38 | |
| | 39 | 1. Vervang de bestaande .zip file in de Wiki door de nieuwe .zip file. |
| | 40 | 2. Ga naar https://www.fenac.nl/openac/wiki/Documentatie/Beheerder/Modules/ProtocolHandler |
| | 41 | 3. Klik onderaan op button `Attach file`. |
| | 42 | 4. Kies de nieuw gemaakte .zip file. |
| | 43 | 5. Vink aan `Replace existing attachment of the same name`. |
| | 44 | 6. Klik op button `Add attachment`. |
| | 45 | |
| | 46 | === Installeer de nieuwe protocolhandler ook zelf: === |
| | 47 | |
| | 48 | 1. In //Inno Setup Compiler 6.2.0// klik op de Run button. |