• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 296
  • Last Modified:

InstallShield profile specific install

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.  
0
xrvman
Asked:
xrvman
1 Solution
 
rairdonmCommented:
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
0
 
sunilcomputerCommented:
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
0
 
xrvmanAuthor 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
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now