Adam Peart <[EMAIL PROTECTED]> writes:

> I'm new to the list, and have only used unattend a couple of times
> with no problems, but I have a couple of questions.
> 1) with shortcut.pl, can you pass it the name of the shortcut to
> create, not just based on the filename? (ie. mplayerc.exe for Media
> Player Classic, shortcut was called mplayerc)

The shortcut was probably called "mplayerc.lnk", actually...
Shortcuts are always .lnk files.

If you require the .exe to appear in the shortcut name, you could use
something like this:

  shortcut.pl "C:\...\mplayerc.exe" special:AllUsersDesktop\mplayerc.exe.lnk

But something like this would probably be easier on your users:

  shortcut.pl "C:\...\mplayerc.exe" "special:AllUsersDesktop\Media Player"

> 2) is there a spot to run .reg files to customize windows?

You can edit the scripts under z:\scripts (or create a new one) to
perform an invocation like:

  todo.pl "regedit /s z:\site\mystuff.reg"

> 3) what's the best way to delete shortcuts put on the desktop

The current user desktop, or the All Users desktop :-)?

It would not be too hard to modify shortcut.pl to do this.  There are
WScript.Shell functions for determining the location of these desktops
in the file system; once you have that, you just call "unlink".

> 4) what's the best way to put shortcuts put on the quick launch bar

That is a very good question.

According to
<http://www.microsoft.com/technet/scriptcenter/scrguide/sas_wsh_aytf.asp>,
the Quick Launch bar shortcuts are kept under:

  C:\Documents and Settings\{user profile name}\Application Data\Microsoft\Internet 
Explorer\Quick Launch

Why "Internet Explorer"?  Who knows.

Is "All Users" a valid value for "{user profile name}"?  Who knows.

A script for creating such shortcuts, assuming that the Desktop
special folder is parallel to "Application Data":

  http://rtfm.atrax.co.uk/infinitemonkeys/articles/wsh/986.asp

Maybe I should hack shortcut.pl to accept "special:QuickLaunchBar" and
add a "--delete" option.  Yes, I think I will.  How soon do you need
this?

 - Pat


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to