{"id":1874,"date":"2022-08-30T15:20:10","date_gmt":"2022-08-30T15:20:10","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/02\/problem-about-windows-installer-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:20:10","modified_gmt":"2022-08-30T15:20:10","slug":"problem-about-windows-installer-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-windows-installer-collection-of-common-programming-errors\/","title":{"rendered":"problem about windows-installer-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6a3fb99e283d998f5acda7341aa0ab22?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJunuxx<br \/>\nc# wpf installer windows-installer<br \/>\nI have a WPF program written in VS2010 and everything runs fine. Created a windows installer project and built that ok. Ran the setup.exe file fine. When I come to run the installed application nothing happens for about 10 seconds then I get the program has stopped working etc.If I go into the event viewer I can see the application has thrown the following error:Application: BarcodeScanner.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Ex<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/63cf6a7e8dfbb2c12f8e7ed8fd9c13be?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDevashri<br \/>\nc# windows-installer<br \/>\nI want to read properties of MSI in C# in desktop application.I am using following code:public static string GetMSIProperty( string msiFile, string msiProperty){string retVal= string.Empty ;Type classType = Type.GetTypeFromProgID(&#8220;WindowsInstaller.Installer&#8221;);Object installerObj = Activator.CreateInstance(classType);WindowsInstaller.Installer installer = installerObj as WindowsInstaller.Installer;Database database = installer.OpenDatabase(&#8220;C:\\\\DataP\\\\sqlncli.msi&#8221;,0 ); string sql = String.Forma<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/9ddc315122e6a9efcc97b9b122c4756d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nStuart Lange<br \/>\nwix msi windows-installer msiexec<br \/>\nI have an msi (authored with WIX) that has a check box bound to a custom property (call it MY_PROPERTY). I would like to run this msi from the command line, specifying 0 (unchecked) or 1 (checked) for this property. My script will determine the appropriate value (based on the environment) and inject that value into the msiexec command line. My command line looks something like this:msiexec \/i my_installer.msi MY_PROPERTY=$valueWhere $value is 1 or 0, depending on the environment. The problem<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a85fae57a55188bc45750d0b556c5bfc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndskiles<br \/>\nwix msi windows-installer<br \/>\nI&#8217;m currently learning the vagaries of WiX and Windows installer and I&#8217;ve hit a stumbling block.The project that I&#8217;m currently packaging is made up of six discrete chunks. For now let&#8217;s call them A, B, C, D, E, and F.Chunk A is a set of common libraries and utilities that are used by every other project. It does not present any end-user functionality.Chunk B is another set of common libraries and utilities that require functionality provided by Chunk A. This seems odd, but the architecture is<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b87e8de380808bcb760109877604f1f5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nChristoph J\u00fcrgensmeier<br \/>\nwindows-installer<br \/>\nI finally got my embedded chainer msi running, with four sub msi&#8217;s being installed via Installer.InstallProduct in my C# chainer.exe (like described in the one and only chainer example found elsewhere here on stackoverflow). My problem: if I uninstall the package afterwards, when &#8220;transaction.Join&#8221; is called, this time it failes with MSI error: bad handle. I have to kill the msiexec.exe process in taskmanager, and then everything is running ok.Any suggestions?Addendum: I&#8217;m using Windows Installe<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/11560450adfec6e8801b2e1201e807e2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nC123<br \/>\nwix windows-installer<br \/>\nI would like to display to the users a summary page at the end of the installation that shows what features were installed. The ADDLOCAL property contains this information, but I cannot figure out how to display its value on a dialog. Adding it as the Text property of a Control does not work. &lt;!&#8211; Does not display anything &#8211;&gt; &lt;Control Id=&#8221;InstalledFeaturesText&#8221; Type=&#8221;Text&#8221; &#8230; Text=&#8221;[ADDLOCAL]&#8221; \/&gt;Thanks.<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/395b66642a372ee82bbc821bdc2697a4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKelsey<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fcbf57f0189c088a02fc2cfa29928a5d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJagadesh<br \/>\njava windows-installer ireport netbeans6.5<br \/>\nI am trying to create an executable file (.exe) of iReport with my module included in it. While I run the target the create-iReport-distro-win-installer, I am getting the following error. Note: I am using netbeans 6.5.1java.io.IOException: Cannot run program &#8220;makensis&#8221; (in directory &#8220;C:\\Program Files\\NetBeans 6.5.1\\iReport-3.7.2-src&#8221;): CreateProcess error=2, The system cannot find the file specifiedat java.lang.ProcessBuilder.start(ProcessBuilder.java:459)at java.lang.Runtime.exec(Runtime.java:5<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a940f8d31d77d9ccd29fd45031e0e861?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\naberry<br \/>\npython windows-installer binary-data<br \/>\nI am reading a MSI file using python msilib library. My aim is to extract [Binary Data] from Binary table and dump into a file. (Using ORCA tool, we can extract the binary data by double clicking [Binary Data] cell and write to a file)I could not find any msilib method to get binary data. It have method to get string data using Record.GetString(field). But as expected this is not working for [Binary Data] and give error. Here is the code snippetimport msilib # msi file path which is to be read<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/01e93a176145255669f0f7b74797f86c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndasari rama charan prasad<br \/>\nc# wix windows-installer<br \/>\nI need query to create binary table using wix code and C#.eg: i am able to create &#8216;AppSearch&#8217; table if not present in the msi using the code belowDatabase database = new Database(tempmsiPath, DatabaseOpenMode.Direct); string query = &#8220;CREATE TABLE `AppSearch` (`Property` CHAR(255) NOT NULL, `Signature_` CHAR(255) NOT NULL PRIMARY KEY `Property`)&#8221;; database.Execute(query);but when i try query = &#8220;CREATE TABLE `Binary` (`Name` CHAR(255) NOT NULL, `Data` Binary NOT NULL PRIMARY KEY `Name`)&#8221;<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f43a88df1e9cb67bb9ca09038e1382d1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nwal<br \/>\nwindows-7 msi windows-installer<br \/>\nThere is similar questions on SO such as this and this however both suggest ClickOnce which I don&#8217;t (can&#8217;t) use.I have started a new Setup project (InstallAllUsers=false) and have specified theApplication Folder to be [LocalAppDataFolder][ProductName]which at install time points toC:\\Users\\nonadmin\\AppData\\Local\\Setup1\\When running the installer on Windows 7 as a non-admin I get this:From my perspective it appears all the MSI does is copy the one text file to C:\\Users\\nonadmin\\AppData\\Local\\Setu<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1bcec20cca6b6e9602403a90e74618ba?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nse_pavel<br \/>\nwix windows-installer<br \/>\nI am writing an installer that also contains MSI package built using WIX. I check the return code after running msiexec and skip some error codes. For example user should&#8217;t receive error when return code is 1638 (product has already installed)But when the older version of product was installed the return code is 1603 (unknown error). I also want to skip this situation (user already get newer version)Wix code is&lt;Upgrade Id=&#8221;&lt;GUID&gt;&#8221;&gt;&lt;UpgradeVersion Minimum=&#8221;$(var.product_version)&#8221; O<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/dbb0d15935157ed24b964bd44dc3119b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2437605<br \/>\nwix windows-installer<br \/>\nI have created an MSI using WIX. This is working fine for install\/Un-install.When i tried to re-install the MSI it shows lot of errors. from the log it shows that could not register component.ComponentRegister(ComponentId={A35FD4BC-66CA-4BE0-BCBA-EDEA2DFC7FD3},KeyPath=C:\\Program Files\\Common Files\\{Appname}\\Config\\0.reg,State=3,,Disk=1,SharedDllRefCount=0,BinaryType=0) MSI (s) (54:F0) [13:56:53:819]: Note: 1: 1402 2: UNKNOWN\\Components\\CB4DF53AAC660EB4CBABDEAED2CFF73D 3: 1450MSI (s) (54:F0) [13:<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/40KVo.jpg?s=32&amp;g=1\" \/><br \/>\nRalph Willgoss<br \/>\nc# wix windows-installer<br \/>\nI am using Visual Studio 2010, with the Votive addin on Windows 7, .net4, and the latest WiX 3.7 to create an msi.The install is quite complex, and works fine when I test it on my pc.During the install, I run some custom actions. One of those custom actions needs an external SQLite dll for database access that is only required by the custom action.When I run it on a pc that doesn&#8217;t have my dev environment, just plain windows 7, I get a file not found error. This, it would seem obvious is because<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3fa5c518b542ee9765d0c90612f08952?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nOyiwai<br \/>\nc# windows-installer<br \/>\nPretty buffled by this. Is not the first time I&#8217;m building a setup- and never seen anything like this..Basically, as soon as I add a custom action, and try to install, I get this error.I do have an installer class in place with all the required code fields, and it&#8217;s the same fields that I used in my previous installer classes.[RunInstaller(true)] public partial class Installer : System.Configuration.Install.Installer {public Installer(){InitializeComponent();}public override void Commit(IDiction<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c2507b9470e658376d2f84834ceba5f7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nitsmeisuru<br \/>\nwix windows-installer wix3.6<br \/>\nI want to create a database in the installation process using wix 3.6 I followed many tutorials but I think there is something I am doing wrong.&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt; &lt;Wix xmlns=&#8221;http:\/\/schemas.microsoft.com\/wix\/2006\/wi&#8221;xmlns:util=&#8221;http:\/\/schemas.microsoft.com\/wix\/UtilExtension&#8221;xmlns:sql=&#8221;http:\/\/schemas.microsoft.com\/wix\/SqlExtension&#8221;&gt;&lt;Product Id=&#8221;{A704CA9E-2833-4276-A8A8-148F1047332F}&#8221; Name=&#8221;DbInstallerTest&#8221; Language=&#8221;1033&#8243; Version=&#8221;1.0.0.0&#8243; Manufacturer=&#8221;Microsof<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/61d2a0f034915fa9d2acd6f6b145bba8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJoel Coehoorn<br \/>\nwindows-installer inno-setup<br \/>\nI am trying to create a setup for SourceForge PDFCreator using Inno Setup and getting following error in Setuplog.txt:Printerdriver-Directory (Environment: Windows 4.0):Result: Success = C:\\WINDOWS\\System32\\spool\\DRIVERS\\WIN40 Printerdriver-Directory (Environment: Windows NT x86):Result: Success = C:\\WINDOWS\\System32\\spool\\DRIVERS\\W32X86 InstallMonitor:Monitorname : PDFCreatorEnvironment : Windows NT x86Result: Error 193 = %1 is not a valid Win32 application Install printerport:Portname : PDF_Cr<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6f6c1e706cc4a5e275daf74e05bfdb4c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKen Richards<br \/>\nwindows-services windows-installer custom-action<br \/>\nWhile uninstalling a VS2010 setup project I&#8217;m developing which installs a service, I am receiving the following error (taken from the verbose MSI logging):MSI (c) (60:90) [13:37:59:038]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell DlgError 1402. Could not open key: UNKNOWN\\Components\\216B73E88467B322BBFF14C949E03D05\\F1DB4DDE64042404E8863AB2CA9520DF. System error 5. Verify that you have sufficient access to that key, or contact your support personnel. MSI (s) (84:A4<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-12-02 21:10:00. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Junuxx c# wpf installer windows-installer I have a WPF program written in VS2010 and everything runs fine. Created a windows installer project and built that ok. Ran the setup.exe file fine. When I come to run the installed application nothing happens for about 10 seconds then I get the program has stopped working etc.If I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1874","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1874"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1874\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}