Re: install ie shortcuts

From: Luke Morey (windows.desktop_at_strangemonkey.com)
Date: 04/13/04

  • Next message: davidsanxter_at_vf.shawcable.net: "Little Sister Giving a Handjob"
    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


  • Next message: davidsanxter_at_vf.shawcable.net: "Little Sister Giving a Handjob"

    Relevant Pages

    • How to use scripting to secure your Win2K network--some examples
      ... Software Installation script: ... The purpose of this script is to ... Let's see how service packs and hotfixes are handled in the script: ... NT4 in the way the local system account accesses network resources. ...
      (NT-Bugtraq)
    • Re: [Info-Ingres] jdbc connection problem
      ... Initially you run a setup on a clean machine with the script recording ... I obtained mixed results where there was already an installation present ... @echo starting OpenROAD installation ... Subject: jdbc connection problem ...
      (comp.databases.ingres)
    • Installation of software, and security. . .
      ... installation in Windows and various package managers. ... A setup.exe program coded by some third party such as Real Networks ... A .msi Microsoft Installer package is unpacked, and a script coded by ...
      (Bugtraq)
    • pop-forum Ready for testing: new version of PC/Linux Poplog for testing (V15.6a)
      ... This change broke the install script included with Poplog v15.6, ... I have tried to make the new installation script equally happy with ... either of which which can be run to download and install everything ...
      (comp.lang.pop)
    • V880 boot problems
      ... Configuring /dev and /devices ... Starting Solaris installation program... ... Using finish script: scripts/Finish_script ... Executing JumpStart preinstall phase... ...
      (SunManagers)