We help IT Professionals succeed at work.

InstallShield profile specific install

Medium Priority
314 Views
Last Modified: 2010-08-05
Hello all,

I'm putting together an installshield package and want it to install so that all users will be able to use the application.  The issue I'm running into right now is, if i login as admin on the box and do the install, only someone who logs in as admin can see the shortcuts and the registry settings... the app doesn't even see the registry settings.  Anyone know how to address this?  I don't see any settings in InstallShield that address profiles, but this does seem to be profile specific.  This is a VB app installing on XP pro OS boxes.  
Comment
Watch Question

Commented:
Shortcuts for all users are in c:\documents and settings\All users.  Regardless of the profile, shortcuts placed here are applicable to all users.

Suppose you want Executives and sales and guests and accounting to have different access to your network.  You probably already have a group based network drive mapping scheme (batch file or .vbs).

pseudocode:
Case Sales
  if not exist "shortcut" create shortcut"
Case Executive
  if not exist "shortcut" create shortcut"
Case accounting
 if not exist shortcut create shortcut

Here's a sample script for mapping drives based on group membership

On Error Resume Next

Set objSysInfo = CreateObject("ADSystemInfo")
Set objNetwork = CreateObject("Wscript.Network")

strUserPath = "LDAP://" & objSysInfo.UserName
Set objUser = GetObject(strUserPath)

For Each strGroup in objUser.MemberOf
    strGroupPath = "LDAP://" & strGroup
    Set objGroup = GetObject(strGroupPath)
    strGroupName = objGroup.CN

    Select Case strGroupName
        Case "Finance Users"
            objNetwork.MapNetworkDrive "X:", "\\atl-fs-01\finance"
       
        Case "Human Resource Users"
            objNetwork.MapNetworkDrive "X:", "\\atl-fs-01\hr"

        Case "Manufacturing Users"
            objNetwork.MapNetworkDrive "X:", "\\atl-fs-01\manufacturing"

        Case "Shipping and Receiving Users"
            objNetwork.MapNetworkDrive "X:", "\\atl-fs-01\shipping"
    End Select
Next

and here is some code to create a shortcut
   Set oWS = WScript.CreateObject("WScript.Shell")
   
   sLinkFile = "C:\MyShortcut.LNK"
   
   Set oLink = oWS.CreateShortcut(sLinkFile)
   
   oLink.TargetPath = "C:\Program Files\MyApp\MyProgram.EXE"
   '      oLink.Arguments = ""
   '      oLink.Description = "MyProgram"
   '      oLink.HotKey = "ALT+CTRL+F"
   '      oLink.IconLocation = "C:\Program Files\MyApp\MyProgram.EXE, 2"
   '      oLink.WindowStyle = "1"
   '      oLink.WorkingDirectory = "C:\Program Files\MyApp"
   oLink.Save

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Use this most popular Packaging  Tool from Nullsoft.

Download :- http://ufpr.dl.sourceforge.net/sourceforge/nsis/nsis-2.15-setup.exe
Info          :- http://nsis.sourceforge.net/Main_Page

It extremely support Scripting & It's OPEN SOURCE. Enjoy

Author

Commented:
Thanks for the info... That was more than I was looking for, but that's ok.  Turns out the issue stemmed from my using a basic MSI project instead of the Installsheild MSI, which by default allows visibliity to all users after being installed by the network admin.

Thanks!
xrvman
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.