Re: install ie shortcuts
From: Luke Morey (windows.desktop_at_strangemonkey.com)
Date: 04/13/04
- Previous message: tom: "install ie shortcuts"
- In reply to: tom: "install ie shortcuts"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Apr 2004 09:46:28 +1000
> Looking to use an ipf to install an ie shortcut on all users\desktop. This way whoever logs into the desktop gets the icon and the script doesnt fail because the account it was compiled on is the only account it will run on.
>
> In sms installer you need a variable for C:\documents and settings\all users\desktop to accomplish this but have no clue what it is. Then there is the reg piece. Here is rod trents example and he claims this is easy but doesnt account for the above. Any help on this would be great.
If you start a new package with the Installation Expert (View >
Installation Expert), and then switch back to the Script view (View >
Script Editor), towards the end you'll see a number of "Get Registry
Key" lines which set those variables for desktop directories in the
script, along with start menu directories, etc.
If you double-click on each script line, you'll also see where these
things in the registry. They live under
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders] But for All Users folders, they're in exactly the same place,
only under HKEY_LOCAL_MACHINE, and they tend to have "Common..." in
front of the name, e.g. Common Desktop
So anyhow, you just want to cut & paste the line that sets CDESKTOP
(common desktop) instead of DESKTOP. You end up with something like this:
Document Type: IPF
item: Global
Version=6.0
Flags=01000100
Languages=0 0 65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
LanguagesList=English
Default Language=2
Japanese Font Name=MS Gothic
Japanese Font Size=10
Start Gradient=0 0 255
End Gradient=0 0 0
Windows Flags=00010100000000000010110001010010
Message Font=MS Sans Serif
Font Size=8
Disk Filename=SETUP
Patch Flags=0000000000000001
Patch Threshold=85
Patch Memory=4000
FTP Cluster Size=20
end
item: Get Registry Key Value
Variable=CDESKTOPDIR
Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Value Name=Common Desktop
Flags=00000100
end
item: Edit INI File
Pathname=%CDESKTOPDIR%\anyurl.url
Settings=[Internetshortcut]
Settings=URL=http://www.anyurl.com/
Settings=
end
N.B. There's one location not in the default script that I use a lot -
APPDATADIR. e.g. You could use this to put a shortcut on the Quick
Launch bar.
Document Type: IPF
item: Global
Version=6.0
Flags=01000100
Languages=0 0 65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
LanguagesList=English
Default Language=2
Japanese Font Name=MS Gothic
Japanese Font Size=10
Start Gradient=0 0 255
End Gradient=0 0 0
Windows Flags=00010100000000000010110001010010
Message Font=MS Sans Serif
Font Size=8
Disk Filename=SETUP
Patch Flags=0000000000000001
Patch Threshold=85
Patch Memory=4000
FTP Cluster Size=20
end
item: Get Registry Key Value
Variable=APPDATADIR
Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Value Name=AppData
Flags=00000010
end
item: Edit INI File
Pathname=%APPDATADIR%\Microsoft\Internet Explorer\Quick Launch\anyurl.url
Settings=[Internetshortcut]
Settings=URL=http://www.anyurl.com/
Settings=
end
Hope this all helps...
Luke Morey
- Previous message: tom: "install ie shortcuts"
- In reply to: tom: "install ie shortcuts"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|