{"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":"2020-01-09T09:27:48","modified_gmt":"2020-01-09T09:27:48","slug":"inno-setup-script-example","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/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 now appears to be working correctly. I thought I would&#8230; <\/p>\n","protected":false},"author":1,"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"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1117"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1117\/revisions"}],"predecessor-version":[{"id":1118,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1117\/revisions\/1118"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}