<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CDROM Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/cdrom/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/cdrom/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:34:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Install external program from CDROM drive</title>
		<link>https://www.scmgalaxy.com/tutorials/install-external-program-from-cdrom-drive/</link>
					<comments>https://www.scmgalaxy.com/tutorials/install-external-program-from-cdrom-drive/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 04 Dec 2017 06:00:38 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[CDROM]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1253</guid>

					<description><![CDATA[<p>InstallerGeek created the topic: Install external program from CDROM drive I searched all over the Wix but couldn&#8217;t find anywhere [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/install-external-program-from-cdrom-drive/">Install external program from CDROM drive</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>InstallerGeek created the topic: Install external program from CDROM drive</strong><br />
I searched all over the Wix but couldn&#8217;t find anywhere how to install application from cdrom drive.</p>
<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>
<p>CD ROM Directory structure looks like this CD\Setup.exe &#8211; Wix Installer with BootStrapper to Install .NET Framework.</p>
<p>CD\SQLSERVER2008 &#8211; this folder includes x86 and x64 installer for SQL Server 2008 Express Edition.</p>
<p>I need one to install SQL Server from the CD Folder.</p>
<p>Something like<br />
<var.Platform = x64><br />
<CustomAction Id="InstallSQLx64"
                FileKey="[cddromdir]\SQLServer2008\SQLEXPR_x64_ENU.EXE"
                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"

<var.Platform = x86><br />
<CustomAction Id="InstallSQLx86"
                FileKey="[cddromdir]\SQLServer2008\SQLEXPR32_x86_ENU.EXE"
                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"

Is this possible?


<strong>applicationPackaging replied the topic: Re: Install external program from CDROM drive</strong><br />
You can&#8217;t generally launch one install program from within another.<br />
However, I am not familiar with the specifics of this scenario, so, maybe?</p>
<p><strong>InstallerGeek replied the topic: Re: Install external program from CDROM drive</strong><br />
In 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>
<p><strong>applicationPackaging replied the topic: Re: Install external program from CDROM drive</strong><br />
Don&#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>
<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>
<p>Good luck with your project.</p>
<p><strong>InstallerGeek replied the topic: Re: Install external program from CDROM drive</strong><br />
Thanks, I will try that.</p>
<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>
<p><strong>applicationPackaging replied the topic: Re: Install external program from CDROM drive</strong><br />
I 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>
<p><CustomAction Id="LoansMenuImport" Property="LoansMenuImport"
Value=""[FLOWMANDIR]MenuDesigner\MenuImport.exe" FlowMan FL0Wm@n "[SourceDir]E3Menus\E3Menu.xml" /R /O /L"
HideTarget="yes" /></p>
<p><strong>applicationPackaging replied the topic: Re: Install external program from CDROM drive</strong><br />
You need CA Type 34 ( blogs.technet.com/alexshev/archive/2008/&#8230;-custom-actions.aspx ) and use [SourceDir] (instead of [cdromdir]).<br />
Still, bootstrapper is probably a better choice to install SQL prerequisite.</p>
<p><strong>applicationPackaging replied the topic: Re: Install external program from CDROM drive</strong><br />
And, maybe I should point out that you might actually need two CustomAction entries to run one program. Here&#8217;s mine</p>
<p><CustomAction Id="LoansMenuImport" Property="LoansMenuImport"
Value=""[FLOWMANDIR]MenuDesigner\MenuImport.exe" FlowMan FL0Wm@n "[SourceDir]E3Menus\E3Menu.xml" /R /O /L"
HideTarget="yes" /></p>
<p><CustomAction Id="caLoansMenuImportexe" Return="check"
ExeCommand="[LoansMenuImport]" Directory="TARGETDIR" HideTarget="yes" /></p>
<p>The first one sets up the command line to use.</p>
<p>The second one is what actually gets run. Notice how ExeCommand points back to the Property defined in the first one.</p>
<p><strong>InstallerGeek replied the topic: Re: Install external program from CDROM drive</strong><br />
So my code would be something like this</p>
<p>    <CustomAction Id="CAExecuteSQL" Property="LoadSQLExecute" Value ="[SourceDir]\SQLServer2008\SQLEXPR32_x86_ENU.EXE /q /hideconsole  /action=Install
        /features=SQL /INSTANCENAME=MSSQLSERVER /TCPENABLED=1 /SECURITYMODE=SQL
        /SAPWD="****"  /enableranu=1 /sqlsvcaccount= "NT Authority\System"
        /SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS"
        /skiprules=RebootRequiredCheck"
                                  Execute="immediate"
                                  Impersonate="no"
                                  Return="asyncWait"
                                  HideTarget="yes"/></p>
<p><CustomAction Id="ExecuteSQL" Return="check" ExeCommand="CAExecuteSQL" Directory="SourceDir" HideTarget="yes" /></p>
<p>Does the Directory=&#8221;SourceDir&#8221; exists?</p>
<p><strong>InstallerGeek replied the topic: Re: Install external program from CDROM drive</strong><br />
CA Type 34 &#8211; does it give me the D:\ drive (CD ROM Drive). If it does then half problem is solved.</p>
<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>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/install-external-program-from-cdrom-drive/">Install external program from CDROM drive</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/install-external-program-from-cdrom-drive/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
