Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - WScript, HTAs, and Vista/7

Reply
 
Old 10-08-2009   #1 (permalink)
mayayana


 
 

WScript, HTAs, and Vista/7

Have people run into problems with
WScript on Vista/7? I haven't used those
systems very much, but recently I was
writing an HTA that used WScript.Shell
to write values to HKCU, on Win7 RC. If I use
"On Error Resume Next" I get one of those
strange messages that says the script should
be stopped because it's causing IE to run slowly.
(Also an irritating message. It doesn't actually
give one a choice. It just keeps popping up
until one agrees to stop the script.)

If I comment out the error trap I find that
the write fails with no errors. Yet when I switched
the code to use WMIs StdRegProv it worked
fine. (Permissions was not an issue.)

So I'm wondering whether Vista/7 is limiting
the usability of WSH in general, and if so, to what
extent.





My System SpecsSystem Spec
Old 10-09-2009   #2 (permalink)
acomputerwiz6


 
 

Re: WScript, HTAs, and Vista/7

On Oct 8, 11:16*am, "mayayana" <mayaXXy...@newsgroup> wrote:
Quote:

> * *Have people run into problems with
> WScript on Vista/7? I haven't used those
> systems very much, but recently I was
> writing an HTA that used WScript.Shell
> to write values to HKCU, on Win7 RC. If I use
> "On Error Resume Next" I get one of those
> strange messages that says the script should
> be stopped because it's causing IE to run slowly.
> (Also an irritating message. It doesn't actually
> give one a choice. It just keeps popping up
> until one agrees to stop the script.)
>
> * If I comment out the error trap I find that
> the write fails with no errors. Yet when I switched
> the code to use WMIs StdRegProv it worked
> fine. (Permissions was not an issue.)
>
> * So I'm wondering whether Vista/7 is limiting
> the usability of WSH in general, and if so, to what
> extent.
Well, I have run stuff on Vista/7 without problems. I am sure there
are some things that may not work. The biggest problem I have so far
is dealing with UAC. Even if UAC is off, sometimes it still presents
problems with the security model in general.
My System SpecsSystem Spec
Old 10-09-2009   #3 (permalink)
mayayana


 
 

Re: WScript, HTAs, and Vista/7


Well, I have run stuff on Vista/7 without problems. I am sure there
are some things that may not work. The biggest problem I have so far
is dealing with UAC. Even if UAC is off, sometimes it still presents
problems with the security model in general.
Quote:

>
OK. Thanks. Maybe there was an as-yet-undiscovered
quirk in the specific code I was writing. If I remember
correctly I was running as either standard admin or
"real" admin at the time. But I also find that testing
with permissions issues gets confusing quickly.


My System SpecsSystem Spec
Old 10-09-2009   #4 (permalink)
Paul Randall


 
 

Re: WScript, HTAs, and Vista/7


"mayayana" <mayaXXyana@newsgroup> wrote in message
news:u3k59QOSKHA.504@newsgroup
Quote:

>
> Well, I have run stuff on Vista/7 without problems. I am sure there
> are some things that may not work. The biggest problem I have so far
> is dealing with UAC. Even if UAC is off, sometimes it still presents
> problems with the security model in general.
Quote:

>>
>
> OK. Thanks. Maybe there was an as-yet-undiscovered
> quirk in the specific code I was writing. If I remember
> correctly I was running as either standard admin or
> "real" admin at the time. But I also find that testing
> with permissions issues gets confusing quickly.
It would be nice to have a scripting function that returns who am I and what
permissions do I have, and another function that returns what permissions
are required for a specified object/property/method combination.

-Paul Randall


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
demo RunAs for HTAs (and other filetypes) on Win7/Vista - feedback requested VB Script
WScript.dll not working VB Script
WScript.Echo VB Script
HTA and Wscript.Sleep VB Script
Vista and HTAs Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46