| | 45 | == Maken van een nieuwe Protocolhandler build == |
| | 46 | |
| | 47 | === Maak nieuwe build: === |
| | 48 | 1. Kies in Visual Studio bovenaan in de dropdown list voor project `OpenACProtocolhandler`. |
| | 49 | 2. Verhoog het versienummer op twee plaatsen: |
| | 50 | a. in `OpenACProtocolhandler\AssemblyInfo.cs` (na versie 1.9 komt versie 1.10, etc.) |
| | 51 | b. in `OpenACProtocolhandler\Setup\OpenACProtocolHandler.iss`, in regel: `#define MyAppVersion "1.8"` |
| | 52 | 3. Kies in de Visual Studio menubalk voor Build -> Publish. |
| | 53 | 4. Klik button `Publish`. |
| | 54 | 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`. |
| | 55 | |
| | 56 | === Maak een installatiepackage met Inno Setup: === |
| | 57 | |
| | 58 | 1. Inno Setup kun je via onderstaande links downloaden. Gebruik versie 6.2.0.\\ |
| | 59 | https://jrsoftware.org/isdl.php\\ |
| | 60 | https://files.jrsoftware.org/is/6/ |
| | 61 | 2. De Inno Setup Compiler gebruikt een script en dit script gebruikt environment variable `WORKSPACE`.\\ |
| | 62 | Deze variabele moet wijzen naar de root map van je Visual Studio projecten.\\ |
| | 63 | Als dit het pad naar het script is: `C:\Projecten\OpenACWebCore\OpenACProtocolHandler\Setup\OpenACProtocolHandler.iss`,\\ |
| | 64 | dan moet de `WORKSPACE` variabele zijn: `C:\Projecten`.\\ |
| | 65 | Stel de `WORKSPACE` variabele in met `setx` vanaf een command prompt: `setx WORKSPACE "C:\Projecten"`\\ |
| | 66 | Sluit hierna de command prompt en open een nieuwe om te controleren of de variabele goed is ingesteld met: `echo %WORKSPACE%` |
| | 67 | 3. Open bestand `OpenACProtocolHandler.iss` in de Inno Setup Compiler.\\ |
| | 68 | 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.) |
| | 69 | 4. Kies in de menubalk voor Build -> Compile. |
| | 70 | 5. Inno Setup Compiler creëert een map `Output` naast het `OpenACProtocolHandler.iss` script: |
| | 71 | `OpenACWebCore\OpenACProtocolHandler\Setup\Output` |
| | 72 | 6. In de map `Output` staat het nieuwe installatiebestand `OpenACProtocolHandlerSetup.exe`. |
| | 73 | 7. Open de Properties van deze .exe en kijk op tabblad 'Details' of het versienummer klopt. |
| | 74 | 8. Zip deze .exe naar `OpenACProtocolHandlerSetup.zip`. |
| | 75 | |
| | 76 | === Wiki updaten: === |
| | 77 | |
| | 78 | 1. Vervang de bestaande .zip file in de Wiki door de nieuwe .zip file. |
| | 79 | 2. Ga naar https://www.fenac.nl/openac/wiki/Documentatie/Beheerder/Modules/ProtocolHandler |
| | 80 | 3. Klik onderaan op button `Attach file`. |
| | 81 | 4. Kies de nieuw gemaakte .zip file. |
| | 82 | 5. Vink aan `Replace existing attachment of the same name`. |
| | 83 | 6. Klik op button `Add attachment`. |
| | 84 | |
| | 85 | === Installeer de nieuwe protocolhandler ook zelf: === |
| | 86 | |
| | 87 | 1. In Inno Setup Compiler 6.2.0 klik op de Run button. |
| | 88 | |
| | 89 | |
| | 90 | |
| | 91 | |
| | 92 | |
| | 93 | |
| | 94 | |