Jump to content

Desktop Shortcut


Recommended Posts

Hi All,

I have my own business of computer repairs and services.

I would like to create an unattended disk, though I have learnt the major process. There's one thing which I would like to have. I would like to have a desktop shortcut to my website, so that it gets placed on the desktop when we install windows.

Any help in this regard would be appreciated.

Thanks

Link to comment
Share on other sites


That's strange... did you put the $OEM$ folder in the root of the CD (next to I386/AMD64)?

You can also try with a batch file and the COPY/XCOPY command, or make an SFX file to execute through a batch file.

See here:

http://www.computerhope.com/xcopyhlp.htm

http://www.computerhope.com/copyhlp.htm

Edited by Sp0iLedBrAt
Link to comment
Share on other sites

Try this small inf. I personally run it via GUIRunONCE but you can also run at T13

;httplink.inf
[Version]
Signature="$Windows NT$"

[DefaultInstall]
ProfileItems=URL01

[URL01]
Name ="My SiteName2",0x00000008,25 ; All user's desktop
Cmdline =16422,Internet Explorer,iexplore.exe http://www.msfn.org/board/desktop-shortcut-t143129.html
InfoTip ="Add your own info tip here"
IconPath = 11,,url.dll

Link to comment
Share on other sites

That's strange... did you put the $OEM$ folder in the root of the CD (next to I386/AMD64)?

You can also try with a batch file and the COPY/XCOPY command, or make an SFX file to execute through a batch file.

See here:

http://www.computerhope.com/xcopyhlp.htm

http://www.computerhope.com/copyhlp.htm

I would like to go with OEM Folder, and do not find a reason why its not getting copied, because I have other OEM info and bmp as well in there.

OemPreinstall=Yes is there in winnt.sif

what else could be the reason?

And by the way Geej, how do I run this inf, if you could tell me step by step? Bu I was more interested in OEM Folders to run.

Link to comment
Share on other sites

Hi All,

I have my own business of computer repairs and services.

I would like to create an unattended disk, though I have learnt the major process. There's one thing which I would like to have. I would like to have a desktop shortcut to my website, so that it gets placed on the desktop when we install windows.

Any help in this regard would be appreciated.

Thanks

You could use a VBS script to make the shortcut on the desktop using the RunOnceEx Method

Save As MyUrl.vbs


Dim Act :Set Act = CreateObject("Wscript.Shell")
Dim Obj :Set Obj = Act.CreateShortcut(Act.SpecialFolders("Desktop") & "\Open My Web Site.lnk")
'-> Place Your Web Site Path Here
Obj.TargetPath = "http://www.msfn.org/"
'-> Icon For The Shortcut
Obj.IconLocation = "shell32.dll, 17"
'-> Details For Shoetcut
Obj.Description = "Some Text Details Here"
'-> Hot Key To Open Shortcut
Obj.Hotkey = "CTRL+SHIFT+W"
Obj.Save
'-> Self Delete The VBS File, Uncomment To Make Active
' CreateObject("Scripting.FileSystemObject").DeleteFile(WScript.ScriptFullName),True

Example RunOnceEx Method


REG ADD %KEY%\055 /VE /D "Add Shop URL" /f
REG ADD %KEY%\055 /V 1 /D "%Systemdrive%\Install\MyUrl.vbs" /f

Link to comment
Share on other sites

And by the way Geej, how do I run this inf, if you could tell me step by step? Bu I was more interested in OEM Folders to run.

Create a cmd file (say URLSC.cmd) and put in $oem$\$1\GUIRunOnce folder with the following code:

rundll32.exe advpack.dll,LaunchINFSectionEx %systemdrive%\GUIRunOnce\httplink.inf,,,4

Put httplink.inf in $oem$\$1\GUIRunOnce folder as well.

In Winnt.sif,

[GuiRunOnce]
%systemdrive%\GUIRunOnce\URLSC.cmd

--Note: a simpler method would be wrapping this inf with winrar and run at T13.

But I won't want to go into detail of making it as I assume you know how to do it.

Edited by Geej
Link to comment
Share on other sites

I add the stuff in winnt.sif [GuiRunonce].

The files are added by way of dosnet.inf and txtsetup.sif. You put them in a known position (i use the INF folder. You then run the files by way of eg "%Systemroot%\INF\fixmach.inf" etc.

One batch corrects registry. The second makes desktop icons. For this, i use the rare but findable 'shortcut.exe' from NT4 sp2 kit.

With the advent of windows vista and other virii, you could use something like 'conset.exe' (another freeware) to drag registry into the current environment. You need to change to the directory where the shortcut is to be set to do this.

Rexx is to be investigated...

Link to comment
Share on other sites

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