Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2004
    Posts
    30

    Grin Administrator Only setting on a shortcut

    Hi there,

    I just upgraded to Setup Factory 8 and I am hoping someone here can save me some work.

    As a value added reseller I spend a fair amount writing installs for a particular piece of software. It has been around a while and has a minor problem in VISTA. There is a solution to this problem and I would like to incorporate in the install script.

    In order for this software to be fully functional, the shortcut used to call it must be set to "Administrator Only". I use the Shell.CreateShortcut action since both application and arguement (document) need to be specified. At this point, I would like to modify the create shortcut(s) to be Administrator Only.

    Any help will be appreciated. Thanks in advance.

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Why not create a manifest?


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  3. #3
    Join Date
    Oct 2004
    Posts
    30

    A manifest won't work

    Thanks for your suggestion. I figured out a great deal about how manifests work trying to implement one. Unfortunately, as near as I can tell, if an executable has internal manifest, it will ignore any external one. And yes the application I am installing does have an internal manifest.

    I am distributing this application under license. I cannot change the executable file. So I can't just fix or remove the internal manifest.

    I return to my original question. How do I, using Setup Factory code, set a shortcut to Run As Administrator under VISTA?

    At this point any and all help is significantly appreciated.

    Cecil

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    I'm not sure you can...
    What about using RunAs?


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    Join Date
    Jun 2005
    Posts
    470
    Not sure about shortcuts (what if the user doesn't use that shortcut to start the app?), but you can set the exe itself to run as admin.
    To do so, after the installation create under

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\

    a new string (REG_SZ) value with Name = path to your exe
    and value Data = RUNASADMIN
    This way app will always be started 'as admin'.

    Don't know if it will work if instead of path to your exe you put a path to a shortcut (.lnk file). Maybe in this case the registry entry should be created under HKCU not HKLM

    Indeed best would be to find why actually the app needs to be run as admin.
    If the reason is it's installed under \Program Files and writes to it's own install folder, you can give 'Full control' permissions for the 'Everyone' user on that folder (there is an example here), then the app will work without the need to run it as admin
    Last edited by pww; 11-13-2008 at 02:48 AM.

Similar Threads

  1. Windows Vista - Setting Shortcut Properties
    By GnaisH in forum MSI Factory 2.0 Discussion
    Replies: 1
    Last Post: 08-15-2007, 07:57 AM
  2. HOWTO: Create a Shortcut to an Internet URL
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-29-2002, 02:07 PM
  3. HOWTO: Uninstall a Shortcut Created with Actions
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 09:50 AM
  4. HOWTO: Create a Shortcut on the Desktop
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-19-2002, 02:56 PM
  5. DOS Shortcut Properties
    By ScottWirt in forum Setup Factory 6.0
    Replies: 0
    Last Post: 08-01-2002, 08:07 AM

Posting Permissions

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