{"id":1117,"date":"2017-12-02T10:51:20","date_gmt":"2017-12-02T10:51:20","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1117"},"modified":"2021-02-27T09:35:46","modified_gmt":"2021-02-27T09:35:46","slug":"inno-setup-script-example","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/","title":{"rendered":"Inno Setup script example"},"content":{"rendered":"<p><strong>msiexpert created the topic: Inno Setup script example<\/strong><br \/>\nI have been working on an inno script this past week, which now appears to be<br \/>\nworking correctly. I thought I would post it to the list server so it will<br \/>\nbecome part of the nug archives for future reference.<\/p>\n<p>TimberValue is a program written on a Mac, and is currently being distributed<br \/>\non both the Mac and Windows platforms. It creates two files: 1) a data file<br \/>\nwith the extension .tvd and 2) a license file with the extension .tvl<\/p>\n<p>Both of these files are RB database files.<\/p>\n<p>Files with the .tvd extension are named by the user, and have the icon<br \/>\nTmbrDatabase.ico<br \/>\nFiles with the .tvl extension are named TmbrLicense.tvl and have the icon<br \/>\nTmbrLicense.ico<\/p>\n<p>Icons were created using the Mask-R-Aid program.<\/p>\n<p>My inno setup data is contained in a folder called &#8220;Inno Setup Data&#8221; which I<br \/>\nhave placed on the Windows desktop. The path to this folder is C:\\Documents and<br \/>\nSettings\\TJ Hanson\\Desktop\\Inno Setup Data. The icons are contained in a folder<br \/>\ncalled &#8220;Icons&#8221; within the &#8220;Inno Setup Data&#8221; folder.<\/p>\n<p>One quirk I noticed is that the icons may not appear until you reboot the<br \/>\nWindows platform. I assume Windows wants a reboot before it looks at the new<br \/>\nregistry items.<\/p>\n<p>If anyone sees anything wrong, please let me know. I haven&#8217;t noticed any<br \/>\nproblems. Icons appear as they should; the program launches when a database<br \/>\nicon is double clicked; the program launches when a database icon is dragged on<br \/>\ntop of the program icon; and the SampleProject.tvd file brought in by the inno<br \/>\nscript is given the correct database icon.<\/p>\n<p>The whole script was too big for posting, so below are the Tasks, Files, Icons<br \/>\nand Registry sections<\/p>\n<p>Thanks to everyone who may have helped with this script.    TJ<br \/>\n=============================================================<\/p>\n<p>[Setup]<\/p>\n<p>[Languages]<\/p>\n<p>[Tasks]<br \/>\nName: &#8220;desktopicon&#8221;; Description: &#8220;{cm:CreateDesktopIcon}&#8221;; GroupDescription:<br \/>\n&#8220;{cm:AdditionalIcons}&#8221;; Flags: unchecked<\/p>\n<p>[Files]<br \/>\nSource: &#8220;C:\\Documents and Settings\\TJ Hanson\\Desktop\\Inno Setup<br \/>\nData\\TimberValue.exe&#8221;; DestDir: &#8220;{app}&#8221;; Flags: ignoreversion<br \/>\nSource: &#8220;C:\\Documents and Settings\\TJ Hanson\\Desktop\\Inno Setup<br \/>\nData\\TimberValue Libs\\*&#8221;; DestDir: &#8220;{app}\\TimberValue Libs&#8221;; Flags:<br \/>\nignoreversion recursesubdirs createallsubdirs<br \/>\nSource: &#8220;C:\\Documents and Settings\\TJ Hanson\\Desktop\\Inno Setup Data\\Icons\\*&#8221;;<br \/>\nDestDir: &#8220;{app}\\Icons&#8221;; Flags: ignoreversion recursesubdirs createallsubdirs<br \/>\nSource: &#8220;C:\\Documents and Settings\\TJ Hanson\\Desktop\\Inno Setup<br \/>\nData\\andale32.exe&#8221;; DestDir: &#8220;{app}&#8221;; Flags: ignoreversion<br \/>\nSource: &#8220;C:\\Documents and Settings\\TJ Hanson\\Desktop\\Inno Setup<br \/>\nData\\arial32.exe&#8221;; DestDir: &#8220;{app}&#8221;; Flags: ignoreversion<br \/>\nSource: &#8220;C:\\Documents and Settings\\TJ Hanson\\Desktop\\Inno Setup<br \/>\nData\\ReadMe.rtf&#8221;; DestDir: &#8220;{app}&#8221;; Flags: ignoreversion<br \/>\nSource: &#8220;C:\\Documents and Settings\\TJ Hanson\\Desktop\\Inno Setup<br \/>\nData\\SampleProject.tvd&#8221;; DestDir: &#8220;{app}&#8221;; Flags: ignoreversion<br \/>\nSource: &#8220;C:\\Documents and Settings\\TJ Hanson\\Desktop\\Inno Setup Data\\SLA.pdf&#8221;;<br \/>\nDestDir: &#8220;{app}&#8221;; Flags: ignoreversion<br \/>\nSource: &#8220;C:\\Documents and Settings\\TJ Hanson\\Desktop\\Inno Setup Data\\User<br \/>\nManual.pdf&#8221;; DestDir: &#8220;{app}&#8221;; Flags: ignoreversion<\/p>\n<p>[Icons]<br \/>\nName: &#8220;{group}\\TimberValue&#8221;; Filename: &#8220;{app}\\TimberValue.exe&#8221;<br \/>\nName: &#8220;{group}\\{cm:UninstallProgram,TimberValue}&#8221;; Filename: &#8220;{uninstallexe}&#8221;<br \/>\nName: &#8220;{commondesktop}\\TimberValue&#8221;; Filename: &#8220;{app}\\TimberValue.exe&#8221;; Tasks:<br \/>\ndesktopicon<\/p>\n<p>[Registry]<br \/>\nRoot: HKCR; Subkey: TimberDatabase\\shell\\open\\command; ValueType: string;<br \/>\nValueName: ; ValueData: &#8220;&#8221;&#8221;{app}\\{{TimberValue.exe}&#8221;&#8221; &#8220;&#8221;%1&#8243;&#8221;&#8221;<br \/>\nRoot: HKCR; Subkey: TimberDatabase\\DefaultIcon; ValueType: string; ValueName: ;<br \/>\nValueData: {app}\\Icons\\TmbrDatabase.ico,0<br \/>\nRoot: HKCR; Subkey: TimberDatabase; ValueType: string; ValueName: ; ValueData:<br \/>\nTimberValue Database File; Flags: uninsdeletekey<br \/>\nRoot: HKCR; Subkey: .tvd; ValueType: string; ValueName: ; ValueData:<br \/>\nTimberDatabase; Flags: uninsdeletekey<\/p>\n<p>Root: HKCR; Subkey: TimberLicense\\shell\\open\\command; ValueType: string;<br \/>\nValueName: ; ValueData: &#8220;&#8221;&#8221;{app}\\{{TimberValue.exe}&#8221;&#8221; &#8220;&#8221;%1&#8243;&#8221;&#8221;<br \/>\nRoot: HKCR; Subkey: TimberLicense\\DefaultIcon; ValueType: string; ValueName: ;<br \/>\nValueData: {app}\\Icons\\TmbrLicense.ico,0<br \/>\nRoot: HKCR; Subkey: TimberLicense; ValueType: string; ValueName: ; ValueData:<br \/>\nTimberValue License File; Flags: uninsdeletekey<br \/>\nRoot: HKCR; Subkey: .tvl; ValueType: string; ValueName: ; ValueData:<br \/>\nTimberLicense; Flags: uninsdeletekey<\/p>\n<p>[Run]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>msiexpert created the topic: Inno Setup script example I have been working on an inno script this past week, which [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[278],"class_list":["post-1117","post","type-post","status-publish","format-standard","hentry","category-general","tag-script"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Inno Setup script example - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Inno Setup script example - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"msiexpert created the topic: Inno Setup script example I have been working on an inno script this past week, which [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-02T10:51:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:35:46+00:00\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/inno-setup-script-example\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/inno-setup-script-example\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"Inno Setup script example\",\"datePublished\":\"2017-12-02T10:51:20+00:00\",\"dateModified\":\"2021-02-27T09:35:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/inno-setup-script-example\\\/\"},\"wordCount\":613,\"commentCount\":0,\"keywords\":[\"script\"],\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/inno-setup-script-example\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/inno-setup-script-example\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/inno-setup-script-example\\\/\",\"name\":\"Inno Setup script example - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"datePublished\":\"2017-12-02T10:51:20+00:00\",\"dateModified\":\"2021-02-27T09:35:46+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/inno-setup-script-example\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/inno-setup-script-example\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/inno-setup-script-example\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Inno Setup script example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Inno Setup script example - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/","og_locale":"en_US","og_type":"article","og_title":"Inno Setup script example - scmGalaxy","og_description":"msiexpert created the topic: Inno Setup script example I have been working on an inno script this past week, which [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/","og_site_name":"scmGalaxy","article_published_time":"2017-12-02T10:51:20+00:00","article_modified_time":"2021-02-27T09:35:46+00:00","author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"Inno Setup script example","datePublished":"2017-12-02T10:51:20+00:00","dateModified":"2021-02-27T09:35:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/"},"wordCount":613,"commentCount":0,"keywords":["script"],"articleSection":["General"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/","name":"Inno Setup script example - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"datePublished":"2017-12-02T10:51:20+00:00","dateModified":"2021-02-27T09:35:46+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/inno-setup-script-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Inno Setup script example"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/1117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=1117"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/1117\/revisions"}],"predecessor-version":[{"id":1118,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/1117\/revisions\/1118"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=1117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=1117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=1117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}