{"id":1203,"date":"2017-12-04T05:09:33","date_gmt":"2017-12-04T05:09:33","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1203"},"modified":"2020-01-09T09:35:22","modified_gmt":"2020-01-09T09:35:22","slug":"debugging-a-win32-installer","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/debugging-a-win32-installer\/","title":{"rendered":"Debugging a Win32 installer"},"content":{"rendered":"<p><strong>deployexpert created the topic: Debugging a Win32 installer<\/strong><br \/>\nTo view or capture the debug output from a Win32 installer, hold down the <CTRL><br \/>\nkey immediately after launching the installer and until a console window appears.<br \/>\nBefore exiting the installer, copy the console output to a text file for later review.<br \/>\nOn some Windows NT systems, run the installer once with the <CTRL> key down,<br \/>\nresetting the scroll back buffer for the console window, then quit and run the<br \/>\ninstallation again.<br \/>\nIf there are problems capturing the console output, try a slightly more convoluted<br \/>\nmethod (this will often be the case on Win9x because of the limited ability of the<br \/>\nconsole to capture output). First launch the installer and allow it to extract the<br \/>\nnecessary files. Once it reaches the \u201cPreparing to Install&#8230;\u201d window, when given the<br \/>\nopportunity to choose a language or to go to the Windows \u201ctemp\u201d directory, look for a<br \/>\ntemp folder which starts with an &#8216;I&#8221; followed by many numeric digits (ex.<br \/>\nI1063988642). Be sure it is the most recent directory, by sorting the directories by<br \/>\ntheir \u201cmodified\u201d date. Open the directory, there should be a file called \u201csea_loc\u201d.<br \/>\nDelete this file. Now go back to the installer, click OK, and at the first opportunity,<br \/>\ncancel the installation.<br \/>\nNow go back to the directory inside the temp directory, where the file \u201csea_loc\u201d was<br \/>\ndeleted. There should be another directory called \u201cWindows\u201d; open it. There should be<br \/>\nan .exe file (most likely \u201cinstall.exe\u201d). There should also be another file with the same<br \/>\nname except it will have a .lax extension. Open it with a plain text editor and edit the<br \/>\nlines:<br \/>\nlax.stderr.redirect= AND lax.stdout.redirect=<br \/>\nto be:<br \/>\nlax.stderr.redirect=output.txt AND lax.stdout.redirect=output.txt<br \/>\nAfter these changes have been made, save the file and launch the .exe. When the<br \/>\ninstallation is complete there should be an output.txt file in the same directory as the<br \/>\n.lax file. The output.txt file will contain the same information as that generated to the<br \/>\nconsole.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>deployexpert created the topic: Debugging a Win32 installer To view or capture the debug output from a Win32 installer, hold down the key immediately after launching the installer and until&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[295],"class_list":["post-1203","post","type-post","status-publish","format-standard","hentry","category-general","tag-debugging"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1203"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1203\/revisions"}],"predecessor-version":[{"id":1204,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1203\/revisions\/1204"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}