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 - Autorun script for XP & Vista

Reply
 
Old 01-11-2009   #1 (permalink)
Mitch Gallant


 
 

Autorun script for XP & Vista

I am writing a vbs script, launched by autorun.inf on DVD/CD to achieve the
following:
- detect drive letter (done)
- detect OS (done) and take action if either XP or Vista found

The action to take is:
- if XP, open the first image in a folder on the DVD/CD using Windows
Picture/Fax viewer
- if Vista, open the first image in Photo Gallery

I like the option in both OS to start a slide-show from either Windows
application. My target users will certainly not have any other 3rd party
application for image viewing so I prefer to "have them use" the native
Windows image viewer interface.

The autorun.inf file looks like this:

[AutoRun]
icon=mycustom.ico
label="My Content Label"
shellexecute=viewjpg.vbs

This works perfectly for several XP systems i've tested. I don't have a
Vista test system but have tested burnt DVD/CD on 2 different Vista systems
in a store and while the autorun.inf does something (the custom icon and
text register on the disk in Computer folder), the script fails to execute.
Any ideas why? Might it be a security issue with store computers and
lockdown?

If necessary I can post the vbs here after some initial comments.

- Mitch
www.jensign.com
(p.s. it's been a while since I've done vbs/wmi )




My System SpecsSystem Spec
Old 01-11-2009   #2 (permalink)
mayayana


 
 

Re: Autorun script for XP & Vista

A couple or three thoughts:

* Vista security is very high so things depend on
the privileges of the person logged on.

* Many anti-virus programs regard .vbs as a potential
virus, blocking and/or sounding an alarm with *any*
..vbs file.

* You probably already know this ... It's possible to
disable autorun. I don't allow it on my own machines.
I don't know how common it is for people to do that.

Quote:

> I am writing a vbs script, launched by autorun.inf on DVD/CD to achieve
the
Quote:

> following:
> - detect drive letter (done)
> - detect OS (done) and take action if either XP or Vista found
>
> The action to take is:
> - if XP, open the first image in a folder on the DVD/CD using Windows
> Picture/Fax viewer
> - if Vista, open the first image in Photo Gallery
>
> I like the option in both OS to start a slide-show from either Windows
> application. My target users will certainly not have any other 3rd party
> application for image viewing so I prefer to "have them use" the native
> Windows image viewer interface.
>
> The autorun.inf file looks like this:
>
> [AutoRun]
> icon=mycustom.ico
> label="My Content Label"
> shellexecute=viewjpg.vbs
>
> This works perfectly for several XP systems i've tested. I don't have a
> Vista test system but have tested burnt DVD/CD on 2 different Vista
systems
Quote:

> in a store and while the autorun.inf does something (the custom icon and
> text register on the disk in Computer folder), the script fails to
execute.
Quote:

> Any ideas why? Might it be a security issue with store computers and
> lockdown?
>
> If necessary I can post the vbs here after some initial comments.
>
> - Mitch
> www.jensign.com
> (p.s. it's been a while since I've done vbs/wmi )
>
>
>

My System SpecsSystem Spec
Old 01-11-2009   #3 (permalink)
Mitch Gallant


 
 

Re: Autorun script for XP & Vista

This is what I'm trying to determine .... what a standard user configuration
setting for Vista might look like.
I wonder if Microsoft's PPT "Package for CD" autorun.inf approach would be
blocked (which launches MS PowerPointViewer exe).

- Mitch

"mayayana" <mayaXXyana@xxxxxx> wrote in message
news:u4uDAhBdJHA.2400@xxxxxx
Quote:

>A couple or three thoughts:
>
> * Vista security is very high so things depend on
> the privileges of the person logged on.
>
> * Many anti-virus programs regard .vbs as a potential
> virus, blocking and/or sounding an alarm with *any*
> .vbs file.
>
> * You probably already know this ... It's possible to
> disable autorun. I don't allow it on my own machines.
> I don't know how common it is for people to do that.
>
>
Quote:

>> I am writing a vbs script, launched by autorun.inf on DVD/CD to achieve
> the
Quote:

>> following:
>> - detect drive letter (done)
>> - detect OS (done) and take action if either XP or Vista found
>>
>> The action to take is:
>> - if XP, open the first image in a folder on the DVD/CD using Windows
>> Picture/Fax viewer
>> - if Vista, open the first image in Photo Gallery
>>
>> I like the option in both OS to start a slide-show from either Windows
>> application. My target users will certainly not have any other 3rd party
>> application for image viewing so I prefer to "have them use" the native
>> Windows image viewer interface.
>>
>> The autorun.inf file looks like this:
>>
>> [AutoRun]
>> icon=mycustom.ico
>> label="My Content Label"
>> shellexecute=viewjpg.vbs
>>
>> This works perfectly for several XP systems i've tested. I don't have a
>> Vista test system but have tested burnt DVD/CD on 2 different Vista
> systems
Quote:

>> in a store and while the autorun.inf does something (the custom icon and
>> text register on the disk in Computer folder), the script fails to
> execute.
Quote:

>> Any ideas why? Might it be a security issue with store computers and
>> lockdown?
>>
>> If necessary I can post the vbs here after some initial comments.
>>
>> - Mitch
>> www.jensign.com
>> (p.s. it's been a while since I've done vbs/wmi )
>>
>>
>>
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Is Autorun.inf possible in Vista Vista General
AutoPlay & AutoRun in Vista Vista music pictures video
Autorun Script to empty folders VB Script
VISTA autorun problem Vista installation & setup
AutoRun and Vista 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