<p>Basically possible but tricky in detail:<br>
I tried adding the size information with method 1 described on <a href="https://nsis.sourceforge.io/Add_uninstall_information_to_Add/Remove_Programs#Computing_EstimatedSize" rel="nofollow">https://nsis.sourceforge.io/Add_uninstall_information_to_Add/Remove_Programs#Computing_EstimatedSize</a>.</p>
<p>This works well enough for Geany itself but provides wrong information for G-P:<br>
the mentioned GetSize function works by determining the used disk space of the installation directory <em>after</em> installation. This fine for Geany and gives accurate numbers.<br>
However since G-P has to be installed in the same installation directory as Geany itself, the G-P installer would include the existing Geany installation into the calculation and so reports wrong numbers.</p>
<p>I think telling the user wrong numbers is worse than not telling anything.</p>
<p>In theory, the best solution probably to sum up the required disk space numbers in the installer's Components page and use the result for the uninstall information.<br>
But I didn't find a way to get these numbers in the NSI script.</p>
<p>If anyone has an idea and/or other solution, just re-open.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2007#issuecomment-445463967">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ07b5p0NsQPAy-eVbWaID_1bUGbPks5u2877gaJpZM4ZCBDA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJyj6b9-YcfEc0BGGZjTohSDulpOkks5u2877gaJpZM4ZCBDA.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@eht16 in #2007: Basically possible but tricky in detail:\r\nI tried adding the size information with method 1 described on https://nsis.sourceforge.io/Add_uninstall_information_to_Add/Remove_Programs#Computing_EstimatedSize.\r\n\r\nThis works well enough for Geany itself but provides wrong information for G-P:\r\nthe mentioned GetSize function works by determining the used disk space of the installation directory *after* installation. This fine for Geany and gives accurate numbers.\r\nHowever since G-P has to be installed in the same installation directory as Geany itself, the G-P installer would include the existing Geany installation into the calculation and so reports wrong numbers.\r\n\r\nI think telling the user wrong numbers is worse than not telling anything.\r\n\r\nIn theory, the best solution probably to sum up the required disk space numbers in the installer's Components page and use the result for the uninstall information.\r\nBut I didn't find a way to get these numbers in the NSI script.\r\n\r\nIf anyone has an idea and/or other solution, just re-open."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/2007#issuecomment-445463967"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2007#issuecomment-445463967",
"url": "https://github.com/geany/geany/issues/2007#issuecomment-445463967",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [geany/geany] Missing size data to Windows installer (#2007)",
"sections": [
{
"text": "",
"activityTitle": "**Enrico Tröger**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@eht16",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 2007,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/2007#issuecomment-445463967"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 419958976\n}"
}
],
"themeColor": "26292E"
}
]</script>