Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 559DC1C6FE40 for ; Thu, 26 Jan 2012 14:54:47 -0400 (AST) Received: from omr7.networksolutionsemail.com ([205.178.146.57]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RqUT5-0006N4-VS for pgsql-bugs@postgresql.org; Thu, 26 Jan 2012 18:54:47 +0000 Received: from cm-omr14 (mail.networksolutionsemail.com [205.178.146.50]) by omr7.networksolutionsemail.com (8.13.8/8.13.8) with ESMTP id q0QIsUev012132 for ; Thu, 26 Jan 2012 13:54:30 -0500 Authentication-Results: cm-omr14 smtp.user=eborts@bltek.com; auth=pass (CRAM-MD5) X-Authenticated-UID: eborts@bltek.com Received: from [67.190.87.109] ([67.190.87.109:49680] helo=[192.168.1.103]) by cm-omr14 (envelope-from ) (ecelerity 2.2.2.41 r(31179/31189)) with ESMTPSA (cipher=AES256-SHA) id 54/2A-30391-561A12F4; Thu, 26 Jan 2012 13:54:30 -0500 Message-ID: <4F21A163.8060004@bltek.com> Date: Thu, 26 Jan 2012 11:54:27 -0700 From: Eric Borts User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Dave Page CC: pgsql-bugs@postgresql.org, Dharmendra Goyal Subject: Re: Windows x86-64 One-Click Install (9.1.2-1, 9.0.6-1) hangs on "initialising the database cluster" (with work-around) References: <4F209FF1.3080209@bltek.com> <4F219D77.9050800@bltek.com> In-Reply-To: <4F219D77.9050800@bltek.com> Content-Type: multipart/alternative; boundary="------------060703050308000401020007" X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/182 X-Sequence-Number: 32249 This is a multi-part message in MIME format. --------------060703050308000401020007 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Also, here is a link to the same issue on StackOverflow: http://stackoverflow.com/questions/3559719/wscript-shell-run-doesnt-work-consistently Also solved using %COMSPEC% /c, though it doesn't say why this is a problem. Cheers, Eric On 1/26/2012 11:37 AM, Eric Borts wrote: > On 1/26/2012 1:17 AM, Dave Page wrote: >> Dharmendra, can you look into this please? >> >> Eric, is there anything unusual about the configuration of your >> machine? Suffice it to say, this doesn't normally happen. >> > Hi Dave, I'm guessing the answer to that question is "yes". The > machine came preinstalled with Norton Internet Security, but this was > turned off when I ran the install. After further investigation to the > .bat file, I realized that I am also missing the "Edit" option when I > right click a batch file. > > I investigated, uninstalled stuff, disabled a lot of stuff in my > registry, and nearly bricked my computer. After three hours, I'm going > to have to ask for suggestions. Here's what I found/tried: > > 1. uninstalled Norton Internet Security (and rebooted) > 2. uninstalled Acrobat Reader > 3. disabled all ContextMenuHandlers by > a. renaming HKCR/*/shellex to oldshellex > b. renaming HKCR/AllFileSystemsObjects/shellex to oldshellex > c. tried, but was unable to rename HKCR/batfile/ShellEx, so > renamed HKCR/batfile/ShellEx/ContextMenuHandlers to oldContextMenuHandlers > 4. disabled all non-Microsoft shell extensions using ShellExView > > 5. rebooted - computer bricked (black screen when Windows should be > loading) > 6. booted in safe mode > 7. tested script (from my original response) and right click. > a. no Edit option in batch file context menu > b. script hung as before > 8. Undid steps 3 and 4 in safe mode > 9. Rebooted - booted into windows properly > 10. Still no Edit in context menu and script still hangs > > I'm open to suggestions. I think it might be related to Edit menu > missing from my batch file, as this is the only odd thing that I can > tell about my machine. I have another similar machine (earlier model > Vaio) that both has the Edit menu and runs the test script > successfully. I compared the HKCR/batfile registry trees (using > TortoiseSVN diff) and they are identical. Short of comparing the > entire registry I'm at a loss. > > Would it be too dangerous to use WScript.Shell.Exec or to use > WScript.Shell.Run "%COMPSEC% /c" ? This has been an 11 hour struggle > for me so far, and I know at least a few others have had this same > problem. Here is a link to my work around on enterprisedb > . > > Thanks, > Eric > > Reference Links: > http://www.pcreview.co.uk/forums/edit-print-open-missing-shell-context-menu-cmd-and-bat-files-t2551124.html > http://windowsxp.mvps.org/slowrightclick.htm > http://www.nirsoft.net/utils/shexview.html > --------------060703050308000401020007 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Also, here is a link to the same issue on StackOverflow:
http://stackoverflow.com/questions/3559719/wscript-shell-run-doesnt-work-consistently

Also solved using %COMSPEC% /c, though it doesn't say why this is a problem.

Cheers,
Eric

On 1/26/2012 11:37 AM, Eric Borts wrote:
On 1/26/2012 1:17 AM, Dave Page wrote:
Dharmendra, can you look into this please?

Eric, is there anything unusual about the configuration of your
machine? Suffice it to say, this doesn't normally happen.

Hi Dave, I'm guessing the answer to that question is "yes". The machine came preinstalled with Norton Internet Security, but this was turned off when I ran the install. After further investigation to the .bat file, I realized that I am also missing the "Edit" option when I right click a batch file.

I investigated, uninstalled stuff, disabled a lot of stuff in my registry, and nearly bricked my computer. After three hours, I'm going to have to ask for suggestions. Here's what I found/tried:

1. uninstalled Norton Internet Security (and rebooted)
2. uninstalled Acrobat Reader
3. disabled all ContextMenuHandlers by
    a. renaming HKCR/*/shellex to oldshellex
    b. renaming HKCR/AllFileSystemsObjects/shellex to oldshellex
    c. tried, but was unable to rename HKCR/batfile/ShellEx, so renamed HKCR/batfile/ShellEx/ContextMenuHandlers to oldContextMenuHandlers
4. disabled all non-Microsoft shell extensions using ShellExView
5. rebooted - computer bricked (black screen when Windows should be loading)
6. booted in safe mode
7. tested script (from my original response) and right click.
    a. no Edit option in batch file context menu
    b. script hung as before
8. Undid steps 3 and 4 in safe mode
9. Rebooted - booted into windows properly
10. Still no Edit in context menu and script still hangs

I'm open to suggestions. I think it might be related to Edit menu missing from my batch file, as this is the only odd thing that I can tell about my machine. I have another similar machine (earlier model Vaio) that both has the Edit menu and runs the test script successfully. I compared the HKCR/batfile registry trees (using TortoiseSVN diff) and they are identical. Short of comparing the entire registry I'm at a loss.

Would it be too dangerous to use WScript.Shell.Exec or to use WScript.Shell.Run "%COMPSEC% /c" ? This has been an 11 hour struggle for me so far, and I know at least a few others have had this same problem. Here is a link to my work around on enterprisedb.

Thanks,
Eric

Reference Links:
http://www.pcreview.co.uk/forums/edit-print-open-missing-shell-context-menu-cmd-and-bat-files-t2551124.html
http://windowsxp.mvps.org/slowrightclick.htm
http://www.nirsoft.net/utils/shexview.html


--------------060703050308000401020007--