<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8734776583240915688</id><updated>2024-08-30T10:51:56.310-07:00</updated><title type='text'>Installation  and Uninstallation discussion</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotneinstall.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dotneinstall.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>jivangoyal</name><uri>http://www.blogger.com/profile/12853371042810428434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8734776583240915688.post-9061516813064512378</id><published>2010-09-20T01:44:00.000-07:00</published><updated>2010-09-20T01:44:55.672-07:00</updated><title type='text'>Install the product/files and product on machine</title><content type='html'>Windows installer is one of the ultimate solutions that provide the ability to deploy your solution on the windows based client machines. Here I&#39;m specifying some the solution types that can be possible using windows installer from the wide range of support of this solution, so that you can plan your deployment with windows installer easily.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
Using windows MSI we can deploy our product solution in a very easy way. For creating windows installer based deployment, we can use various kinds of the IDE or tools. Visual Studio is one of the most known tool to create windows installation solution. &lt;br /&gt;
&lt;br /&gt;
By using windows installer you can&lt;br /&gt;
1. Copy files on any number of different locations depending on requirements&lt;br /&gt;
2. Customize registry keys depending on the requirements&lt;br /&gt;
3. Create windows services on the machine.&lt;br /&gt;
4. Customize any kind of windows behaviour.&lt;br /&gt;
&lt;br /&gt;
In Visual Studio, to create deployment solution you need to add a new project that can be created by using predefined template under New Projects&amp;gt;Other Project Types&amp;gt;Setup and Deployment&amp;gt;Visual Studio Installer [In Visual Studio 2010]. It also have a template with InstallShield too.&lt;br /&gt;
&lt;br /&gt;
So, now you can plan your deployment solution by using windows installer while you need to deploy specific files or to create specific behavior on the client machine for your product deployed.</content><link rel='replies' type='application/atom+xml' href='http://dotneinstall.blogspot.com/feeds/9061516813064512378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8734776583240915688/9061516813064512378' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/9061516813064512378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/9061516813064512378'/><link rel='alternate' type='text/html' href='http://dotneinstall.blogspot.com/2010/09/install-productfiles-and-product-on.html' title='Install the product/files and product on machine'/><author><name>jivangoyal</name><uri>http://www.blogger.com/profile/12853371042810428434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8734776583240915688.post-3288379244190410017</id><published>2008-07-01T04:32:00.000-07:00</published><updated>2009-02-01T22:16:37.502-08:00</updated><title type='text'>[Code Project]Wrapping the Windows Installer 2.0 API</title><content type='html'>See Link  &lt;a href=&quot;http://69.10.233.10/KB/cs/msiinterop.aspx&quot;&gt; &lt;span style=&quot;color: rgb(0, 0, 0);font-size:130%;&quot; &gt;Wrapping the Windows Installer 2.0 API &lt;/span&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotneinstall.blogspot.com/feeds/3288379244190410017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8734776583240915688/3288379244190410017' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/3288379244190410017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/3288379244190410017'/><link rel='alternate' type='text/html' href='http://dotneinstall.blogspot.com/2008/07/code-projectwrapping-windows-installer.html' title='[Code Project]Wrapping the Windows Installer 2.0 API'/><author><name>jivangoyal</name><uri>http://www.blogger.com/profile/12853371042810428434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8734776583240915688.post-4393374656036274708</id><published>2008-06-27T00:08:00.001-07:00</published><updated>2008-06-27T00:09:11.997-07:00</updated><title type='text'>Installation Problems</title><content type='html'>See Link : &lt;a href=&quot;http://makemsi-manual.dennisbareis.com/installproblems.htm&quot;&gt;http://makemsi-manual.dennisbareis.com/installproblems.htm&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotneinstall.blogspot.com/feeds/4393374656036274708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8734776583240915688/4393374656036274708' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/4393374656036274708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/4393374656036274708'/><link rel='alternate' type='text/html' href='http://dotneinstall.blogspot.com/2008/06/installation-problems.html' title='Installation Problems'/><author><name>jivangoyal</name><uri>http://www.blogger.com/profile/12853371042810428434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8734776583240915688.post-7947762845083654354</id><published>2008-06-27T00:03:00.000-07:00</published><updated>2008-06-27T00:06:38.512-07:00</updated><title type='text'>Windows Installer Error Codes</title><content type='html'>&lt;p class=&quot;note&quot;&gt;From Link : http://msdn.microsoft.com/en-us/library/aa368542.aspx&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;note&quot;&gt;error codes ERROR_SUCCESS, ERROR_SUCCESS_REBOOT_INITIATED, and ERROR_SUCCESS_REBOOT_REQUIRED are indicative of success. If ERROR_SUCCESS_REBOOT_REQUIRED is returned, the installation completed successfully but a reboot is required to complete the installation operation.&lt;/p&gt; &lt;p&gt;See &lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl01&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl01&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa372835%28VS.85%29.aspx&quot;&gt;Windows Installer Error Messages&lt;/a&gt; for errors returned by the Windows Installer.&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;table class=&quot;clsStd&quot;&gt; &lt;tbody&gt;&lt;tr&gt; &lt;th&gt;Error code&lt;/th&gt; &lt;th&gt;Value&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_SUCCESS&lt;/td&gt; &lt;td&gt;0&lt;/td&gt; &lt;td&gt;The action completed successfully.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INVALID_DATA&lt;/td&gt; &lt;td&gt;13&lt;/td&gt; &lt;td&gt;The data is invalid.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INVALID_PARAMETER&lt;/td&gt; &lt;td&gt;87&lt;/td&gt; &lt;td&gt;One of the parameters was invalid.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_CALL_NOT_IMPLEMENTED&lt;/td&gt; &lt;td&gt;120&lt;/td&gt; &lt;td&gt;This value is returned when a custom action attempts to call a function that cannot be called from custom actions. The function returns the value ERROR_CALL_NOT_IMPLEMENTED. Available beginning with Windows Installer version 3.0.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_APPHELP_BLOCK&lt;/td&gt; &lt;td&gt;1259&lt;/td&gt; &lt;td&gt;If Windows Installer determines a product may be incompatible with the current operating system, it displays a dialog box informing the user and asking whether to try to install anyway. This error code is returned if the user chooses not to try the installation.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_SERVICE_FAILURE&lt;/td&gt; &lt;td&gt;1601&lt;/td&gt; &lt;td&gt;The Windows Installer service could not be accessed. Contact your support personnel to verify that the Windows Installer service is properly registered.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_USEREXIT&lt;/td&gt; &lt;td&gt;1602&lt;/td&gt; &lt;td&gt;The user cancels installation.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_FAILURE&lt;/td&gt; &lt;td&gt;1603&lt;/td&gt; &lt;td&gt;A fatal error occurred during installation.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_SUSPEND&lt;/td&gt; &lt;td&gt;1604&lt;/td&gt; &lt;td&gt;Installation suspended, incomplete.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_UNKNOWN_PRODUCT&lt;/td&gt; &lt;td&gt;1605&lt;/td&gt; &lt;td&gt;This action is only valid for products that are currently installed.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_UNKNOWN_FEATURE&lt;/td&gt; &lt;td&gt;1606&lt;/td&gt; &lt;td&gt;The feature identifier is not registered.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_UNKNOWN_COMPONENT&lt;/td&gt; &lt;td&gt;1607&lt;/td&gt; &lt;td&gt;The component identifier is not registered.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_UNKNOWN_PROPERTY&lt;/td&gt; &lt;td&gt;1608&lt;/td&gt; &lt;td&gt;This is an unknown property.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INVALID_HANDLE_STATE&lt;/td&gt; &lt;td&gt;1609&lt;/td&gt; &lt;td&gt;The handle is in an invalid state.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_BAD_CONFIGURATION&lt;/td&gt; &lt;td&gt;1610&lt;/td&gt; &lt;td&gt;The configuration data for this product is corrupt. Contact your support personnel.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INDEX_ABSENT&lt;/td&gt; &lt;td&gt;1611&lt;/td&gt; &lt;td&gt;The component qualifier not present.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_SOURCE_ABSENT&lt;/td&gt; &lt;td&gt;1612&lt;/td&gt; &lt;td&gt;The installation source for this product is not available. Verify that the source exists and that you can access it.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_PACKAGE_VERSION&lt;/td&gt; &lt;td&gt;1613&lt;/td&gt; &lt;td&gt;This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_PRODUCT_UNINSTALLED&lt;/td&gt; &lt;td&gt;1614&lt;/td&gt; &lt;td&gt;The product is uninstalled.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_BAD_QUERY_SYNTAX&lt;/td&gt; &lt;td&gt;1615&lt;/td&gt; &lt;td&gt;The SQL query syntax is invalid or unsupported.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INVALID_FIELD&lt;/td&gt; &lt;td&gt;1616&lt;/td&gt; &lt;td&gt;The record field does not exist.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_ALREADY_RUNNING&lt;/td&gt; &lt;td&gt;1618&lt;/td&gt; &lt;td&gt;Another installation is already in progress. Complete that installation before proceeding with this install.&lt;p&gt;For information about the mutex, see &lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl03&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl03&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa372909%28VS.85%29.aspx&quot;&gt;_MSIExecute Mutex&lt;/a&gt;.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_PACKAGE_OPEN_FAILED&lt;/td&gt; &lt;td&gt;1619&lt;/td&gt; &lt;td&gt;This installation package could not be opened. Verify that the package exists and is accessible, or contact the application vendor to verify that this is a valid Windows Installer package.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_PACKAGE_INVALID&lt;/td&gt; &lt;td&gt;1620&lt;/td&gt; &lt;td&gt;This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_UI_FAILURE&lt;/td&gt; &lt;td&gt;1621&lt;/td&gt; &lt;td&gt;There was an error starting the Windows Installer service user interface. Contact your support personnel.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_LOG_FAILURE&lt;/td&gt; &lt;td&gt;1622&lt;/td&gt; &lt;td&gt;There was an error opening installation log file. Verify that the specified log file location exists and is writable.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_LANGUAGE_UNSUPPORTED&lt;/td&gt; &lt;td&gt;1623&lt;/td&gt; &lt;td&gt;This language of this installation package is not supported by your system.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_TRANSFORM_FAILURE&lt;/td&gt; &lt;td&gt;1624&lt;/td&gt; &lt;td&gt;There was an error applying transforms. Verify that the specified transform paths are valid.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_PACKAGE_REJECTED&lt;/td&gt; &lt;td&gt;1625&lt;/td&gt; &lt;td&gt;This installation is forbidden by system policy. Contact your system administrator.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_FUNCTION_NOT_CALLED&lt;/td&gt; &lt;td&gt;1626&lt;/td&gt; &lt;td&gt;The function could not be executed.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_FUNCTION_FAILED&lt;/td&gt; &lt;td&gt;1627&lt;/td&gt; &lt;td&gt;The function failed during execution.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INVALID_TABLE&lt;/td&gt; &lt;td&gt;1628&lt;/td&gt; &lt;td&gt;An invalid or unknown table was specified.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_DATATYPE_MISMATCH&lt;/td&gt; &lt;td&gt;1629&lt;/td&gt; &lt;td&gt;The data supplied is the wrong type.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_UNSUPPORTED_TYPE&lt;/td&gt; &lt;td&gt;1630&lt;/td&gt; &lt;td&gt;Data of this type is not supported.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_CREATE_FAILED&lt;/td&gt; &lt;td&gt;1631&lt;/td&gt; &lt;td&gt;The Windows Installer service failed to start. Contact your support personnel.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_TEMP_UNWRITABLE&lt;/td&gt; &lt;td&gt;1632&lt;/td&gt; &lt;td&gt;The Temp folder is either full or inaccessible. Verify that the Temp folder exists and that you can write to it.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_PLATFORM_UNSUPPORTED&lt;/td&gt; &lt;td&gt;1633&lt;/td&gt; &lt;td&gt;This installation package is not supported on this platform. Contact your application vendor.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_NOTUSED&lt;/td&gt; &lt;td&gt;1634&lt;/td&gt; &lt;td&gt;Component is not used on this machine.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_PATCH_PACKAGE_OPEN_FAILED&lt;/td&gt; &lt;td&gt;1635&lt;/td&gt; &lt;td&gt;This patch package could not be opened. Verify that the patch package exists and is accessible, or contact the application vendor to verify that this is a valid Windows Installer patch package.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_PATCH_PACKAGE_INVALID&lt;/td&gt; &lt;td&gt;1636&lt;/td&gt; &lt;td&gt;This patch package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer patch package.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_PATCH_PACKAGE_UNSUPPORTED&lt;/td&gt; &lt;td&gt;1637&lt;/td&gt; &lt;td&gt;This patch package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_PRODUCT_VERSION&lt;/td&gt; &lt;td&gt;1638&lt;/td&gt; &lt;td&gt;Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use &lt;b&gt;Add/Remove Programs&lt;/b&gt; in &lt;b&gt;Control Panel&lt;/b&gt;.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INVALID_COMMAND_LINE&lt;/td&gt; &lt;td&gt;1639&lt;/td&gt; &lt;td&gt;Invalid command line argument. Consult the Windows Installer SDK for detailed command-line help.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_REMOTE_DISALLOWED&lt;/td&gt; &lt;td&gt;1640&lt;/td&gt; &lt;td&gt;Installation from a Terminal Server client session is not permitted for the current user.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_SUCCESS_REBOOT_INITIATED&lt;/td&gt; &lt;td&gt;1641&lt;/td&gt; &lt;td&gt;The installer has initiated a restart. This message is indicative of a success. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_PATCH_TARGET_NOT_FOUND&lt;/td&gt; &lt;td&gt;1642&lt;/td&gt; &lt;td&gt;The installer cannot install the upgrade patch because the program being upgraded may be missing or the upgrade patch updates a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch. &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_PATCH_PACKAGE_REJECTED&lt;/td&gt; &lt;td&gt;1643&lt;/td&gt; &lt;td&gt;The patch package is not permitted by system policy.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_TRANSFORM_REJECTED&lt;/td&gt; &lt;td&gt;1644&lt;/td&gt; &lt;td&gt;One or more customizations are not permitted by system policy.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_INSTALL_REMOTE_PROHIBITED&lt;/td&gt; &lt;td&gt;1645&lt;/td&gt; &lt;td&gt;Windows Installer does not permit installation from a Remote Desktop Connection.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; ERROR_PATCH_REMOVAL_UNSUPPORTED&lt;/td&gt; &lt;td&gt;1646&lt;/td&gt; &lt;td&gt;The patch package is not a removable patch package. Available beginning with Windows Installer version 3.0.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; ERROR_UNKNOWN_PATCH&lt;/td&gt; &lt;td&gt;1647&lt;/td&gt; &lt;td&gt;The patch is not applied to this product. Available beginning with Windows Installer version 3.0.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; ERROR_PATCH_NO_SEQUENCE&lt;/td&gt; &lt;td&gt;1648&lt;/td&gt; &lt;td&gt;No valid sequence could be found for the set of patches. Available beginning with Windows Installer version 3.0.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; ERROR_PATCH_REMOVAL_DISALLOWED&lt;/td&gt; &lt;td&gt;1649&lt;/td&gt; &lt;td&gt;Patch removal was disallowed by policy. Available beginning with Windows Installer version 3.0.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; ERROR_INVALID_PATCH_XML&lt;/td&gt; &lt;td&gt;1650&lt;/td&gt; &lt;td&gt;The XML patch data is invalid. Available beginning with Windows Installer version 3.0.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT &lt;/td&gt; &lt;td&gt;1651&lt;/td&gt; &lt;td&gt;Administrative user failed to apply patch for a per-user managed or a per-machine application that is in advertise state.   Available beginning with Windows Installer version 3.0.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;ERROR_SUCCESS_REBOOT_REQUIRED&lt;/td&gt; &lt;td&gt;3010&lt;/td&gt; &lt;td&gt;A restart is required to complete the install. This message is indicative of a success. This does not include installs where the &lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl04&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl04&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa368607%28VS.85%29.aspx&quot;&gt;ForceReboot&lt;/a&gt; action is run.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotneinstall.blogspot.com/feeds/7947762845083654354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8734776583240915688/7947762845083654354' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/7947762845083654354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/7947762845083654354'/><link rel='alternate' type='text/html' href='http://dotneinstall.blogspot.com/2008/06/windows-installer-error-codes.html' title='Windows Installer Error Codes'/><author><name>jivangoyal</name><uri>http://www.blogger.com/profile/12853371042810428434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8734776583240915688.post-3154600262400285328</id><published>2008-06-15T22:59:00.000-07:00</published><updated>2008-06-16T03:30:23.418-07:00</updated><title type='text'>Change the full path of the product installation</title><content type='html'>&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Change the full path of the product installation&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;Note: I&#39;ve searched the various links to get information at one place. I&#39;ve not checked the contents for validation. So I&#39;m not responsible for any issue found related to the contents specified in the blog. Please use contents  at  own risk.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;The api directory function of Msi - MsiSetTargetPath can be used to set the target path of the product to be installed. The complete syntax declaration of the api is given below:&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiSetTargetPath.asp&quot;&gt;MsiSetTargetPath: &lt;/a&gt;&lt;br /&gt;&lt;pre style=&quot;border-top: 1px solid rgb(170, 170, 170); border-bottom: 1px solid rgb(170, 170, 170);&quot;&gt;Declare Function MsiSetTargetPath lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szFolder As String, ByVal szFolderPath As String) As Long&lt;br /&gt;&lt;/pre&gt;This function Sets the full target path for a directory listed in the Directory table.&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Parameters&lt;/h4&gt; &lt;dl&gt;&lt;dt&gt;&lt;i&gt;hInstall&lt;/i&gt; [in]                Handle to the installation provided to a DLL custom action or obtained&lt;br /&gt;&lt;/dt&gt;&lt;dt&gt;                                     through &lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl03&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl03&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa370339%28VS.85%29.aspx&quot;&gt;&lt;b&gt;MsiOpenPackage&lt;/b&gt;&lt;/a&gt;, &lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl04&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl04&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa370340%28VS.85%29.aspx&quot;&gt;&lt;b&gt;MsiOpenPackageEx&lt;/b&gt;&lt;/a&gt;, or&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/dt&gt;&lt;dt&gt;&lt;b&gt;                                     &lt;/b&gt;&lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl05&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl05&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa370341%28VS.85%29.aspx&quot;&gt;&lt;b&gt;MsiOpenProduct&lt;/b&gt;&lt;/a&gt;.&lt;/dt&gt;&lt;dd&gt;&lt;br /&gt;&lt;/dd&gt;&lt;dt&gt;&lt;i&gt;szFolder&lt;/i&gt; [in]               Specifies the folder identifier. This is a primary key in the Directory table.&lt;/dt&gt;&lt;dd&gt;&lt;br /&gt;&lt;/dd&gt;&lt;dt&gt;&lt;i&gt;szFolderPath&lt;/i&gt; [in]       Specifies the full path for the folder, ending in a directory separator.&lt;/dt&gt;&lt;/dl&gt; &lt;h4&gt;Return Value&lt;/h4&gt; &lt;p&gt;      The  &lt;b&gt;MsiSetTargetPath&lt;/b&gt; function returns the following values:&lt;/p&gt; &lt;dl&gt;&lt;dt&gt;ERROR_DIRECTORY                      The directory specified was not found in the  &lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl06&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl06&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa368295%28VS.85%29.aspx&quot;&gt;Directory table&lt;/a&gt;.&lt;/dt&gt;&lt;dd&gt;&lt;br /&gt;&lt;/dd&gt;&lt;dt&gt;ERROR_INVALID_HANDLE           An invalid or inactive handle was supplied.&lt;/dt&gt;&lt;dd&gt;&lt;br /&gt;&lt;/dd&gt;&lt;dt&gt;ERROR_INVALID_PARAMETER  An invalid parameter was passed to the function.&lt;/dt&gt;&lt;dd&gt;&lt;br /&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;dl&gt;&lt;dt&gt;ERROR_SUCCESS                             The function succeeded.&lt;/dt&gt;&lt;/dl&gt;Directory Table&lt;!--Content type: HTML. Transform: psdk2mtps.xslt.--&gt;   &lt;p&gt;The Directory table specifies the directory layout for the product. Each row of the table indicates a directory both at the source and the target.&lt;/p&gt; &lt;p&gt;The Directory table has the following columns.&lt;/p&gt; &lt;table class=&quot;clsStd&quot;&gt; &lt;tbody&gt;&lt;tr&gt; &lt;th&gt;Column&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Key&lt;/th&gt; &lt;th&gt;Nullable&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Directory&lt;/td&gt; &lt;td&gt;&lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl01&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl01&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa369212%28VS.85%29.aspx&quot;&gt;Identifier&lt;/a&gt;&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Directory_Parent&lt;/td&gt; &lt;td&gt;&lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl02&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl02&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa369212%28VS.85%29.aspx&quot;&gt;Identifier&lt;/a&gt;&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;Y&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;DefaultDir&lt;/td&gt; &lt;td&gt;&lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl03&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl03&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa368265%28VS.85%29.aspx&quot;&gt;DefaultDir&lt;/a&gt;&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;td&gt;N&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;h4&gt;&lt;a name=&quot;columns&quot;&gt;&lt;!----&gt;&lt;/a&gt;&lt;span id=&quot;ctl00_rs1_mtpsFooter_MSFT_copyright&quot; title=&quot;© 2008  Microsoft Corporation. All rights reserved.&quot; class=&quot;MTPS_FooterCopyright&quot;&gt;&lt;/span&gt;&lt;/h4&gt;Before using &lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;MsiSetTargetPath function, check the product state to ensure that nothing of the product was installed yet.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class=&quot;title&quot; msxsl=&quot;urn:schemas-microsoft-com:xslt&quot;&gt;ProductState Property&lt;/div&gt;&lt;!--Content type: HTML. Transform: psdk2mtps.xslt.--&gt;   &lt;p&gt;The installer sets the &lt;b&gt;ProductState&lt;/b&gt; property to the installation state for the product at initialization. This property is set to one of the following INSTALLSTATE data types returned by &lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl01&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl01&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa370363%28VS.85%29.aspx&quot;&gt;&lt;b&gt;MsiQueryProductState&lt;/b&gt;&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;use the function &lt;/span&gt;&lt;/span&gt;&lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl01&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl01&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa370363%28VS.85%29.aspx&quot;&gt;&lt;b&gt;MsiQueryProductState&lt;/b&gt;&lt;/a&gt; for this purpose.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;MsiQueryProductState Function&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;border-top: 1px solid rgb(170, 170, 170); border-bottom: 1px solid rgb(170, 170, 170);&quot;&gt;Declare Function MsiQueryProductState lib &quot;MSI&quot; (ByVal szProduct As String) As INSTALLSTATE&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;h4&gt;Parameters&lt;/h4&gt; &lt;dl&gt;&lt;dt&gt;&lt;i&gt;szProduct&lt;/i&gt; [in]           Specifies the product code that identifies the product to be queried.&lt;/dt&gt;&lt;dd&gt;&lt;br /&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;br /&gt;&lt;h4&gt;Return Value&lt;/h4&gt;  &lt;table class=&quot;clsStd&quot;&gt;&lt;tbody&gt;&lt;tr&gt; &lt;th&gt;Value&lt;/th&gt; &lt;th&gt;Meaning&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;INSTALLSTATE_ABSENT&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;The product is installed for a different user.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;INSTALLSTATE_ADVERTISED&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;The product is advertised but not installed.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;INSTALLSTATE_DEFAULT&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;The product is installed for the current user.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;INSTALLSTATE_INVALIDARG&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;An invalid parameter was passed to the function.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;INSTALLSTATE_UNKNOWN&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;The product is neither advertised or installed.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl05&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl05&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa370341%28VS.85%29.aspx&quot;&gt;&lt;b&gt;MsiOpenProduct&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;The  &lt;b&gt;MsiOpenProduct&lt;/b&gt; function opens a product for use with the functions that access the product database. The  &lt;a id=&quot;ctl00_rs1_mainContentContainer_ctl01&quot; onclick=&quot;javascript:Track(&#39;ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl01&#39;,this);&quot; href=&quot;http://msdn.microsoft.com/en-us/library/aa370067%28VS.85%29.aspx&quot;&gt;&lt;b&gt;MsiCloseHandle&lt;/b&gt;&lt;/a&gt; function must be called with the handle when the handle is no longer needed.&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;border-top: 1px solid rgb(170, 170, 170); border-bottom: 1px solid rgb(170, 170, 170);&quot;&gt;Declare Function MsiOpenProduct lib &quot;MSI&quot; (ByVal szProduct As String, ByRef hProduct As MSIHANDLE) As Long&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;h4&gt;Parameters&lt;/h4&gt; &lt;dl&gt;&lt;dt&gt;&lt;i&gt;szProduct&lt;/i&gt; [in]                          Specifies the product code of the product to be opened.&lt;/dt&gt;&lt;dd&gt;&lt;br /&gt;&lt;/dd&gt;&lt;dt&gt;&lt;i&gt;hProduct&lt;/i&gt; [out]                         Pointer to a variable that receives the product handle.&lt;/dt&gt;&lt;dd&gt;&lt;br /&gt;&lt;/dd&gt;&lt;/dl&gt; &lt;h4&gt;Return Value&lt;/h4&gt;  &lt;table class=&quot;clsStd&quot;&gt;&lt;tbody&gt;&lt;tr&gt; &lt;th&gt;Value&lt;/th&gt; &lt;th&gt;Meaning&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;ERROR_BAD_CONFIGURATION&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;The configuration information is corrupt.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;ERROR_INSTALL_FAILURE&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;The product could not be opened.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;ERROR_INSTALL_SOURCE_ABSENT&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;The source was unavailable.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;ERROR_INVALID_PARAMETER&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;An invalid parameter was passed to the function.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;ERROR_SUCCESS&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;The function completed successfully.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;ERROR_UNKNOWN_PRODUCT&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;The product code was unrecognized.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style=&quot;font-family:monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;MsiCloseHandle        &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Closes a database, view, or record handle.&lt;br /&gt;&lt;pre style=&quot;border-top: 1px solid rgb(170, 170, 170); border-bottom: 1px solid rgb(170, 170, 170);&quot;&gt;Declare Function MsiCloseHandle lib &quot;MSI&quot; (ByRef hAny As MSIHANDLE) As Long&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;dl&gt;&lt;dt&gt;&lt;i&gt;hAny&lt;/i&gt; [in]                                Specifies any open installation handle.&lt;/dt&gt;&lt;/dl&gt;&lt;span style=&quot;font-family:monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;h4&gt;Return Value&lt;/h4&gt;  &lt;table class=&quot;clsStd&quot;&gt;&lt;tbody&gt;&lt;tr&gt; &lt;th&gt;Value&lt;/th&gt; &lt;th&gt;Meaning&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;ERROR_INVALID_HANDLE&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;An invalid handle was passed to the function.&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;40%&quot;&gt; &lt;p&gt;ERROR_SUCCESS&lt;/p&gt; &lt;/td&gt; &lt;td width=&quot;60%&quot;&gt;&lt;p&gt;The function succeeded.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Related Studies:&lt;br /&gt;1.&lt;span style=&quot;font-size:85%;&quot;&gt; &lt;a href=&quot;http://alwaysharsha.googlepages.com/msi&quot;&gt;Managed Applications&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;2. &lt;a href=&quot;http://msiworld.blogspot.com/&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Microsoft Installer: MSI&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;3. &lt;a href=&quot;http://www.msiblogger.com/&quot;&gt;msiblogger&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotneinstall.blogspot.com/feeds/3154600262400285328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8734776583240915688/3154600262400285328' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/3154600262400285328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/3154600262400285328'/><link rel='alternate' type='text/html' href='http://dotneinstall.blogspot.com/2008/06/change-full-target-path-for-directory.html' title='Change the full path of the product installation'/><author><name>jivangoyal</name><uri>http://www.blogger.com/profile/12853371042810428434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8734776583240915688.post-1518876527630515844</id><published>2008-06-13T06:48:00.000-07:00</published><updated>2008-06-16T00:05:14.031-07:00</updated><title type='text'>MsiExec.exe Command-Line Parameters</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;Note: I&#39;ve searched the various links to get information at one place. I&#39;ve not checked the help for validation. So I&#39;m not responsible for any issue found related to the contents specified in the blog. Please use contents  at  own risk.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The table below provides a detailed description of MsiExec.exe command line parameters.&lt;/p&gt;   &lt;table class=&quot;propertytable&quot;&gt;  &lt;tbody&gt;&lt;tr&gt;   &lt;th&gt;Parameter&lt;/th&gt;   &lt;th&gt;Description&lt;/th&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;/i &lt;package&gt; or &lt;product&gt;&lt;/product&gt;&lt;/package&gt;&lt;/td&gt;   &lt;td&gt;Use this format to install the product Othello:&lt;br /&gt;&lt;br /&gt; &lt;tt&gt;msiexec /i &quot;&lt;span id=&quot;pMySetups&quot;&gt;C:\&lt;windowsfolder&gt;\Profiles\&lt;username&gt;\Personal\MySetups&lt;/username&gt;&lt;/windowsfolder&gt;&lt;/span&gt;\Othello\Trial Version\Release\DiskImages\Disk1\Othello Beta.msi&quot;&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt; Product Code refers to the GUID that is automatically generated in the Product Code property of your product&#39;s project view.&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;/f [p|o|e|d|c|a|u|m|s|v] &lt;package&gt; or &lt;product&gt;&lt;/product&gt;&lt;/package&gt;&lt;/td&gt;   &lt;td&gt;Installing with the /f option will repair or reinstall missing or corrupted files.&lt;br /&gt;&lt;br /&gt; For example, to force a reinstall of all files, use the following syntax:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;msiexec /fa &quot;&lt;span id=&quot;pMySetups&quot;&gt;C:\&lt;windowsfolder&gt;\Profiles\&lt;username&gt;\Personal\MySetups&lt;/username&gt;&lt;/windowsfolder&gt;&lt;/span&gt;\Othello\Trial Version\Release\DiskImages\Disk1\Othello Beta.msi&quot;&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt; in conjunction with the following flags:     &lt;ul&gt;&lt;li&gt;p reinstalls a file if it is missing&lt;/li&gt;&lt;li&gt;o reinstalls a file if it is missing or if an older version of the file is present on the user&#39;s system&lt;/li&gt;&lt;li&gt;e reinstalls a file if it is missing or if an equivalent or older version of the file is present on the user&#39;s system &lt;/li&gt;&lt;li&gt;c reinstalls a file if it is missing or if the stored checksum of the installed file does not match the new file&#39;s value&lt;/li&gt;&lt;li&gt;a forces a reinstall of all files&lt;/li&gt;&lt;li&gt;u or m rewrite all required user registry entries&lt;/li&gt;&lt;li&gt;s overwrites any existing shortcuts&lt;/li&gt;&lt;li&gt;v runs your application from the source and re-caches the local installation package&lt;/li&gt;&lt;/ul&gt;  &lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;/a &lt;package&gt;&lt;/package&gt;&lt;/td&gt;   &lt;td&gt;The &lt;tt&gt;/a&lt;/tt&gt; option allows users with administrator privileges to install a product onto the network.&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;/x &lt;package&gt; or &lt;product&gt;&lt;/product&gt;&lt;/package&gt;&lt;/td&gt;   &lt;td&gt;The /x option uninstalls a product.&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;/j [u|m] &lt;package&gt;&lt;br /&gt; /j [u|m] &lt;package&gt; /t &lt;transform&gt;&lt;br /&gt; /j [u|m] &lt;package&gt; /g&lt;br /&gt; /j &lt;language&gt;&lt;/language&gt;&lt;/package&gt;&lt;/transform&gt;&lt;/package&gt;&lt;/package&gt;&lt;/td&gt;   &lt;td&gt;Building with the /j &lt;package&gt; option advertises the components of your application on the end user&#39;s computer     &lt;/package&gt;&lt;ul&gt;&lt;li&gt;u advertises components only to the current user&lt;/li&gt;&lt;li&gt;m advertises components to all users of the computer&lt;/li&gt;&lt;li&gt;g specifies language ID &lt;/li&gt;&lt;li&gt;t applies a transform to your advertised product&lt;/li&gt;&lt;/ul&gt; Transforms allow the synchronization of applications across different languages. For example, if you upgrade the English version of your product, you could apply a transform to automatically upgrade the French version of your product.&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;&lt;a name=&quot;#logParam&quot;&gt;&lt;/a&gt;/L [i|w|e|a|r|u|c|m|p|v|+] &lt;log&gt;&lt;/log&gt;&lt;/td&gt;   &lt;td&gt;Building with the /L option specifies the path to the log file—these flags indicate which information to record in the log file:     &lt;ul&gt;&lt;li&gt;i logs status messages &lt;/li&gt;&lt;li&gt;w logs non-fatal warning messages &lt;/li&gt;&lt;li&gt;e logs any error messages &lt;/li&gt;&lt;li&gt;a logs the commencement of action sequences &lt;/li&gt;&lt;li&gt;r logs action-specific records &lt;/li&gt;&lt;li&gt;u logs user requests &lt;/li&gt;&lt;li&gt;c logs initial user interface parameters &lt;/li&gt;&lt;li&gt;m logs out-of-memory messages &lt;/li&gt;&lt;li&gt;p logs terminal settings &lt;/li&gt;&lt;li&gt;v logs the verbose output setting &lt;/li&gt;&lt;li&gt;+ appends to an existing file &lt;/li&gt;&lt;li&gt;* is a wildcard character that allows you to log all information (excluding the verbose output setting)&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;/p &lt;patch&gt;&lt;/patch&gt;&lt;/td&gt;   &lt;td&gt;Building with the &lt;tt&gt;/p&lt;/tt&gt; option applies a patch to an installed setup package. To patch an installed administrative image, combine this option with &lt;tt&gt;/a&lt;/tt&gt; as shown:&lt;br /&gt;&lt;br /&gt; &lt;tt&gt;/p &lt;patch&gt; /a &lt;package&gt;&lt;/package&gt;&lt;/patch&gt;&lt;/tt&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;/q [n|b|r|f]&lt;/td&gt;   &lt;td&gt;The /q option is used to set the user interface level in conjunction with the following flags:     &lt;ul&gt;&lt;li&gt;q or qn creates no user interface &lt;/li&gt;&lt;li&gt;qb creates a basic user interface&lt;/li&gt;&lt;/ul&gt;     The user interface settings below display a modal dialog box at the end of installation:     &lt;ul&gt;&lt;li&gt;qr displays a reduced user interface &lt;/li&gt;&lt;li&gt;qf displays a full user interface &lt;/li&gt;&lt;li&gt;qn+ displays no user interface &lt;/li&gt;&lt;li&gt;qb+ displays a basic user interface&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;/? or /h&lt;/td&gt;   &lt;td&gt;Either command displays Windows Installer copyright information&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;/y &lt;filename&gt;&lt;/filename&gt;&lt;/td&gt;   &lt;td&gt;This command calls the DllRegisterServer entry-point function of the DLL or OCX file specified in &lt;filename&gt;.&lt;/filename&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;/z &lt;filename&gt;&lt;/filename&gt;&lt;/td&gt;   &lt;td&gt;This command calls the DllUnregisterServer entry-point function of the DLL or OCX file specified in &lt;filename&gt;.&lt;/filename&gt;&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;TRANSFORMS&lt;/td&gt;   &lt;td&gt;Use the TRANSFORMS command line parameter to specify any transforms that you would like applied to your base package. Your transform command line call might look something like this:&lt;br /&gt;&lt;br /&gt; &lt;tt&gt;msiexec /i &quot;&lt;span id=&quot;pMySetups&quot;&gt;C:\&lt;windowsfolder&gt;\Profiles\&lt;username&gt;\Personal\MySetups&lt;/username&gt;&lt;/windowsfolder&gt;&lt;/span&gt;\Your Project Name\Trial Version\My Release-1\DiskImages\Disk1\ProductName.msi&quot; TRANSFORMS=&quot;New Transform 1.mst&quot;&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;You can separate multiple transforms with a semicolon. Because of this, it is recommended that you do not use semicolons in the name of your transform, as the Windows Installer service will interpret those incorrectly.&lt;/td&gt;  &lt;/tr&gt;  &lt;tr&gt;   &lt;td class=&quot;firstcolumn&quot;&gt;Properties&lt;/td&gt;   &lt;td&gt;All public properties can be set or modified from the command line. Public properties are distinguished from private properties by the fact that they are in all capital letters. For example, &lt;span class=&quot;property&quot;&gt;COMPANYNAME&lt;/span&gt; is a public property.&lt;br /&gt;&lt;br /&gt; To set a property from the command line, use the following syntax: &lt;em&gt;PROPERTY=VALUE&lt;/em&gt;. If you wanted to change the value of &lt;span class=&quot;property&quot;&gt;COMPANYNAME&lt;/span&gt;, you would enter:&lt;br /&gt;&lt;br /&gt; &lt;tt&gt;msiexec /i &quot;&lt;span id=&quot;pMySetups&quot;&gt;C:\&lt;windowsfolder&gt;\Profiles\&lt;username&gt;\Personal\MySetups&lt;/username&gt;&lt;/windowsfolder&gt;&lt;/span&gt;\Your Project Name\Trial Version\My Release-1\DiskImages\Disk1\ProductName.msi&quot; COMPANYNAME=&quot;InstallShield&quot;&lt;/tt&gt; &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;   &lt;p class=&quot;seealso&quot;&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotneinstall.blogspot.com/feeds/1518876527630515844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8734776583240915688/1518876527630515844' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/1518876527630515844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/1518876527630515844'/><link rel='alternate' type='text/html' href='http://dotneinstall.blogspot.com/2008/06/msiexecexe-command-line-parameters.html' title='MsiExec.exe Command-Line Parameters'/><author><name>jivangoyal</name><uri>http://www.blogger.com/profile/12853371042810428434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8734776583240915688.post-8234426717613689563</id><published>2008-06-13T02:57:00.000-07:00</published><updated>2008-06-16T00:05:17.599-07:00</updated><title type='text'>Windows Installer API Functions</title><content type='html'>&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;Note: I&#39;ve searched the various links to get information at one place. I&#39;ve not checked the help for validation. So I&#39;m not responsible for any issue found related to the contents specified in the blog. Please use contents  at  own risk.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Most Windows Installer API functions take a handle to the currently running database as an argument. For an InstallScript custom action, the database handle is the HWND argument passed to the custom action. In an event-handler function, you can use the global variable &lt;span class=&quot;functionname&quot;&gt;ISMSI_HANDLE&lt;/span&gt;, which stores the handle to the running .msi database.&lt;br /&gt;&lt;br /&gt;&lt;table style=&quot;width: 2280px; height: 2778px;&quot; class=&quot;propertytable&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;table class=&quot;propertytable&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiApplyPatch.asp&quot;&gt;MsiApplyPatch&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetLanguage.asp&quot;&gt;MsiGetLanguage&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiRecordSetInteger.asp&quot;&gt;MsiRecordSetInteger&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiCloseHandle.asp&quot;&gt;MsiCloseHandle&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetLastErrorRecord.asp&quot;&gt;MsiGetLastErrorRecord&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiRecordSetStream.asp&quot;&gt;MsiRecordSetStream&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/MsiCreateTransformSummaryInfo.asp&quot;&gt;MsiCreateTransformSummaryInfo&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetMode.asp&quot;&gt;MsiGetMode&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiRecordSetString.asp&quot;&gt;MsiRecordSetString&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiDatabaseApplyTransform.asp&quot;&gt;MsiDatabaseApplyTransform&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetProperty.asp&quot;&gt;MsiGetProperty&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiSequence.asp&quot;&gt;MsiSequence&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiDatabaseExport.asp&quot;&gt;MsiDatabaseExport&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetSourcePath.asp&quot;&gt;MsiGetSourcePath&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiSetComponentState.asp&quot;&gt;MsiSetComponentState&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiDatabaseGenerateTransform.asp&quot;&gt;MsiDatabaseGenerateTransform&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetSummaryInformation.asp&quot;&gt;MsiGetSummaryInformation&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiSetFeatureAttributes.asp&quot;&gt;MsiSetFeatureAttributes&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiDatabaseGetPrimaryKeys.asp&quot;&gt;MsiDatabaseGetPrimaryKeys&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetTargetPath.asp&quot;&gt;MsiGetTargetPath&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiSetFeatureState.asp&quot;&gt;MsiSetFeatureState&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiDatabaseImport.asp&quot;&gt;MsiDatabaseImport&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiInstallProduct.asp&quot;&gt;MsiInstallProduct&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiSetInstallLevel.asp&quot;&gt;MsiSetInstallLevel&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiDatabaseIsTablePersistent.asp&quot;&gt;MsiDatabaseIsTablePersistent&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiOpenDatabase.asp&quot;&gt;MsiOpenDatabase&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiSetMode.asp&quot;&gt;MsiSetMode&lt;/a&gt;&lt;/td&gt;      &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiDatabaseMerge.asp&quot;&gt;MsiDatabaseMerge&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiOpenPackage.asp&quot;&gt;MsiOpenPackage&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiSetProperty.asp&quot;&gt;MsiSetProperty&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiDatabaseOpenView.asp&quot;&gt;MsiDatabaseOpenView&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiPreviewBillboard.asp&quot;&gt;MsiPreviewBillboard&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiSetTargetPath.asp&quot;&gt;MsiSetTargetPath&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiDoAction.asp&quot;&gt;MsiDoAction&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiPreviewDialog.asp&quot;&gt;MsiPreviewDialog&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiSummaryInfoGetProperty.asp&quot;&gt;MsiSummaryInfoGetProperty&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;       &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiEnumComponentCosts.asp&quot;&gt;MsiEnumComponentCosts&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiProcessMessage.asp&quot;&gt;MsiProcessMessage&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiSummaryInfoSetProperty.asp&quot;&gt;MsiSummaryInfoSetProperty&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;       &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiEvaluateCondition.asp&quot;&gt;MsiEvaluateCondition&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiRecordClearData.asp&quot;&gt;MsiRecordClearData&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiVerifyDiskSpace.asp&quot;&gt;MsiVerifyDiskSpace&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiFormatRecord.asp&quot;&gt;MsiFormatRecord&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiRecordDataSize.asp&quot;&gt;MsiRecordDataSize&lt;/a&gt;&lt;/td&gt;       &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiViewClose.asp&quot;&gt;MsiViewClose&lt;/a&gt;&lt;/td&gt;      &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetActiveDatabase.asp&quot;&gt;MsiGetActiveDatabase&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiRecordGetFieldCount.asp&quot;&gt;MsiRecordGetFieldCount&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiViewExecute.asp&quot;&gt;MsiViewExecute&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetComponentState.asp&quot;&gt;MsiGetComponentState&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiRecordGetInteger.asp&quot;&gt;MsiRecordGetInteger&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiViewFetch.asp&quot;&gt;MsiViewFetch&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetFeatureCost.asp&quot;&gt;MsiGetFeatureCost&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiRecordGetString.asp&quot;&gt;MsiRecordGetString&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiViewGetColumnInfo.asp&quot;&gt;MsiViewGetColumnInfo&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetFeatureState.asp&quot;&gt;MsiGetFeatureState&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiRecordIsNull.asp&quot;&gt;MsiRecordIsNull&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiViewGetError.asp&quot;&gt;MsiViewGetError&lt;/a&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiGetFeatureValidStates.asp&quot;&gt;MsiGetFeatureValidStates&lt;/a&gt;&lt;/td&gt;    &lt;td&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/MsiRecordReadStream.asp&quot;&gt;MsiRecordReadStream&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Declaration about the functions is :&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;border-top: 1px solid rgb(170, 170, 170); border-bottom: 1px solid rgb(170, 170, 170);&quot;&gt;Declare Function MsiApplyPatch lib &quot;MSI&quot; (ByVal szPatchPackage As String, ByVal szInstallPackage As String, ByVal eInstallType As Struct_MembersOf_INSTALLTYPE, ByVal szCommandLine As String) As Long&lt;br /&gt;Declare Function MsiCloseAllHandles lib &quot;MSI&quot; () As Long&lt;br /&gt;Declare Function MsiCloseHandle lib &quot;MSI&quot; (ByRef hAny As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiCollectUserInfo lib &quot;MSI&quot; (ByVal szProduct As String) As Long&lt;br /&gt;Declare Function MsiConfigureFeature lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szFeature As String, ByVal eInstallState As Struct_MembersOf_INSTALLSTATE) As Long&lt;br /&gt;Declare Function MsiConfigureProduct lib &quot;MSI&quot; (ByVal szProduct As String, ByVal iInstallLevel As Long, ByVal eInstallState As Struct_MembersOf_INSTALLSTATE) As Long&lt;br /&gt;Declare Function MsiConfigureProductEx lib &quot;MSI&quot; (ByVal szProduct As String, ByVal iInstallLevel As Long, ByVal eInstallState As Struct_MembersOf_INSTALLSTATE, ByVal szCommandLine As String) As Long&lt;br /&gt;Declare Sub MsiCreateRecord lib &quot;MSI&quot; (ByVal cParams As Long)&lt;br /&gt;Declare Function MsiCreateTransformSummaryInfo lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE, ByRef hDatabaseReference As MSIHANDLE, ByVal szTransformFile As String, ByVal iErrorConditions As Long, ByVal iValidation As Long) As Long&lt;br /&gt;Declare Function MsiDatabaseApplyTransform lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE, ByVal szTransformFile As String, ByVal iErrorConditions As Long) As Long&lt;br /&gt;Declare Function MsiDatabaseCommit lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiDatabaseExport lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE, ByVal szTableName As String, ByVal szFolderPath As String, ByVal szFileName As String) As Long&lt;br /&gt;Declare Function MsiDatabaseGenerateTransform lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE, ByRef hDatabaseReference As MSIHANDLE, ByVal szTransformFile As String, ByVal iReserved1 As Long, ByVal iReserved2 As Long) As Long&lt;br /&gt;Declare Function MsiDatabaseGetPrimaryKeys lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE, ByVal szTableName As String, ByRef phRecord As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiDatabaseImport lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE, ByVal szFolderPath As String, ByVal szFileName As String) As Long&lt;br /&gt;Declare Function MsiDatabaseIsTablePersistent lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE, ByVal szTableName As String) As MSICONDITION&lt;br /&gt;Declare Function MsiDatabaseMerge lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE, ByRef hDatabaseMerge As MSIHANDLE, ByVal szTableName As String) As Long&lt;br /&gt;Declare Function MsiDatabaseOpenView lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE, ByVal szQuery As String, ByRef phView As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiDoAction lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szAction As String) As Long&lt;br /&gt;Declare Function MsiEnableLog lib &quot;MSI&quot; (ByVal dwLogMode As Long, ByVal szLogFile As String, ByVal dwLogAttributes As Long) As Long&lt;br /&gt;Declare Function MsiEnableUIPreview lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE, ByRef phPreview As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiEnumClients lib &quot;MSI&quot; (ByVal szComponent As String, ByVal iProductIndex As Long, ByVal lpProductBuf As String) As Long&lt;br /&gt;Declare Function MsiEnumComponentQualifiers lib &quot;MSI&quot; (ByVal szComponent As String, ByVal iIndex As Long, ByVal lpQualifierBuf As String, ByRef pcchQualifierBuf As Long, ByVal lpApplicationDataBuf As String, ByRef pcchApplicationDataBuf As Long) As Long&lt;br /&gt;Declare Function MsiEnumComponents lib &quot;MSI&quot; (ByVal iComponentIndex As Long, ByVal lpComponentBuf As String) As Long&lt;br /&gt;Declare Function MsiEnumFeatures lib &quot;MSI&quot; (ByVal szProduct As String, ByVal iFeatureIndex As Long, ByVal lpFeatureBuf As String, ByVal lpParentBuf As String) As Long&lt;br /&gt;Declare Function MsiEnumPatches lib &quot;MSI&quot; (ByVal szProduct As String, ByVal iPatchIndex As Long, ByVal lpPatchBuf As String, ByVal lpTransformsBuf As String, ByRef pcchTransformsBuf As Long) As Long&lt;br /&gt;Declare Function MsiEnumProducts lib &quot;MSI&quot; (ByVal iProductIndex As Long, ByVal lpProductBuf As String) As Long&lt;br /&gt;Declare Function MsiEnumRelatedProducts lib &quot;MSI&quot; (ByVal lpUpgradeCode As String, ByVal dwReserved As Long, ByVal iProductIndex As Long, ByVal lpProductBuf As String) As Long&lt;br /&gt;Declare Function MsiEvaluateCondition lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szCondition As String) As MSICONDITION&lt;br /&gt;Declare Function MsiFormatRecord lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByRef hRecord As MSIHANDLE, ByVal szResultBuf As String, ByRef pcchResultBuf As Long) As Long&lt;br /&gt;Declare Sub MsiGetActiveDatabase lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE)&lt;br /&gt;Declare Function MsiGetComponentPath lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szComponent As String, ByVal lpPathBuf As String, ByRef pcchBuf As Long) As INSTALLSTATE&lt;br /&gt;Declare Function MsiGetComponentState lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szComponent As String, ByRef piInstalled As INSTALLSTATE, ByRef piAction As INSTALLSTATE) As Long&lt;br /&gt;Declare Function MsiGetDatabaseState lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE) As MSIDBSTATE&lt;br /&gt;Declare Function MsiGetFeatureCost lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szFeature As String, ByVal iCostTree As Struct_MembersOf_MSICOSTTREE, ByRef iState As INSTALLSTATE, ByRef piCost As Long) As Long&lt;br /&gt;Declare Function MsiGetFeatureInfo lib &quot;MSI&quot; (ByRef hProduct As MSIHANDLE, ByVal szFeature As String, ByRef lpAttributes As Long, ByVal lpTitleBuf As String, ByRef pcchTitleBuf As Long, ByVal lpHelpBuf As String, ByRef pcchHelpBuf As Long) As Long&lt;br /&gt;Declare Function MsiGetFeatureState lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szFeature As String, ByRef piInstalled As INSTALLSTATE, ByRef piAction As INSTALLSTATE) As Long&lt;br /&gt;Declare Function MsiGetFeatureUsage lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szFeature As String, ByRef pdwUseCount As Long, ByRef pwDateUsed As Integer) As Long&lt;br /&gt;Declare Function MsiGetFeatureValidStates lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szFeature As String, ByRef dwInstallStates As Long) As Long&lt;br /&gt;Declare Function MsiGetFileVersion lib &quot;MSI&quot; (ByVal szFilePath As String, ByVal lpVersionBuf As String, ByRef pcchVersionBuf As Long, ByVal lpLangBuf As String, ByRef pcchLangBuf As Long) As Long&lt;br /&gt;Declare Function MsiGetLanguage lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiGetMode lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal eRunMode As Struct_MembersOf_MSIRUNMODE) As Long&lt;br /&gt;Declare Function MsiGetPatchInfo lib &quot;MSI&quot; (ByVal szPatch As String, ByVal szAttribute As String, ByVal lpValueBuf As String, ByRef pcchValueBuf As Long) As Long&lt;br /&gt;Declare Function MsiGetProductCode lib &quot;MSI&quot; (ByVal szComponent As String, ByVal lpBuf39 As String) As Long&lt;br /&gt;Declare Function MsiGetProductInfo lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szAttribute As String, ByVal lpValueBuf As String, ByRef pcchValueBuf As Long) As Long&lt;br /&gt;Declare Function MsiGetProductProperty lib &quot;MSI&quot; (ByRef hProduct As MSIHANDLE, ByVal szProperty As String, ByVal lpValueBuf As String, ByRef pcchValueBuf As Long) As Long&lt;br /&gt;Declare Function MsiGetProperty lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szName As String, ByVal szValueBuf As String, ByRef pcchValueBuf As Long) As Long&lt;br /&gt;Declare Function MsiGetShortcutTarget lib &quot;MSI&quot; (ByVal szShortcutPath As String, ByVal szProductCode As String, ByVal szFeatureId As String, ByVal szComponentCode As String) As Long&lt;br /&gt;Declare Function MsiGetSourcePath lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szFolder As String, ByVal szPathBuf As String, ByRef pcchPathBuf As Long) As Long&lt;br /&gt;Declare Function MsiGetSummaryInformation lib &quot;MSI&quot; (ByRef hDatabase As MSIHANDLE, ByVal szDatabasePath As String, ByVal uiUpdateCount As Long, ByRef phSummaryInfo As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiGetTargetPath lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szFolder As String, ByVal szPathBuf As String, ByRef pcchPathBuf As Long) As Long&lt;br /&gt;Declare Function MsiGetUserInfo lib &quot;MSI&quot; (ByVal szProduct As String, ByVal lpUserNameBuf As String, ByRef pcchUserNameBuf As Long, ByVal lpOrgNameBuf As String, ByRef pcchOrgNameBuf As Long, ByVal lpSerialBuf As String, ByRef pcchSerialBuf As Long) As USERINFOSTATE&lt;br /&gt;Declare Function MsiInstallMissingComponent lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szComponent As String, ByVal eInstallState As Struct_MembersOf_INSTALLSTATE) As Long&lt;br /&gt;Declare Function MsiInstallMissingFile lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szFile As String) As Long&lt;br /&gt;Declare Function MsiInstallProduct lib &quot;MSI&quot; (ByVal szPackagePath As String, ByVal szCommandLine As String) As Long&lt;br /&gt;Declare Function MsiLocateComponent lib &quot;MSI&quot; (ByVal szComponent As String, ByVal lpPathBuf As String, ByRef pcchBuf As Long) As INSTALLSTATE&lt;br /&gt;Declare Function MsiOpenDatabase lib &quot;MSI&quot; (ByVal szDatabasePath As String, ByVal szPersist As String, ByRef phDatabase As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiOpenPackage lib &quot;MSI&quot; (ByVal szPackagePath As String, ByRef hProduct As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiOpenProduct lib &quot;MSI&quot; (ByVal szProduct As String, ByRef hProduct As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiPreviewBillboard lib &quot;MSI&quot; (ByRef hPreview As MSIHANDLE, ByVal szControlName As String, ByVal szBillboard As String) As Long&lt;br /&gt;Declare Function MsiPreviewDialog lib &quot;MSI&quot; (ByRef hPreview As MSIHANDLE, ByVal szDialogName As String) As Long&lt;br /&gt;Declare Function MsiProcessMessage lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByRef eMessageType As INSTALLMESSAGE, ByRef hRecord As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiProvideComponent lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szFeature As String, ByVal szComponent As String, ByVal dwInstallMode As Long, ByVal lpPathBuf As String, ByRef pcchPathBuf As Long) As Long&lt;br /&gt;Declare Function MsiProvideQualifiedComponent lib &quot;MSI&quot; (ByVal szCategory As String, ByVal szQualifier As String, ByVal dwInstallMode As Long, ByVal lpPathBuf As String, ByRef pcchPathBuf As Long) As Long&lt;br /&gt;Declare Function MsiProvideQualifiedComponentEx lib &quot;MSI&quot; (ByVal szCategory As String, ByVal szQualifier As String, ByVal dwInstallMode As Long, ByVal szProduct As String, ByVal dwUnused1 As Long, ByVal dwUnused2 As Long, ByVal lpPathBuf As String, ByRef pcchPathBuf As Long) As Long&lt;br /&gt;Declare Function MsiQueryFeatureState lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szFeature As String) As INSTALLSTATE&lt;br /&gt;Declare Function MsiQueryProductState lib &quot;MSI&quot; (ByVal szProduct As String) As INSTALLSTATE&lt;br /&gt;Declare Function MsiRecordClearData lib &quot;MSI&quot; (ByRef hRecord As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiRecordDataSize lib &quot;MSI&quot; (ByRef hRecord As MSIHANDLE, ByVal iField As Long) As Long&lt;br /&gt;Declare Function MsiRecordGetFieldCount lib &quot;MSI&quot; (ByRef hRecord As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiRecordGetInteger lib &quot;MSI&quot; (ByRef hRecord As MSIHANDLE, ByVal iField As Long) As Long&lt;br /&gt;Declare Function MsiRecordGetString lib &quot;MSI&quot; (ByRef hRecord As MSIHANDLE, ByVal iField As Long, ByVal szValueBuf As String, ByRef pcchValueBuf As Long) As Long&lt;br /&gt;Declare Function MsiRecordIsNull lib &quot;MSI&quot; (ByRef hRecord As MSIHANDLE, ByVal iField As Long) As Long&lt;br /&gt;Declare Function MsiRecordReadStream lib &quot;MSI&quot; (ByRef hRecord As MSIHANDLE, ByVal iField As Long, ByVal szDataBuf As String, ByRef pcbDataBuf As Long) As Long&lt;br /&gt;Declare Function MsiRecordSetInteger lib &quot;MSI&quot; (ByRef hRecord As MSIHANDLE, ByVal iField As Long, ByVal iValue As Long) As Long&lt;br /&gt;Declare Function MsiRecordSetStream lib &quot;MSI&quot; (ByRef hRecord As MSIHANDLE, ByVal iField As Long, ByVal szFilePath As String) As Long&lt;br /&gt;Declare Function MsiRecordSetString lib &quot;MSI&quot; (ByRef hRecord As MSIHANDLE, ByVal iField As Long, ByVal szValue As String) As Long&lt;br /&gt;Declare Function MsiReinstallFeature lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szFeature As String, ByVal dwReinstallMode As Long) As Long&lt;br /&gt;Declare Function MsiReinstallProduct lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szReinstallMode As Long) As Long&lt;br /&gt;Declare Function MsiSequence lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szTable As String, ByVal iSequenceMode As Long) As Long&lt;br /&gt;Declare Function MsiSetComponentState lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szComponent As String, ByRef iState As INSTALLSTATE) As Long&lt;br /&gt;Declare Sub MsiSetExternalUI lib &quot;MSI&quot; (ByRef puiHandler As INSTALLUI_HANDLERA, ByVal dwMessageFilter As Long, pvContext As Any)&lt;br /&gt;Declare Function MsiSetFeatureAttributes lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szFeature As String, ByVal dwAttributes As Long) As Long&lt;br /&gt;Declare Function MsiSetFeatureState lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szFeature As String, ByRef iState As INSTALLSTATE) As Long&lt;br /&gt;Declare Function MsiSetInstallLevel lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal iInstallLevel As Long) As Long&lt;br /&gt;Declare Function MsiSetInternalUI lib &quot;MSI&quot; (ByVal dwUILevel As Struct_MembersOf_INSTALLUILEVEL, ByRef phWnd As Long) As INSTALLUILEVEL&lt;br /&gt;Declare Function MsiSetMode lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal eRunMode As Struct_MembersOf_MSIRUNMODE, ByVal fState As Long) As Long&lt;br /&gt;Declare Function MsiSetTargetPath lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE, ByVal szFolder As String, ByVal szFolderPath As String) As Long&lt;br /&gt;Declare Function MsiSourceListAddSource lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szUserName As String, ByVal dwReserved As Long, ByVal szSource As String) As Long&lt;br /&gt;Declare Function MsiSourceListClearAll lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szUserName As String, ByVal dwReserved As Long) As Long&lt;br /&gt;Declare Function MsiSourceListForceResolution lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szUserName As String, ByVal dwReserved As Long) As Long&lt;br /&gt;Declare Function MsiSummaryInfoGetProperty lib &quot;MSI&quot; (ByRef hSummaryInfo As MSIHANDLE, ByVal uiProperty As Long, ByRef puiDataType As Long, ByRef piValue As Long, ByRef pftValue As FILETIME, ByVal szValueBuf As String, ByRef pcchValueBuf As Long) As Long&lt;br /&gt;Declare Function MsiSummaryInfoGetPropertyCount lib &quot;MSI&quot; (ByRef hSummaryInfo As MSIHANDLE, ByRef puiPropertyCount As Long) As Long&lt;br /&gt;Declare Function MsiSummaryInfoPersist lib &quot;MSI&quot; (ByRef hSummaryInfo As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiSummaryInfoSetProperty lib &quot;MSI&quot; (ByRef hSummaryInfo As MSIHANDLE, ByVal uiProperty As Long, ByVal uiDataType As Long, ByVal iValue As Long, ByRef pftValue As FILETIME, ByVal szValue As String) As Long&lt;br /&gt;Declare Function MsiUseFeature lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szFeature As String) As INSTALLSTATE&lt;br /&gt;Declare Function MsiUseFeatureEx lib &quot;MSI&quot; (ByVal szProduct As String, ByVal szFeature As String, ByVal dwInstallMode As Long, ByVal dwReserved As Long) As INSTALLSTATE&lt;br /&gt;Declare Function MsiVerifyDiskSpace lib &quot;MSI&quot; (ByRef hInstall As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiVerifyPackage lib &quot;MSI&quot; (ByVal szPackagePath As String) As Long&lt;br /&gt;Declare Function MsiViewClose lib &quot;MSI&quot; (ByRef hView As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiViewExecute lib &quot;MSI&quot; (ByRef hView As MSIHANDLE, ByRef hRecord As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiViewFetch lib &quot;MSI&quot; (ByRef hView As MSIHANDLE, ByRef phRecord As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiViewGetColumnInfo lib &quot;MSI&quot; (ByRef hView As MSIHANDLE, ByVal eColumnInfo As Struct_MembersOf_MSICOLINFO, ByRef phRecord As MSIHANDLE) As Long&lt;br /&gt;Declare Function MsiViewGetError lib &quot;MSI&quot; (ByRef hView As MSIHANDLE, ByVal szColumnNameBuffer As String, ByRef pcchBuf As Long) As MSIDBERROR&lt;br /&gt;Declare Function MsiViewModify lib &quot;MSI&quot; (ByRef hView As MSIHANDLE, ByVal eModifyMode As Struct_MembersOf_MSIMODIFY, ByRef hRecord As MSIHANDLE) As Long&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;h2&gt;Windows Installer API Functions by Category&lt;/h2&gt;  &lt;p&gt;To quickly navigate to a function category, click on one of the options below.&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;MSI Property and Mode Functions [MsiSetProperty,MsiGetProductInfo,MsiGetProperty,MsiGetLanguage,MsiGetMode]&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Feature and Component Functions [MsiGetFeatureState,MsiSetFeatureState,MsiSetFeatureAttributes,MsiGetFeatureValidStates,&lt;/li&gt;&lt;ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;MsiGetComponentState,MsiSetComponentState,MsiGetFeatureCost,MsiSetInstallLevel]&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;Directory Functions [MsiGetSourcePath,MsiGetTargetPath,MsiSetTargetPath,MsiVerifyDiskSpace]&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Database Functions [MsiEvaluateCondition,MsiGetActiveDatabase,MsiDatabaseApplyTransform,MsiDatabaseExport,&lt;/li&gt;&lt;ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt; MsiDatabaseGenerateTransform,MsiDatabaseGetPrimaryKeys,MsiDatabaseImport,&lt;/li&gt;&lt;li&gt;MsiDatabaseIsTablePersistent,MsiDatabaseMerge,MsiDatabaseOpenView,MsiFormatRecord,&lt;/li&gt;&lt;li&gt;MsiViewModify,MsiOpenDatabase,MsiViewClose,MsiViewExecute,MsiViewFetch,MsiRecordGetString,&lt;/li&gt;&lt;li&gt;MsiRecordSetString,MsiRecordReadStream,MsiRecordSetStream,MsiRecordGetInteger,MsiRecordSetInteger,MsiViewGetColumnInfo,&lt;/li&gt;&lt;li&gt;MsiRecordGetFieldCount,MsiCloseHandle,MsiCloseAllHandles,MsiViewGetError]&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;Summary Information Stream Management Functions [MsiGetSummaryInformation,MsiSummaryInfoGetProperty,MsiSummaryInfoSetProperty]&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Miscellaneous Functions [MsiApplyPatch,MsiCreateRecord,MsiDoAction,MsiEvaluateCondition,MsiInstallProduct,MsiOpenPackage,MsiPreviewBillboard,&lt;/li&gt;&lt;ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;MsiPreviewDialog,MsiProcessMessage,MsiSequence]&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;font-weight: bold;&quot;&gt;MSI Property and Mode Functions&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;MsiSetProperty                Sets the value of a Windows Installer property. Creates the property if it does not exist. (For an example, see Get or Set a Property.)&lt;br /&gt;MsiGetProductInfo     Returns product information for published and installed products.&lt;br /&gt;MsiGetProperty        Gets the value of a Windows Installer property. Returns a null string (&quot;&quot;) if the property does not exist.&lt;br /&gt;MsiGetLanguage     Returns the numeric language ID for the running installation.&lt;br /&gt;MsiGetMode        Returns an internal boolean Installer state.&lt;br /&gt;MsiSetMode        Sets an internal boolean Installer state.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Feature and Component Functions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;MsiGetFeatureState    Gets the installation state and action state of a feature.&lt;br /&gt;MsiSetFeatureState    Sets the installation state of a feature.&lt;br /&gt;MsiSetFeatureAttributes:Sets the attributes for a feature.&lt;br /&gt;MsiGetFeatureValidStates:Returns a set of bit flags representing the valid installation states of a feature.&lt;br /&gt;MsiGetComponentState     Gets the installation state and action state of a component.&lt;br /&gt;MsiSetComponentState    Sets the installation state of a component.&lt;br /&gt;MsiGetFeatureCost    Returns the disk cost of a feature (in units of 512 bytes), and optionally its parent and child features.&lt;br /&gt;MsiSetInstallLevel    Sets the install level for the entire product.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Directory Functions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;MsiGetSourcePath    Returns the full source path for a directory listed in the Directory table. (The Directory table is exposed in the Direct Editor.)&lt;br /&gt;MsiGetTargetPath    Returns the full target path for a directory listed in the Directory table.&lt;br /&gt;MsiSetTargetPath    Sets the full target path for a directory listed in the Directory table.&lt;br /&gt;MsiVerifyDiskSpace    Verifies if sufficient disk space exists for the current installation.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Database Functions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;With the exception of MsiGetActiveDatabase, the first HWND argument in most of these functions is a handle to a specific database view or record.&lt;br /&gt;&lt;br /&gt;MsiEvaluateCondition    Evaluates a conditional expression that contains property names and values.&lt;br /&gt;MsiGetActiveDatabase    Obtains a handle to the running .msi database, which you can use to open database views.&lt;br /&gt;MsiDatabaseApplyTransform: Applies a transform to a database. A transform is a way of recording changes to a database without altering the original database.&lt;br /&gt;MsiDatabaseExport    Exports an installer table from an open database to a text archive file.&lt;br /&gt;&lt;br /&gt;MsiDatabaseGenerateTransform    Generates a transform file of differences between two databases. A transform is a way of recording changes to a database without altering the original database.&lt;br /&gt;&lt;br /&gt;MsiDatabaseGetPrimaryKeys    Returns a record containing the names of all the primary key columns for a specified table. This function returns a handle that should be closed using MsiCloseHandle.&lt;br /&gt;&lt;br /&gt;MsiDatabaseImport    Imports an installer text archive table into an open database.&lt;br /&gt;MsiDatabaseIsTablePersistent    Returns an enumeration describing the state of a particular table.&lt;br /&gt;MsiDatabaseMerge    Merges two databases together, allowing duplicate rows.&lt;br /&gt;MsiDatabaseOpenView    Prepares a database query, creating a view object.&lt;br /&gt;MsiFormatRecord    Formats record field data and properties using a format string.&lt;br /&gt;MsiViewModify        Modifies a database record. For a running installation, only temporary database changes are allowed.&lt;br /&gt;MsiOpenDatabase    Opens a database file for data access. This function returns a handle that should be closed using MsiCloseHandle.&lt;br /&gt;MsiViewClose        Closes an executed database view.&lt;br /&gt;MsiViewExecute    Executes a SQL query.&lt;br /&gt;MsiViewFetch        Fetches a record for the current database view.&lt;br /&gt;MsiRecordGetString    Returns the string stored in a specific field of the specified record.&lt;br /&gt;MsiRecordSetString    Sets the string stored in a specific field of the specified record.&lt;br /&gt;MsiRecordReadStream    Returns the string value of a record field.&lt;br /&gt;MsiRecordSetStream    Sets a record stream field from a file. Stream data cannot be inserted into temporary fields.&lt;br /&gt;MsiRecordGetInteger    Returns the integer stored in a specific field of the specified record.&lt;br /&gt;MsiRecordSetInteger    Sets the integer stored in a specific field of the specified record.&lt;br /&gt;MsiViewGetColumnInfo    Returns a record containing database column names or definitions.&lt;br /&gt;MsiRecordGetFieldCount:Returns the number of fields (columns) in a record.&lt;br /&gt;MsiCloseHandle        Closes a database, view, or record handle.&lt;br /&gt;MsiCloseAllHandles    Closes all open handles. Provided for diagnostic purposes, and should not be called for general cleanup.&lt;br /&gt;MsiViewGetError    Returns an error code for an error generated by MsiViewModify.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary Information Stream Management Functions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;MsiGetSummaryInformation    obtains a handle to summary information data for an installer database. This function returns a handle that should be closed using MsiCloseHandle.&lt;br /&gt;&lt;br /&gt;MsiSummaryInfoGetProperty    Gets a single property from the summary information.&lt;br /&gt;MsiSummaryInfoSetProperty    Sets a single summary information property.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Miscellaneous Functions&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;MsiApplyPatch        For each product listed by the patch package as eligible to receive the patch, the MsiApplyPatch function invokes an installation and sets the PATCH property to the path of the patch package.&lt;br /&gt;&lt;br /&gt;MsiCreateRecord    Creates a new record object with the specified number of fields. This function returns a handle that should be closed using MsiCloseHandle.&lt;br /&gt;MsiDoAction        Executes a built-in action, custom action, or user-interface wizard action.&lt;br /&gt;MsiEvaluateCondition    Evaluates a conditional expression containing property names and values.&lt;br /&gt;MsiInstallProduct    Installs or uninstalls a product.&lt;br /&gt;MsiOpenPackage    Opens a package for use with the functions that access the product database. The MsiCloseHandle function must be called with the handle when the handle is no longer needed.&lt;br /&gt;&lt;br /&gt;MsiPreviewBillboard    Displays a billboard within a host control in the displayed dialog. Supplying a null billboard name removes any billboard displayed.&lt;br /&gt;MsiPreviewDialog    Displays a dialog box as modeless and inactive.&lt;br /&gt;MsiProcessMessage    Sends an error record to the installer for processing.&lt;br /&gt;MsiSequence        Executes another action sequence, as described in the specified table.&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Related Raadings:&lt;br /&gt;1. &lt;a href=&quot;http://msdn.microsoft.com/hi-in/library/aa372834%28en-us%29.aspx&quot;&gt;Windows Installer Development Tools&lt;/a&gt;&lt;br /&gt;2. &lt;a href=&quot;http://blogs.msdn.com/astebner/archive/2008/06/08/8583150.aspx&quot;&gt;A couple of notes about the contents of the Windows Installer 4.5 SDK&lt;/a&gt;&lt;br /&gt;3. &lt;a href=&quot;http://www.installsite.org/pages/en/msi/tips.htm&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Windows Installer Tools &amp;amp; Tips&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;4. &lt;a href=&quot;http://www.codeproject.com/KB/cs/msiinterop.aspx&quot;&gt;Wrapping the Windows Installer 2.0 API&lt;/a&gt;&lt;br /&gt;5. &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa369425%28VS.85%29.aspx&quot;&gt;Installer Functions&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotneinstall.blogspot.com/feeds/8234426717613689563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8734776583240915688/8234426717613689563' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/8234426717613689563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/8234426717613689563'/><link rel='alternate' type='text/html' href='http://dotneinstall.blogspot.com/2008/06/windows-installer-api-functions.html' title='Windows Installer API Functions'/><author><name>jivangoyal</name><uri>http://www.blogger.com/profile/12853371042810428434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8734776583240915688.post-1332158803174978603</id><published>2008-06-13T02:44:00.000-07:00</published><updated>2010-09-20T01:30:32.349-07:00</updated><title type='text'>Install/Uninstall Customization [from other link]</title><content type='html'>&lt;h1&gt;How to create a custom install program&lt;a href=&quot;&quot; name=&quot;ICallout&quot;&gt;&lt;/a&gt;&lt;/h1&gt;&lt;span style=&quot;font-size: 130%;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;[From the link specified in the reference]&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 130%;&quot;&gt;&lt;span style=&quot;font-size: 78%;&quot;&gt;Note: I&#39;ve searched the various links to get information at one place. I&#39;ve not checked the help for validation. So I&#39;m not responsible for any issue found related to the contents specified in the blog. Please use contents  at  own risk.&lt;/span&gt;&lt;/span&gt;      &lt;br /&gt;
&lt;fieldset class=&quot;Property&quot; style=&quot;width: auto;&quot;&gt;&lt;br /&gt;
&lt;legend class=&quot;PropertyName&quot;&gt;Summary&lt;/legend&gt;&lt;span class=&quot;PropertyValue&quot;&gt; To deploy stand-alone applications (.exe) or in-process components (.dll), you can create a custom installation program using Visual Studio or third-party installation software such as Wise or InstallShield. By using Visual Studio, it is possible to create a custom install program that deploys and registers your components—the key being the System.Runtime.InteropServices.RegistrationServices class. This class has the RegisterAssembly and UnregisterAssembly members, which register and unregister managed classes with component object models (COM). These are the same functions the RegAsm utility uses. Using these functions inside a custom installer class along with a setup program is the complete solution.&lt;br /&gt;
&lt;/span&gt;&lt;/fieldset&gt;&lt;br /&gt;
&lt;table cellspacing=&quot;0&quot; class=&quot;dtTable&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;           &lt;th&gt;Development licensing&lt;/th&gt;           &lt;th&gt;Deployment licensing&lt;/th&gt;         &lt;/tr&gt;
&lt;tr style=&quot;empty-cells: show;&quot;&gt;           &lt;td&gt;Engine Developer Kit&lt;/td&gt;           &lt;td&gt;Engine Runtime&lt;/td&gt;         &lt;/tr&gt;
&lt;tr style=&quot;empty-cells: show;&quot;&gt;           &lt;td&gt;ArcView&lt;/td&gt;           &lt;td&gt;ArcView&lt;/td&gt;         &lt;/tr&gt;
&lt;tr style=&quot;empty-cells: show;&quot;&gt;           &lt;td&gt;ArcEditor&lt;/td&gt;           &lt;td&gt;ArcEditor&lt;/td&gt;         &lt;/tr&gt;
&lt;tr style=&quot;empty-cells: show;&quot;&gt;           &lt;td&gt;ArcInfo&lt;/td&gt;           &lt;td&gt;ArcInfo&lt;/td&gt;         &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;           &lt;/b&gt;&lt;br /&gt;
&lt;h3&gt;&lt;b&gt;Deploying a .NET component customization&lt;/b&gt;&lt;/h3&gt;&lt;b&gt;&lt;/b&gt;       &lt;/div&gt;&lt;div&gt;The steps in this article show how to deploy a .NET component customization; for example, a class library developed in .NET that provides custom commands and tools.&lt;/div&gt;&lt;div class=&quot;sidenote&quot;&gt;&lt;div&gt;The technique described in this article assumes that ArcGIS is installed on the target machine.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ol type=&quot;1&quot;&gt;&lt;li&gt;In Visual Studio, open a .NET solution that already contains a class library project with at least one class exposed to COM; for example, a custom command class. You may want to create your command using Visual Studio IDE Integration features of the .NET SDK. &lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div class=&quot;sidenote&quot;&gt;&lt;div&gt;For more information on using the Visual Studio IDE integration to create you own custom ArcGIS based COM components see &lt;a href=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/308bf8db-aee9-4ab9-80c0-ba6a225bdd69.htm&quot;&gt;About the ArcGIS item templates&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;2&quot; type=&quot;1&quot;&gt;&lt;li&gt;In the Solution Explorer, right click on the project name and choose &#39;Add&#39; &amp;gt; &#39;New Item&#39; and then choose &#39;Installer Class&#39; from the &lt;i&gt;New Item&lt;/i&gt; dialog. See the following screen shot:&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div style=&quot;padding-left: 50px;&quot;&gt;&lt;img height=&quot;369&quot; inline=&quot;&quot; src=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/bitmaps/0df20605-b457-42d6-b63c-341a3824474a1.png&quot; style=&quot;height: 369px; width: 600px;&quot; tabindex=&quot;-1&quot; title=&quot;Add New Item dialog box.&quot; width=&quot;600&quot; xd=&quot;http://schemas.microsoft.com/office/infopath/2003&quot; /&gt;       &lt;/div&gt;&lt;div style=&quot;padding-left: 50px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;sidenote&quot;&gt;You will need to have a name for your class other than &quot;Installer&quot; as that is the name of the class in System.Configuration.Install that your install class will inherit from.&lt;/div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;3&quot; type=&quot;1&quot;&gt;&lt;li&gt;The next step is to override the install and uninstall functions implemented in the installer base class. You use the RegistrationServices class RegisterAssembly and UnregisterAssembly methods to register the components. Make sure you use the SetCodeBase flag to indicate that the code base key for the assembly is set in the registry. The RegistrationServices class is found in the System.Runtime.InteropServices namespace. To accomplish this, first add a new imports or using statement at the top of the class. See the following:&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;span class=&quot;lang&quot;&gt;[C#]&lt;/span&gt;&lt;code&gt;         &lt;/code&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;using&lt;/span&gt; System.Runtime.InteropServices;&lt;/pre&gt;&lt;br /&gt;
&lt;span class=&quot;lang&quot;&gt;[VB.NET]&lt;/span&gt;&lt;code&gt;         &lt;/code&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;Imports&lt;/span&gt; System.Runtime.InteropServices&lt;/pre&gt;Then, add the following code inside of the installer class:&lt;br /&gt;
&lt;span class=&quot;lang&quot;&gt;[C#]&lt;/span&gt;&lt;code&gt;         &lt;/code&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;override&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; Install(System.Collections.IDictionary stateSaver)
{
&lt;span class=&quot;kwrd&quot;&gt;base&lt;/span&gt;.Install(stateSaver);
RegistrationServices regSrv = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; RegistrationServices();
regSrv.RegisterAssembly(&lt;span class=&quot;kwrd&quot;&gt;base&lt;/span&gt;.GetType().Assembly,
AssemblyRegistrationFlags.SetCodeBase);
}

&lt;span class=&quot;kwrd&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;override&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; Uninstall(System.Collections.IDictionary savedState)
{
&lt;span class=&quot;kwrd&quot;&gt;base&lt;/span&gt;.Uninstall(savedState);
RegistrationServices regSrv = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; RegistrationServices();
regSrv.UnregisterAssembly(&lt;span class=&quot;kwrd&quot;&gt;base&lt;/span&gt;.GetType().Assembly);
}&lt;/pre&gt;&lt;br /&gt;
&lt;span class=&quot;lang&quot;&gt;[VB.NET]&lt;/span&gt;&lt;code&gt;         &lt;/code&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;Public&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;Overrides&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;Sub&lt;/span&gt; Install(&lt;span class=&quot;kwrd&quot;&gt;ByVal&lt;/span&gt; stateSaver &lt;span class=&quot;kwrd&quot;&gt;As&lt;/span&gt; System.Collections.IDictionary)
&lt;span class=&quot;kwrd&quot;&gt;MyBase&lt;/span&gt;.Install(stateSaver)
&lt;span class=&quot;kwrd&quot;&gt;Dim&lt;/span&gt; regsrv &lt;span class=&quot;kwrd&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;New&lt;/span&gt; RegistrationServices
regsrv.RegisterAssembly(&lt;span class=&quot;kwrd&quot;&gt;MyBase&lt;/span&gt;.&lt;span class=&quot;kwrd&quot;&gt;GetType&lt;/span&gt;().&lt;span class=&quot;kwrd&quot;&gt;Assembly&lt;/span&gt;, AssemblyRegistrationFlags.SetCodeBase)
&lt;span class=&quot;kwrd&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;Sub&lt;/span&gt;

&lt;span class=&quot;kwrd&quot;&gt;Public&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;Overrides&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;Sub&lt;/span&gt; Uninstall(&lt;span class=&quot;kwrd&quot;&gt;ByVal&lt;/span&gt; savedState &lt;span class=&quot;kwrd&quot;&gt;As&lt;/span&gt; System.Collections.IDictionary)
&lt;span class=&quot;kwrd&quot;&gt;MyBase&lt;/span&gt;.Uninstall(savedState)
&lt;span class=&quot;kwrd&quot;&gt;Dim&lt;/span&gt; regsrv &lt;span class=&quot;kwrd&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;New&lt;/span&gt; RegistrationServices
regsrv.UnregisterAssembly(&lt;span class=&quot;kwrd&quot;&gt;MyBase&lt;/span&gt;.&lt;span class=&quot;kwrd&quot;&gt;GetType&lt;/span&gt;().&lt;span class=&quot;kwrd&quot;&gt;Assembly&lt;/span&gt;)
&lt;span class=&quot;kwrd&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;Sub&lt;/span&gt;&lt;/pre&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;4&quot; type=&quot;1&quot;&gt;&lt;li&gt;At this point you must re-build your project to ensure that the latest version of all the project files get included in the setup program. Choose Build &amp;gt; Rebuild Solution from the Visual Studio menus.&lt;/li&gt;
&lt;/ol&gt;&lt;div class=&quot;sidenote&quot;&gt;If you want your application to be able to work across different versions of assemblies, you may need to specify that in the properties of any referenced assemblies. You can do this by clicking on a specific assembly in the References section of the Solution Explorer and setting the &#39;Specific Version&#39; to False. Do this before you re-build your project.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;5&quot; type=&quot;1&quot;&gt;&lt;li&gt;Add a setup program to your solution by choosing &#39;File&#39; &amp;gt; &#39;New Project&#39; from the menus. On the Add New Project dialog box, select Setup and Deployment in the Project types area, then click Setup Project in the Templates area. Name the new project and click OK to add the new setup project to your solution. See the following screen shot:&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;392&quot; inline=&quot;&quot; src=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/bitmaps/0df20605-b457-42d6-b63c-341a3824474a2.png&quot; style=&quot;height: 392px; width: 600px;&quot; tabindex=&quot;-1&quot; title=&quot;Add New Project dialog box.&quot; width=&quot;600&quot; xd=&quot;http://schemas.microsoft.com/office/infopath/2003&quot; /&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;/div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;6&quot; type=&quot;1&quot;&gt;&lt;li&gt;In the Solution Explorer, right-click the new Setup project, click Add, then select Project Output. Choose the project you want to deploy. Select Primary output and click OK. See the following screen shot:&lt;br /&gt;
&lt;br /&gt;
&lt;img inline=&quot;&quot; src=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/bitmaps/0df20605-b457-42d6-b63c-341a3824474a3.png&quot; style=&quot;height: 346px; width: 497px;&quot; tabindex=&quot;-1&quot; title=&quot;Add Project Output Group dialog box and Solution Explorer.&quot; xd=&quot;http://schemas.microsoft.com/office/infopath/2003&quot; /&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;/div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;7&quot; type=&quot;1&quot;&gt;&lt;li&gt;From the list of detected dependencies that is regenerated, exclude all references to ESRI primary interop assemblies; for example, ESRI.ArcGIS.System. Also exclude the Stdole.dll reference. The only items typically left in the list are the .tlb file, Microsoft .NET Framework file, and the Primary output from the &lt;assemblyname&gt;&lt;version&gt; file, which represents the .dll or .exe you are compiling. See the following screen shot:&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;488&quot; inline=&quot;&quot; src=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/bitmaps/0df20605-b457-42d6-b63c-341a3824474a4.png&quot; style=&quot;height: 488px; width: 274px;&quot; tabindex=&quot;-1&quot; title=&quot;Solution Explorer - SubsetRasterLayerInstall.&quot; width=&quot;274&quot; xd=&quot;http://schemas.microsoft.com/office/infopath/2003&quot; /&gt;&lt;/version&gt;&lt;/assemblyname&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;sidenote&quot;&gt;You should never include ArcGIS assemblies in your deployment package as these are installed by the ArcGIS installation program.&lt;/div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;8&quot; type=&quot;1&quot;&gt;&lt;li&gt;Additionally, you need to change the value of the Register property for the .tlb file. By default, the .tlb file is set to be registered with COM at install time. However, this causes an error during installation. To accomplish this, right-click the .tlb file in the project&#39;s detected dependencies tree node. In the Properties pane, set the value of the Register property to vsdrfDoNotRegister before compiling the installer. See the following screen shot:&lt;br /&gt;
&lt;br /&gt;
&lt;img inline=&quot;&quot; src=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/bitmaps/0df20605-b457-42d6-b63c-341a3824474a5.png&quot; style=&quot;height: 380px; width: 325px;&quot; tabindex=&quot;-1&quot; title=&quot;Properties for SubsetRasterLayer.tlb file.&quot; xd=&quot;http://schemas.microsoft.com/office/infopath/2003&quot; /&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;/div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;9&quot; type=&quot;1&quot;&gt;&lt;li&gt;The final steps involve associating the custom installation steps configured in the new installer class with the setup project. To do this, right-click the setup project in the Solution Explorer, choose View, then choose Custom Actions. See the following screen shot:&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;254&quot; inline=&quot;&quot; src=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/bitmaps/0df20605-b457-42d6-b63c-341a3824474a6.png&quot; style=&quot;height: 254px; width: 321px;&quot; tabindex=&quot;-1&quot; title=&quot;Custom actions for SubsetRasterLayerInstall.&quot; width=&quot;321&quot; xd=&quot;http://schemas.microsoft.com/office/infopath/2003&quot; /&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;/div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;10&quot; type=&quot;1&quot;&gt;&lt;li&gt;In the resulting custom actions for the installation project, right-click the Install folder and choose Add Custom Action. See the following screen shot:&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;96&quot; inline=&quot;&quot; src=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/bitmaps/0df20605-b457-42d6-b63c-341a3824474a7.png&quot; style=&quot;height: 96px; width: 203px;&quot; tabindex=&quot;-1&quot; title=&quot;Adding custom action for the installation project.&quot; width=&quot;203&quot; xd=&quot;http://schemas.microsoft.com/office/infopath/2003&quot; /&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;/div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;11&quot; type=&quot;1&quot;&gt;&lt;li&gt;On the Select Item in Project dialog box, double-click Application Folder. See the following screen shot:&lt;br /&gt;
&lt;br /&gt;
&lt;img inline=&quot;&quot; src=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/bitmaps/0df20605-b457-42d6-b63c-341a3824474a8.png&quot; style=&quot;height: 334px; width: 459px;&quot; tabindex=&quot;-1&quot; title=&quot;Select Item in Project dialog box.&quot; xd=&quot;http://schemas.microsoft.com/office/infopath/2003&quot; /&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;/div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;12&quot; type=&quot;1&quot;&gt;&lt;li&gt;From the Application Folder, double-click the Primary output from the &lt;assemblyname&gt;&lt;version&gt; file to associate the custom install function created earlier with the setup&#39;s custom install action. See the following screen shot:&lt;br /&gt;
&lt;br /&gt;
&lt;img inline=&quot;&quot; src=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/bitmaps/0df20605-b457-42d6-b63c-341a3824474a9.png&quot; style=&quot;height: 334px; width: 459px;&quot; tabindex=&quot;-1&quot; title=&quot;Select Item in Project dialog box.&quot; xd=&quot;http://schemas.microsoft.com/office/infopath/2003&quot; /&gt;&lt;/version&gt;&lt;/assemblyname&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;/div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;13&quot; type=&quot;1&quot;&gt;&lt;li&gt;Repeat this process for the setup&#39;s uninstall. See the following screen shot:&lt;br /&gt;
&lt;br /&gt;
&lt;img height=&quot;584&quot; inline=&quot;&quot; src=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/bitmaps/0df20605-b457-42d6-b63c-341a3824474a10.png&quot; style=&quot;height: 584px; width: 600px;&quot; tabindex=&quot;-1&quot; title=&quot;SubsetRasterLayer custom actions and Solution Explorer.&quot; width=&quot;600&quot; xd=&quot;http://schemas.microsoft.com/office/infopath/2003&quot; /&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;/div&gt;&lt;ol ndlistnewstart=&quot;true&quot; start=&quot;14&quot; type=&quot;1&quot;&gt;&lt;li&gt;Rebuild the entire solution to generate the setup&#39;s executable. &lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;sidenote&quot;&gt;A setup project is not built by default. In the Solution Explorer, you can right-click the setup project and click Build to build the setup project. You can also right-click the solution and choose Configuration Manager, then on the Configuration Manager dialog box, select the Build option for the setup project before rebuilding the solution.&lt;/div&gt;&lt;div&gt;Running the setup executable on a target machine installs the components and registers them with COM. The COMRegisterFunction routine then registers the components in the appropriate component categories.&lt;/div&gt;&lt;div class=&quot;sidenote&quot;&gt;Please note that you must uninstall the custom component before you attempt to uninstall ArcGIS. The reason for that is that custom components need to loaded at install/uninstall time.  When loading the .NET Framework loads the custom component it must also load all referenced assemblies (eg &quot;ESRI.ArcGIS.ArcMap.dll&quot; and &quot;ESRI.ArcGIS.System.dll&quot;).  If these referenced assemblies are missing at install/uninstall time then the install/uninstall will fail.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Referecnce:&lt;br /&gt;
&lt;h1 style=&quot;font-weight: normal;&quot;&gt;&lt;a href=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/0df20605-b457-42d6-b63c-341a3824474a.htm&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;How to create a custom install program&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;Study Links:&lt;br /&gt;
&lt;h1&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;1. &lt;a href=&quot;http://edndoc.esri.com/arcobjects/9.2/NET/0df20605-b457-42d6-b63c-341a3824474a.htm&quot;&gt;How to create a custom install program&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;2. &lt;a href=&quot;http://vbcity.com/forums/topic.asp?tid=83928&quot;&gt;&lt;span class=&quot;subject&quot;&gt;&lt;b&gt;Custom Actions - Part 1&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotneinstall.blogspot.com/feeds/1332158803174978603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8734776583240915688/1332158803174978603' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/1332158803174978603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/1332158803174978603'/><link rel='alternate' type='text/html' href='http://dotneinstall.blogspot.com/2008/06/installuninstall-customization-from.html' title='Install/Uninstall Customization [from other link]'/><author><name>jivangoyal</name><uri>http://www.blogger.com/profile/12853371042810428434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8734776583240915688.post-3256015942454845980</id><published>2008-06-13T02:33:00.000-07:00</published><updated>2008-06-16T00:04:44.856-07:00</updated><title type='text'>Installation setup in VB.net</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;Note: I&#39;ve searched the various links to get information at one place. I&#39;ve not checked the help for validation. So I&#39;m not responsible for any issue found related to the contents specified in the blog. Please use contents  at  own risk.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Visual Studio 2005 Setup and deployment Projects provides to make a exe in .NET windows application is easy and rapidly&lt;/p&gt; &lt;p&gt;Visual Studio provides templates for four types of deployment projects: Merge Module Project, Setup Project, Web Setup Project, and Cab Project. In addition, a Setup wizard is provided to help step you through the process of creating deployment projects. You can see the templates and the wizard in the &lt;b&gt;New Project&lt;/b&gt; dialog box under the &lt;b&gt;Setup and Deployment Projects&lt;/b&gt; node.&lt;/p&gt; &lt;p&gt;The following are guidelines for choosing the right type of deployment project for your project.&lt;/p&gt; &lt;p&gt; &lt;/p&gt;&lt;p&gt;1)&lt;strong&gt;Merge Module Project :&lt;/strong&gt; Packages components that might be shared by multiple applications. &lt;/p&gt;&lt;p&gt;2)&lt;strong&gt;Setup Project :&lt;/strong&gt; Builds an installer for a Windows-based application. &lt;/p&gt;&lt;p&gt;3)&lt;strong&gt;Web Setup Project : &lt;/strong&gt;Builds an installer for a Web application. &lt;/p&gt;&lt;p&gt;4)&lt;strong&gt;Cab Project&lt;/strong&gt; &lt;strong&gt;:&lt;/strong&gt; Creates a cabinet file for downloading to a legacy Web browser. &lt;/p&gt;&lt;p&gt;5)&lt;strong&gt;Smart Device Cab Project : &lt;/strong&gt;Creates a Cab project to deploy device applications. &lt;/p&gt;&lt;p&gt;This topic demonstrates deployment using a Setup and Deployment Project. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;Setup Projects&lt;/strong&gt;  &lt;/p&gt;&lt;p&gt;&lt;b&gt;Setup&lt;/b&gt; projects allow you to create installers in order to distribute an application. The resulting Windows Installer (.msi) file contains the application, any dependent files, information about the application such as registry entries, and instructions for installation. When the .msi file is distributed and run on another computer, you can be assured that everything necessary for installation is included; if for any reason the installation fails (for example, the target computer does not have the required operating system version), the installation will be rolled back and the computer returned to its preinstallation state. &lt;/p&gt;&lt;p&gt;After you have developed your windows apllication,now you want to make a exe.how can? These steps are gives the guidance to you…&lt;/p&gt; &lt;p&gt;1, Go to file menu &gt; click Add &gt; new project &gt;now “Add New Project” Dialog appear.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19addnew3.png&quot;&gt;&lt;img style=&quot;border: 0pt none ;&quot; src=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19addnew-thumb1.png?w=267&amp;amp;h=281&quot; border=&quot;0&quot; height=&quot;281&quot; width=&quot;267&quot; /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;2.Select “Other Project Types” and click “Setup and Deployment” projects,Choose “Setup Project”give name project name in name text box finally click OK.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19setup5.png&quot;&gt;&lt;img style=&quot;border: 0pt none ;&quot; src=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19setup-thumb3.png?w=450&amp;amp;h=296&quot; border=&quot;0&quot; height=&quot;296&quot; width=&quot;450&quot; /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;3.New project appear in solution explorer,for example you give the name “MyEXE”..it will display with this name.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image08.png&quot;&gt;&lt;img style=&quot;border: 0pt none ;&quot; src=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image0-thumb4.png?w=188&amp;amp;h=280&quot; border=&quot;0&quot; height=&quot;280&quot; width=&quot;188&quot; /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;4.right click the MyEXE &gt; go View &gt; click “File System”&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image014.png&quot;&gt;&lt;img style=&quot;border: 0pt none ;&quot; src=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image0-thumb8.png?w=208&amp;amp;h=266&quot; border=&quot;0&quot; height=&quot;266&quot; width=&quot;208&quot; /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;5.You can see the “File System on TargetMachine”under  three folders&lt;br /&gt;Application Folder&lt;br /&gt;User’s Desktop&lt;br /&gt;User’s Program Menu&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image039.png&quot;&gt;&lt;img style=&quot;border: 0pt none ;&quot; src=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image0-thumb19.png?w=455&amp;amp;h=119&quot; border=&quot;0&quot; height=&quot;119&quot; width=&quot;455&quot; /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;6.Select Application Folder and right click Add&gt;Project Output&gt;select Primary output&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image042.png&quot;&gt;&lt;img style=&quot;border: 0pt none ;&quot; src=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image0-thumb22.png?w=358&amp;amp;h=143&quot; border=&quot;0&quot; height=&quot;143&quot; width=&quot;358&quot; /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;7. select User’s Desktop richt click on the second window&gt;click create new shortcut&gt;select output file from Application folder&gt;change the file name from  primary output name to MyEXE&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image043.png&quot;&gt;&lt;img style=&quot;border: 0pt none ;&quot; src=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image0-thumb23.png?w=426&amp;amp;h=173&quot; border=&quot;0&quot; height=&quot;173&quot; width=&quot;426&quot; /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;next &gt;&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image048.png&quot;&gt;&lt;img style=&quot;border: 0pt none ;&quot; src=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image0-thumb26.png?w=385&amp;amp;h=278&quot; border=&quot;0&quot; height=&quot;278&quot; width=&quot;385&quot; /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&lt;em&gt;same procedure follows the user’s program menu also&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;8.If you want to change the Manufactures name for exe,just right click the project go to properties&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image044.png&quot;&gt;&lt;img style=&quot;border: 0pt none ;&quot; src=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image0-thumb24.png?w=216&amp;amp;h=384&quot; border=&quot;0&quot; height=&quot;384&quot; width=&quot;216&quot; /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;change the properties as per you requirement&lt;/p&gt; &lt;p&gt;9.Finally Build the new project After successfully Build the project myEXE(Setup) will be appear in Application Debug or Release folder(depend upon the properties settings)&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image053.png&quot;&gt;&lt;img style=&quot;border: 0pt none ;&quot; src=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image0-thumb29.png?w=158&amp;amp;h=313&quot; border=&quot;0&quot; height=&quot;313&quot; width=&quot;158&quot; /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;EXE available @ this location&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image059.png&quot;&gt;&lt;img style=&quot;border: 0pt none ;&quot; src=&quot;http://balanagaraj.files.wordpress.com/2007/05/windowslivewritercreateexeorsetupfi.netwindowsapplication-ec19image0-thumb33.png?w=441&amp;amp;h=138&quot; border=&quot;0&quot; height=&quot;138&quot; width=&quot;441&quot; /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;When you want to install  the EXE on the client machine,you should be installed .NET Framework on that mc because,Applications and controls written for the .NET Framework version 2.0 require the .NET Framework Redistributable Package version 2.0 to be installed on the computer where the application or control runs.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Reference: [http://balanagaraj.wordpress.com/2007/05/29/create-exe-or-setup-file-in-net-windows-application/]&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Other Study Links:&lt;/p&gt;&lt;p&gt;1. &lt;a href=&quot;http://www.exforsys.com/tutorials/vb.net-2005/vb.net-2005-creating-installation-components.html&quot;&gt;&lt;span class=&quot;table_2_cell_2&quot;&gt;Microsoft .NET Creating Installation Components&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.exforsys.com/tutorials/vb.net-2005/vb.net-2005-creating-installation-components.html&quot;&gt;&lt;span class=&quot;table_2_cell_2&quot;&gt;2. &lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;http://visualbasic.about.com/od/usingvbnet/a/dplnet01_2.htm&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Deployment options for Visual Studio .NET 2.0 overview&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://visualbasic.about.com/od/usingvbnet/a/dplnet01_2.htm&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;3. &lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;http://www.windowsdevcenter.com/pub/a/windows/2007/06/06/developing-visual-studio-project-wizards.html&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;Developing Visual Studio Project Wizards&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.windowsdevcenter.com/pub/a/windows/2007/06/06/developing-visual-studio-project-wizards.html&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;4. &lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;http://www.codeguru.com/csharp/.net/net_general/visualstudionetadd-ins/article.php/c7219/&quot;&gt;&lt;span class=&quot;bodycopy&quot;&gt;&lt;span class=&quot;sectionhead&quot;&gt;Deploy Windows Applications with Visual Studio.NET, Part 1&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotneinstall.blogspot.com/feeds/3256015942454845980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8734776583240915688/3256015942454845980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/3256015942454845980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8734776583240915688/posts/default/3256015942454845980'/><link rel='alternate' type='text/html' href='http://dotneinstall.blogspot.com/2008/06/installation-setup-in-vbnet.html' title='Installation setup in VB.net'/><author><name>jivangoyal</name><uri>http://www.blogger.com/profile/12853371042810428434</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>