{"id":1253,"date":"2017-12-04T06:00:38","date_gmt":"2017-12-04T06:00:38","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1253"},"modified":"2021-02-27T09:34:32","modified_gmt":"2021-02-27T09:34:32","slug":"install-external-program-from-cdrom-drive","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/","title":{"rendered":"Install external program from CDROM drive"},"content":{"rendered":"<p><strong>InstallerGeek created the topic: Install external program from CDROM drive<\/strong><br \/>\nI searched all over the Wix but couldn&#8217;t find anywhere how to install application from cdrom drive.<\/p>\n<p>I have wix install which should install SQL Server 2008 based on user selection. Say, if user selects client install I don&#8217;t have to install SQL Server but if he selects Server install then I have to install it and SQL Server folder is on the CD.<\/p>\n<p>CD ROM Directory structure looks like this CD\\Setup.exe &#8211; Wix Installer with BootStrapper to Install .NET Framework.<\/p>\n<p>CD\\SQLSERVER2008 &#8211; this folder includes x86 and x64 installer for SQL Server 2008 Express Edition.<\/p>\n<p>I need one to install SQL Server from the CD Folder.<\/p>\n<p>Something like<br \/>\n<var.Platform = x64><br \/>\n<CustomAction Id=\"InstallSQLx64\"\n                FileKey=\"[cddromdir]\\SQLServer2008\\SQLEXPR_x64_ENU.EXE\"\n                ExeCommand =\"\/q \/hideconsole \/action=Install \/features=SQL \/INSTANCENAME=MSSQLSERVER \/TCPENABLED=1 \/SECURITYMODE=SQL \/SAPWD=\"****\"  \/enableranu=1 \/sqlsvcaccount= \"NT Authority\\System\" \/SQLSYSADMINACCOUNTS=\"BUILTIN\\ADMINISTRATORS\"  \/skiprules=RebootRequiredCheck\"\n\n<var.Platform = x86><br \/>\n<CustomAction Id=\"InstallSQLx86\"\n                FileKey=\"[cddromdir]\\SQLServer2008\\SQLEXPR32_x86_ENU.EXE\"\n                ExeCommand =\"\/q \/hideconsole \/action=Install \/features=SQL \/INSTANCENAME=MSSQLSERVER \/TCPENABLED=1 \/SECURITYMODE=SQL \/SAPWD=\"****\"  \/enableranu=1 \/sqlsvcaccount= \"NT Authority\\System\" \/SQLSYSADMINACCOUNTS=\"BUILTIN\\ADMINISTRATORS\"  \/skiprules=RebootRequiredCheck\"\n\nIs this possible?\n\n\n<strong>applicationPackaging replied the topic: Re: Install external program from CDROM drive<\/strong><br \/>\nYou can&#8217;t generally launch one install program from within another.<br \/>\nHowever, I am not familiar with the specifics of this scenario, so, maybe?<\/p>\n<p><strong>InstallerGeek replied the topic: Re: Install external program from CDROM drive<\/strong><br \/>\nIn InstallShield, its very simple I can literally launch any program using LaunchAppAndWait(SOURCEFOLDER\\SQLServer2008\\setup.exe) but here I can&#8217;t find any tutorials or sample or even a code snippet to say you can do that.<\/p>\n<p><strong>applicationPackaging replied the topic: Re: Install external program from CDROM drive<\/strong><br \/>\nDon&#8217;t take what I said the wrong way. WiX is just an MSI authoring tool, and as such has many of the same or comparable capabilities that InstallShield does (I&#8217;ve used both and much prefer WiX). It&#8217;s just that launching one installer from within another is not something Microsoft supports or allows with the current MSI technology (InstallSheild or WiX). However, if your Setup.exe doesn&#8217;t ultimately run an MSI, then maybe.<\/p>\n<p>Snag a verbose log file and see what is says. We use a Setup.exe that launches our installer with logging, as a verbose log file is critical for debugging many issues.<\/p>\n<p>Good luck with your project.<\/p>\n<p><strong>InstallerGeek replied the topic: Re: Install external program from CDROM drive<\/strong><br \/>\nThanks, I will try that.<\/p>\n<p>I was thinking of using a CustomAction to run the external program, which I already do for creating a database from the installed folder, but all I wanted is access CDROM drive (Source Drive) to execute a CustomAction. I thought that can be done?<\/p>\n<p><strong>applicationPackaging replied the topic: Re: Install external program from CDROM drive<\/strong><br \/>\nI do have a CustomAction that references the SourceDir for its data files, but unlike yours the main executable that I run is on the Hard Disk. Still, a working example might be of some use so I have pasted it below.<\/p>\n<p><CustomAction Id=\"LoansMenuImport\" Property=\"LoansMenuImport\"\nValue=\"\"[FLOWMANDIR]MenuDesigner\\MenuImport.exe\" FlowMan FL0Wm@n \"[SourceDir]E3Menus\\E3Menu.xml\" \/R \/O \/L\"\nHideTarget=\"yes\" \/><\/p>\n<p><strong>applicationPackaging replied the topic: Re: Install external program from CDROM drive<\/strong><br \/>\nYou need CA Type 34 ( blogs.technet.com\/alexshev\/archive\/2008\/&#8230;-custom-actions.aspx ) and use [SourceDir] (instead of [cdromdir]).<br \/>\nStill, bootstrapper is probably a better choice to install SQL prerequisite.<\/p>\n<p><strong>applicationPackaging replied the topic: Re: Install external program from CDROM drive<\/strong><br \/>\nAnd, maybe I should point out that you might actually need two CustomAction entries to run one program. Here&#8217;s mine<\/p>\n<p><CustomAction Id=\"LoansMenuImport\" Property=\"LoansMenuImport\"\nValue=\"\"[FLOWMANDIR]MenuDesigner\\MenuImport.exe\" FlowMan FL0Wm@n \"[SourceDir]E3Menus\\E3Menu.xml\" \/R \/O \/L\"\nHideTarget=\"yes\" \/><\/p>\n<p><CustomAction Id=\"caLoansMenuImportexe\" Return=\"check\"\nExeCommand=\"[LoansMenuImport]\" Directory=\"TARGETDIR\" HideTarget=\"yes\" \/><\/p>\n<p>The first one sets up the command line to use.<\/p>\n<p>The second one is what actually gets run. Notice how ExeCommand points back to the Property defined in the first one.<\/p>\n<p><strong>InstallerGeek replied the topic: Re: Install external program from CDROM drive<\/strong><br \/>\nSo my code would be something like this<\/p>\n<p>    <CustomAction Id=\"CAExecuteSQL\" Property=\"LoadSQLExecute\" Value =\"[SourceDir]\\SQLServer2008\\SQLEXPR32_x86_ENU.EXE \/q \/hideconsole  \/action=Install\n        \/features=SQL \/INSTANCENAME=MSSQLSERVER \/TCPENABLED=1 \/SECURITYMODE=SQL\n        \/SAPWD=\"****\"  \/enableranu=1 \/sqlsvcaccount= \"NT Authority\\System\"\n        \/SQLSYSADMINACCOUNTS=\"BUILTIN\\ADMINISTRATORS\"\n        \/skiprules=RebootRequiredCheck\"\n                                  Execute=\"immediate\"\n                                  Impersonate=\"no\"\n                                  Return=\"asyncWait\"\n                                  HideTarget=\"yes\"\/><\/p>\n<p><CustomAction Id=\"ExecuteSQL\" Return=\"check\" ExeCommand=\"CAExecuteSQL\" Directory=\"SourceDir\" HideTarget=\"yes\" \/><\/p>\n<p>Does the Directory=&#8221;SourceDir&#8221; exists?<\/p>\n<p><strong>InstallerGeek replied the topic: Re: Install external program from CDROM drive<\/strong><br \/>\nCA Type 34 &#8211; does it give me the D:\\ drive (CD ROM Drive). If it does then half problem is solved.<\/p>\n<p>Yes, I wish bootstrapper &#8211; I do have it but got to remove it, well requirements are that we need to install items on demand based on user selection.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>InstallerGeek created the topic: Install external program from CDROM drive I searched all over the Wix but couldn&#8217;t find anywhere [&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":[305],"class_list":["post-1253","post","type-post","status-publish","format-standard","hentry","category-general","tag-cdrom"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Install external program from CDROM drive - 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\/install-external-program-from-cdrom-drive\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install external program from CDROM drive - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"InstallerGeek created the topic: Install external program from CDROM drive I searched all over the Wix but couldn&#8217;t find anywhere [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-04T06:00:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:34:32+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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/install-external-program-from-cdrom-drive\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/install-external-program-from-cdrom-drive\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"Install external program from CDROM drive\",\"datePublished\":\"2017-12-04T06:00:38+00:00\",\"dateModified\":\"2021-02-27T09:34:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/install-external-program-from-cdrom-drive\\\/\"},\"wordCount\":128,\"commentCount\":0,\"keywords\":[\"CDROM\"],\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/install-external-program-from-cdrom-drive\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/install-external-program-from-cdrom-drive\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/install-external-program-from-cdrom-drive\\\/\",\"name\":\"Install external program from CDROM drive - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"datePublished\":\"2017-12-04T06:00:38+00:00\",\"dateModified\":\"2021-02-27T09:34:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/install-external-program-from-cdrom-drive\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/install-external-program-from-cdrom-drive\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/install-external-program-from-cdrom-drive\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install external program from CDROM drive\"}]},{\"@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":"Install external program from CDROM drive - 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\/install-external-program-from-cdrom-drive\/","og_locale":"en_US","og_type":"article","og_title":"Install external program from CDROM drive - scmGalaxy","og_description":"InstallerGeek created the topic: Install external program from CDROM drive I searched all over the Wix but couldn&#8217;t find anywhere [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/","og_site_name":"scmGalaxy","article_published_time":"2017-12-04T06:00:38+00:00","article_modified_time":"2021-02-27T09:34:32+00:00","author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"Install external program from CDROM drive","datePublished":"2017-12-04T06:00:38+00:00","dateModified":"2021-02-27T09:34:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/"},"wordCount":128,"commentCount":0,"keywords":["CDROM"],"articleSection":["General"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/","name":"Install external program from CDROM drive - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"datePublished":"2017-12-04T06:00:38+00:00","dateModified":"2021-02-27T09:34:32+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/install-external-program-from-cdrom-drive\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Install external program from CDROM drive"}]},{"@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\/1253","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=1253"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/1253\/revisions"}],"predecessor-version":[{"id":1254,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/1253\/revisions\/1254"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=1253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=1253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=1253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}