{"id":1024,"date":"2008-11-30T05:51:19","date_gmt":"2008-11-30T05:51:19","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=1024"},"modified":"2023-12-24T18:34:30","modified_gmt":"2023-12-24T18:34:30","slug":"installing-bg2-mods-using-nsis","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/installing-bg2-mods-using-nsis\/","title":{"rendered":"Installing BG2 Mods using NSIS"},"content":{"rendered":"<p>I wanted to offer a seamless install experience for my <a href=\"https:\/\/davelevy.info\/wiki\/perils-of-branwen-a-bg2-mod\/\">Perils of Branwen (Mod)<\/a>, so I asked Jason Compton&#8217;s help from PPG to configure the <b>Nullsoft Scriptable Install System<\/b>. It hangs out <a href=\"https:\/\/web.archive.org\/web\/20181115111521\/http:\/\/nsis.sourceforge.net\/Main_Page\">here at sourceforge<\/a>. <!--more-->This page is part of the documentation of the Perils of Branwen mod.<\/p>\n<pre>***************************************************\r\n#\r\n# Nullsoft SuperPiMP (NSIS) Script File\r\n# Generated by superPiMP wizard [http:\/\/manavmax.tripod.com\/]\r\n# (C)2001 Manav Rathi [manavmax@rediffmail.com]\r\n#\r\n# Its deeply rude to remove comment lines so I haven't\r\n# I obtained this from Jason Compton [<a href=\"http:\/\/www.pocketplane.net\/mambo\/\">http:\/\/www.pocketplane.net\/]<\/a>\r\n#\r\n# Version 1.0 Initial Version DFL\r\n# Prepared for V 8.05 Perils of Branwen\r\n#\r\n#***************************************************\r\n\r\n# [Installer Attributes]\r\nName \"Perils of Branwen V 08.05\" \r\nOutFile \"POB-SoaV0805d.exe\" \r\nCaption \"\" \r\nBrandingText \"\"\r\n\r\n# [Additional Installer Settings ] \r\nShowInstDetails show AutoCloseWindow false \r\nSilentInstall normal \r\nCRCCheck on \r\nSetCompress auto \r\nSetCompressor bzip2 \r\nSetDatablockOptimize on \r\nSetOverwrite on\r\n\r\n# [Background Gradient] \r\n# Top Bottom Heading \r\nBGGradient 336663 66cc00 FFFFFF \r\n# top color was 996633 ffcc33 FFFFFF\r\n\r\n# [Files] \r\nSection \"default\" \r\nSetOutPath $INSTDIR \r\nFile \"C:Program FilesBlack IsleBGII - SoASetup-POB.exe\" \r\nFile \"C:Program FilesBlack IsleBGII - SoASetup-POB.tp2\" \r\nFile \/r \"C:Program FilesBlack IsleBGII - SoAPob\" SectionEnd\r\n\r\n# [Directory Selection] \r\nInstallDir \"$PROGRAMFILESBG2 - SoA\" \r\n# This looks wrong, surely should be ${PF}BlackIsle\r\n\r\n# [Finding the BGII install path] \r\n    InstallDirRegKey HKLM \"SoftwareMicrosoftWindowsCurrentVersionApp PathsBG2Main.Exe\" \r\n    \"Path\"\r\n\r\n# DirShow show \r\nDirText \"Select your default BGII - SoA directory.\"\r\n\r\n;called when the installer is nearly finished initializing \r\nFunction .onInit\r\n\r\n;message box \r\nMessageBox MB_YESNO \"This will install Perils of Branwen V08 05 Dev. Continue?\" IDYES NoAbort \r\nAbort \r\nNoAbort: \r\nFunctionEnd\r\n\r\n;called when the user hits the 'cancel' button \r\nFunction .onUserAbort \r\nMessageBox MB_YESNO \"Abort install?\" IDYES \r\nNoCancelAbort Abort \r\nNoCancelAbort: \r\nFunctionEnd\r\n\r\n;called when the install was successful \r\nFunction .onInstSuccess \r\nExec \"$INSTDIRSetup-POB.exe\" \r\nFunctionEnd\r\n\r\n#eof!\r\n#<\/pre>\n<p>This doesn&#8217;t look right, snipsnap didn&#8217;t handle the back slash well, and the copy action may have distorted the syntax, if spaces and start of line are syntactically relevant.<\/p>\n<p>I need to find the script and upload it here.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to offer a seamless install experience for my Perils of Branwen (Mod), so I asked Jason Compton&#8217;s help from PPG to configure the Nullsoft Scriptable Install System. It hangs out here at sourceforge.<\/p>\n","protected":false},"author":1,"featured_media":9846,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[170,60],"tags":[923,62,324,921,213,323,92,328,325],"class_list":["post-1024","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-baldurs-gate","category-games","tag-baldurs-gate","tag-bg2","tag-branwen","tag-games","tag-install","tag-mod","tag-modding","tag-nsis","tag-pob"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2008\/11\/install-elena-rouame-sd-unsplash-w1080.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=1024"}],"version-history":[{"count":10,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1024\/revisions"}],"predecessor-version":[{"id":6624,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/1024\/revisions\/6624"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/9846"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=1024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=1024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=1024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}