Re: [Unattended] shortcuts and .reg

2004-01-06 Thread Patrick J. LoPresti
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=1278alloc_id=3371op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


Re: [Unattended] shortcuts and .reg

2004-01-06 Thread Adam Peart
At 04:57 PM 1/6/2004, you wrote:
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
what I meant was it created the file mplayer.lnk, but I wanted it to be 
called Media Player Classic


 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:
Is there away to get it to run that todo at the end just before it cleans 
up the pre-install files  restores the system restore?

  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 :-)?
Current desktop.  So I guess it would be easier to run in a bat file to del 
c:\documents and settings\(Owner)\desktop\shortcut.lnk (if I remember the 
path right).


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?
No rush, just a couple of ideas, and for now I can use a bat file to do the 
trick.  Good work with the perl scripts.  And just think, when it runs the 
todo.pl after mapping to z:, doesn't the command prompt run from the 
current user directory?  Maybe that could be used to access the different 
directories under the current user.


 - 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=1278alloc_id=3371op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info