{"id":180,"date":"2009-03-16T00:36:22","date_gmt":"2009-03-15T23:36:22","guid":{"rendered":"http:\/\/katastrophos.net\/andre\/blog\/?p=180"},"modified":"2010-07-17T00:09:48","modified_gmt":"2010-07-16T23:09:48","slug":"setting-up-the-inno-setup-compiler-on-debian","status":"publish","type":"post","link":"https:\/\/katastrophos.net\/andre\/blog\/2009\/03\/16\/setting-up-the-inno-setup-compiler-on-debian\/","title":{"rendered":"Setting up the Inno Setup compiler on Debian"},"content":{"rendered":"<p>I&#8217;m currently setting up a nightly build system for Quasar on my Linux box which is running Debian. This system also cross-compiles Quasar for Windows.<br \/>\nThe Windows version of Quasar is going to be available in two fashions: one self-contained, portable version and one version that can be installed.<br \/>\nI&#8217;m not a huge fan of installers. But when it comes to creating a setup program for a given Windows application I&#8217;m quite accustomed to <a href=\"http:\/\/www.innosetup.com\" target=\"_blank\">Inno Setup<\/a> having used it for years. Unfortunately there is no native Linux version of the Inno Setup compiler available for Linux. <a href=\"http:\/\/nsis.sourceforge.net\" target=\"_blank\">NSIS<\/a> exists as package for Debian but I am not fond of using it, largely because I am a Delphi guy. :)<br \/>\nSo, here is a small guide on how to get the Inno Setup compiler up and running on Debian:<\/p>\n<p>First step is to install <a href=\"http:\/\/www.winehq.org\" target=\"_blank\">Wine<\/a> either as super user or by using <strong>sudo<\/strong>:<\/p>\n<pre name=\"code\" class=\"bash:nocontrols\">\r\nsudo apt-get install wine\r\n<\/pre>\n<p>As normal user fire up your X server and your favourite terminal application and get the latest <a href=\"http:\/\/www.innosetup.com\/isdl.php#qsp\" target=\"_blank\">Inno Setup QuickStart pack<\/a>:<\/p>\n<pre name=\"code\" class=\"bash:nocontrols\">\r\nmkdir \/tmp\/innosetup\r\ncd \/tmp\/innosetup\r\nwget http:\/\/files.jrsoftware.org\/ispack\/ispack-5.2.3.exe\r\nwine .\/ispack-5.2.3.exe\r\n<\/pre>\n<p>This will start the installer in Wine. Note, for the installation you will need a running X11 server since the installer obviously is graphical. If you have not set up Wine before, the default location <strong>C:\\Program Files\\Inno Setup 5<\/strong> will install to <strong>~\/.wine\/drive_c\/Programme\/Inno Setup 5<\/strong>.<\/p>\n<p>Luckily the Inno Setup compiler offers a command line interface, ISCC.exe, which will run in Wine without the necessity of having a X server running. So it is ideally suited for automated runs.<\/p>\n<p>Here is a simple wrapper shell script called <strong>iscc<\/strong>:<\/p>\n<pre name=\"code\" class=\"bash:nocontrols\">\r\n#!\/bin\/sh\r\nunset DISPLAY\r\nscriptname=$1\r\n[ -f \"$scriptname\" ] && scriptname=$(winepath -w \"$scriptname\")\r\nwine \"C:\\Program Files\\Inno Setup 5\\ISCC.exe\" \"$scriptname\" \"$2\" \"$3\" \"$4\" \"$5\" \"$6\" \"$7\" \"$8\" \"$9\"\r\n<\/pre>\n<p>I installed this script in my local bin directory (~\/bin) and added it to the PATH environment variable.<br \/>\nThis will allow running the Inno Setup compiler from anywhere and it also makes it very easy to integrate into a build script. You can even feed a script via stdin, e.g. something like:<\/p>\n<pre name=\"code\" class=\"bash:nocontrols\">\r\niscc - < .\/myscript.iss<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m currently setting up a nightly build system for Quasar on my Linux box which is running Debian. This system also cross-compiles Quasar for Windows. The Windows version of Quasar is going to be available in two fashions: one self-contained, portable version and one version that can be installed. I&#8217;m not a huge fan of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12,20,17,19,11,24,13,9],"class_list":["post-180","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-debian","tag-development","tag-findings","tag-hack","tag-linux","tag-quasar","tag-server","tag-windows"],"_links":{"self":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts\/180"}],"collection":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/comments?post=180"}],"version-history":[{"count":13,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":345,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts\/180\/revisions\/345"}],"wp:attachment":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/media?parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/categories?post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/tags?post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}