rafolb Posted January 31, 2010 Share Posted January 31, 2010 hi everyonehow can i set desktop shortcut during Unattended Windows 7 installthanks Link to comment Share on other sites More sharing options...
maxXPsoft Posted January 31, 2010 Share Posted January 31, 2010 C:\Users\YOURNAME\Desktop add the .lnk files hereI noticed the reg changed hereHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartPage2ProgramsCache key Link to comment Share on other sites More sharing options...
myselfidem Posted January 31, 2010 Share Posted January 31, 2010 (edited) @rafolbIf you want create a shortcut during Windows 7 unattended install, you can make a batch file or a vbs file.More help here:http://ss64.com/nt/shortcut.htmlAn exemple with a vbs file for notepad in French. Rename the file in vbs. NotepadShorcut.vbs-------------------------------------------------------------------------------------------' CreateShortCut.vbs - Create a Desktop Shortcut.' VBScript to create .lnk file' ----------------------------------------------------------' Option ExplicitDim objShell, objDesktop, objLinkDim strAppPath, strWorkDir, strIconPath' --------------------------------------------------' Here are the variables that to change if you are making a 'real' scriptstrWorkDir ="%HOMEDRIVE%%HOMEPATH%"strAppPath = "%windir%\system32\notepad.exe"strIconPath = "%windir%\system32\notepad.exe, 0"Set objShell = CreateObject("WScript.Shell")objDesktop = objShell.SpecialFolders("Desktop")Set objLink = objShell.CreateShortcut(objDesktop & "\notepad.lnk")' ---------------------------------------------------' Section which adds the shortcut's key propertiesobjLink.Description = "Créez et modifiez des fichiers texte en utilisant des fonctions de formatage de base."objLink.HotKey = "CTRL+ALT+X"objLink.IconLocation = strIconPath objLink.TargetPath = strAppPathobjLink.WindowStyle = 1objLink.WorkingDirectory = strWorkDirobjLink.SaveWScript.Quit' End of creating a desktop shortcut--------------------------------------------------------------------------I hope that will help you. Edited January 31, 2010 by myselfidem Link to comment Share on other sites More sharing options...
rafolb Posted January 31, 2010 Author Share Posted January 31, 2010 thanks alot 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