Jump to content

Recommended Posts

Posted

Is there a registry key that can be removed during install that will prevent outlook express link from being placed in the start menu. I ask because i can remove it from the admin account but if i create any other acounts the outlook express icon is listeded in teh startmenu. Is there a method for prevent it from appearing in ANY PROFILES?


Posted

I add a entry into HKCU\RunOnce from Cmdlines.txt. This is added to HKU\.Default at T-12 so it will run for each account. The script is copied to the Windows directory, hidden and executed there, as from the HKCU\RunOnce (HKU\.Default) entry created. This has been tested to work with existing and newly created accounts.

Posted
err.... what is the entry mhz?

The fullpath or filename to the script to be executed in the windows folder. You could just use a filename as the script is in the systems path.

Example DOS entry to add to registry:

Reg Add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v _FirstLogon /d FirstLogon.cmd /f

This will execute FirstLogon.cmd script in the systems path.

Don't run the FirstLogon.cmd script from CD as it may not be available latter when you create new accounts and logon into them.

This is what I do. I use AutoIt scripts but you can use cmd scripts also.

I execute an AutoIt script from Cmdlines.txt, which installs my software and then adds to HKCU\RunOnce the fullpath to another AutoIt script that I copy to the Windows folder.

Note: I now have an AutoIt script in the Windows directory (hidden from view) and I have a HKCU\RunOnce entry that will execute the AutoIt script. For each account for which 1st active desktop logon happens, the script in the Windows folder will execute it's set tasks.

Posted

Here try this VBS file, you can start it from the RunOnceEx.cmd

I cannnot test it as I use Outlook Express to access the Vista beta newsgroups.

Notes

Red Text you must remove the quote marks ' to make active

Green Text are safe to remove from script these are message boxs that I used to

confirm the existance of the file and folder

Dim Act, AData, Fso, DTop, OeDel, SD, Smenu,OE_Prog, Folder, FolderItem, Shell

Set Act = CreateObject("WScript.Shell")

Set Fso = CreateObject("Scripting.FileSystemObject")

Set Shell = CreateObject("Shell.Application")

Dtop = Act.SpecialFolders("Desktop")

Smenu = Act.SpecialFolders("StartMenu")

SD = Act.ExpandEnvironmentStrings("%Systemdrive%")

AData = Act.ExpandEnvironmentStrings("%Appdata%")

OE_Prog = (SD & "\Program Files\Outlook Express")

Set Folder = Shell.Namespace(OE_Prog)

Set FolderItem = Folder.ParseName("msimn.exe")

'''' ARRAY TO DELETE THE OE SHORTCUTS

OeDel = Array((Smenu & "\Programs\Outlook Express.lnk"), (Dtop & "\Outlook Express.lnk"),_

(Smenu & "\Programs\Outlook Express.lnk"),_

(AData & "\Microsoft\Internet Explorer\Quick Launch\Launch Outlook Express.lnk"))

'''' DELETES ALL THE SHORTCUTS FOR OUTLOOK

For Each strDel In OeDel

If Fso.FileExists(strDel) Then

Act.Popup strDel, 5,"Delete", 0 + 32

'Fso.DeleteFile(strDel),True

End If

Next

'''' REMOVE THE OUTLOOK FOLDER

If Fso.FolderExists(OE_Prog) Then

Act.Popup "Delete the Outlook Express Folder" & vbCrLf & OE_Prog, 5,"Delete Folder", 0 + 32

'Fso.DeleteFolder(OE_Prog)

End If

'''' REMOVE IF IT PIN TO THE START MENU

On Error Resume Next

'FolderItem.InvokeVerb("Unp&in from Start Menu")

Act.Popup "Removing The Pin, " & FolderItem, 5,"Remove Pin item", 0 + 32

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...