SOOPAFLY Posted October 5, 2003 Share Posted October 5, 2003 1.my attempt to install a theme by default has failed for some reason although i think i did all the necessary stuff [shell] DefaultStartPanelOff = No DefaultThemesOff = No CustomDefaultThemeFile = "%WinDir%\Resources\Themes\Watercolor Ergonomic.theme"and put the theme in $OEM$\$$\Resources\Themes\2.I need to execute a script upon system reboot after the installation(but it doesn't executes for some reason)so i added the following reg entery to my regtweaks and coppied the script to systemdrive[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]"shortcuts"="%SYSTEMDRIVE%\shortcuts.vbs"---------------------------script_code------------------------------------' Some move,create & delete operations' This script will delete itself upon complition dim fso,demofile,oShellLink,demofolderSet fso = CreateObject("Scripting.FileSystemObject")set WshShell = WScript.CreateObject("WScript.Shell")WScript.Sleep 60000Set oShellLink = WshShell.CreateShortcut(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Start Menu\cmd.lnk"))oShellLink.TargetPath = "cmd.exe"oShellLink.SaveSet oShellLink=NothingSet oShellLink = WshShell.CreateShortcut(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Start Menu\Text_editor.lnk"))oShellLink.TargetPath = "notepad.exe"oShellLink.SaveSet oShellLink=NothingSet oShellLink = WshShell.CreateShortcut(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Start Menu\RegEdit.lnk"))oShellLink.TargetPath = "regedit.exe"oShellLink.SaveSet demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%ALLUSERSPROFILE%\Start Menu\programs\Ahead Nero\Nero - Burning Rom.lnk"))demofile.Move (WshShell.ExpandEnvironmentStrings("%APPDATA%\Microsoft\Internet Explorer\Quick Launch\"))Set demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Desktop\RegCleaner.lnk"))demofile.Move (WshShell.ExpandEnvironmentStrings("%APPDATA%\Microsoft\Internet Explorer\Quick Launch\"))Set demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Desktop\FlashGet.lnk"))demofile.Move (WshShell.ExpandEnvironmentStrings("%APPDATA%\Microsoft\Internet Explorer\Quick Launch\"))Set demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Start Menu\Programs\Windows Media Player.lnk"))demofile.DeleteSet demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\Start Menu\Programs\Internet Explorer.lnk"))demofile.DeleteSet demofolder = fso.GetFolder(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\My Documents\My Music\"))Set demofolder.Attributes = 0demofolder.DeleteSet demofolder = fso.Getfolder(WshShell.ExpandEnvironmentStrings("%USERPROFILE%\My Documents\My Pictures\"))Set demofolder.Attributes = 0demofolder.DeleteSet demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%appdata%\IconCache.db"))demofile.DeleteSet demofile = fso.GetFile(WshShell.ExpandEnvironmentStrings("%systemdrive%\shortcuts.vbs"))demofile.DeleteWScript.Quit (ohh and the script is errorless it's just an execution prob) Link to comment Share on other sites More sharing options...
xper Posted October 5, 2003 Share Posted October 5, 2003 11. Please refrain from using CAPITALIZATIONS in the topic title or when participating in threads because they will not attract attention - instead it will annoy many of MSFN's members.Read forum rulesThank you Link to comment Share on other sites More sharing options...
SOOPAFLY Posted October 5, 2003 Author Share Posted October 5, 2003 WTF is this maybe you should consider posting something more useful Link to comment Share on other sites More sharing options...
DaveXP Posted October 5, 2003 Share Posted October 5, 2003 WTF is this maybe you should consider posting something more usefulerm...he owns this forum dont upset him and i think as he owns it he can post what he likes Link to comment Share on other sites More sharing options...
bigred Posted October 5, 2003 Share Posted October 5, 2003 Wow...sounding like a bunch of 13 year olds in here... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now