+ Reply to Thread
Results 1 to 6 of 6

Thread: Place shortcuts in common (or not) based on "feature"

  1. #1

    Default Place shortcuts in common (or not) based on "feature"

    I'd like the user to be able to select if others using the same computer see the shortcuts that are added, and access the data.

    In other words:

    If "Enable access for all users on this computer" is selected after the welcome screen, I want %MYDATADIR% to default to %_CSIDL_COMMON_DOCUMENTS%\[PRODUCTNAME]\Data\, otherwise it should be %_CSIDL_PERSONAL%\[PRODUCTNAME]\Data\.

    If "Enable access for all users on this computer" is selected, one set of shortcuts (with "common" set to yes) are made, otherwise, another set (with "common" set to no) is.


    What I have so far is:

    ! Important: Initialize default install folder and program group variables
    Set Variable %_SB_DATADIR% to "%_CSIDL_COMMON_DOCUMENTS%\[PRODUCTNAME]\Data\"
    ! Need to change this in the Loop Wizard if user decides not to share data

    [ Create Shortcuts ]
    ::Create Shortcut "[PRODUCTNAME] Main Module (All Users)" to "Programs\[PRODUCTNAME]\[PRODUCTNAME] Main Module (All Users)" (Share)
    ::Create Shortcut "[PRODUCTNAME] Tray Monitor (All Users)" to "Programs\[PRODUCTNAME]\[PRODUCTNAME] Tray Monitor (All Users)" (Share)
    ::Create Program Folder "[PRODUCTNAME]" to "Programs\[PRODUCTNAME]" (Always Install) <- this is set to "common" even though it contains shortcuts for the user??
    ::Create Shortcut "[PRODUCTNAME] Main Module" to "Programs\[PRODUCTNAME]\[PRODUCTNAME] Main Module" (Always Install) <- want this to be "Not (Share)"
    ::Create Shortcut "[PRODUCTNAME] Tray Monitor Module" to "Programs\[PRODUCTNAME]\[PRODUCTNAME] Tray Monitor Module" (Always Install) <- want this to be "Not (Share)"
    ::Create Shortcut "[PRODUCTNAME] Tray Module" to "Startup\[PRODUCTNAME] Tray Module" (Startup)
    ::Create Shortcut "[PRODUCTNAME]" to "QuickLaunch\[PRODUCTNAME]" (Quick Launch Shortcut)
    ::Create Shortcut "[PRODUCTNAME]" to "Desktop\[PRODUCTNAME]" (Desktop Shortcut)

  2. #2

    Default Re: Place shortcuts in common (or not) based on "feature"

    Andrea

    Sales and Support, Lindersoft
    www.lindersoft.com
    1.954.252.3910

    "point. click. ship" - that's SetupBuilder 6
    Create Windows Vista ready installations in minutes

    -- Official Comodo Code Signing and SSL Certificate Partner

  3. #3

    Default Re: Place shortcuts in common (or not) based on "feature"

    Unfortunately there seems to be no way to add a second set of shortcuts under Programs (for All Users).

    I want the exact same folder hierarchy, placed under the common Programs folder, as I have under the user's Programs folder. Looks like the only way to get this is the SB_ALLUSERSFLAG.

    BTW, there are some bugs in the Shortcut visualizer. When I tried to copy a shortcut from the one folder to the other, a folder was created instead of a shortcut.

    Also, it would be nice to not have to use the mouse so much. I'm used to being able to CTRL+C and CTRL+V to copy things...

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Place shortcuts in common (or not) based on "feature"

    You know that the "Current User" method does not work under Vista or Windows Server 2008?

    Friedrich

  5. #5

    Default Re: Place shortcuts in common (or not) based on "feature"

    I'm aware of UAC and the constraints it applies, or at least I think I know what's going on.

    I was under the impression that this was only an issue where an adminstrator was installing software for someone else... in other words if a user does not have admin rights there could be a problem...

    I'm currently testing the results of using the flag from http://www.lindersoft.com/forums/showthread.php?t=2066 .

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Place shortcuts in common (or not) based on "feature"

    Under the new Windows operation systems, administrator rights and administrator execution level privileges are different things. Your installer needs administrator execution privileges on Vista/"Longhorn". Per User installation is not available if you have that level of privilege.

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •