Re: [Unattended] shortcuts and .reg

2004-01-08 Thread Adam Peart
Something someone suggested on the MSFN forum for unattend switches:

del "%allusersprofile%\start menu\WinZip.lnk"
del "%allusersprofile%\desktop\WinZip.lnk"
could just put that in the cleanup.bat 



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


Re: [Unattended] shortcuts and .reg

2004-01-07 Thread Patrick J. LoPresti
Adam Peart <[EMAIL PROTECTED]> writes:

> >
> >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

In that case,

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

:-)

> 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"?

Add something like this to z:\site\unattend.txt:

  [_meta]
bottom="z:\site\cleanup.bat"

Then create Z:\site\cleanup.bat to do whatever you like.

I am sorry that the [_meta] settings are not documented.  You can
learn about most of them by performing an Unattended installation and
then examining the [_meta] section in C:\netinst\unattend.txt.

> 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.

Maybe...  What is the working directory for the logon script?

It does not matter much, though.  The WScript interfaces work well for
resolving these special folders (excecpt for the Quick Launch bar).

 - Pat


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
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
,
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=1278&alloc_id=3371&op=click
___
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info


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
,
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


[Unattended] shortcuts and .reg

2004-01-05 Thread Adam Peart
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)
2) is there a spot to run .reg files to customize windows?
3) what's the best way to delete shortcuts put on the desktop
4) what's the best way to put shortcuts put on the quick launch bar

Thanks for any help.



---
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