Indigo Rose Software
  #1  
Old 10-23-2008
ceciltss ceciltss is offline
Forum Member
 
Join Date: Oct 2004
Posts: 18
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.
Reply With Quote
  #2  
Old 10-23-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Why not create a manifest?
__________________
Reply With Quote
  #3  
Old 11-12-2008
ceciltss ceciltss is offline
Forum Member
 
Join Date: Oct 2004
Posts: 18
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
Reply With Quote
  #4  
Old 11-12-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
I'm not sure you can...
What about using RunAs?
__________________
Reply With Quote
  #5  
Old 11-13-2008
pww's Avatar
pww pww is offline
Forum Member
 
Join Date: Jun 2005
Posts: 343
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 03:48 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Vista - Setting Shortcut Properties GnaisH MSI Factory 2.0 Discussion 1 08-15-2007 08:57 AM
HOWTO: Create a Shortcut to an Internet URL Support Setup Factory 6.0 Knowledge Base 0 10-29-2002 03:07 PM
HOWTO: Uninstall a Shortcut Created with Actions Support Setup Factory 6.0 Knowledge Base 0 09-25-2002 10:50 AM
HOWTO: Create a Shortcut on the Desktop Support Setup Factory 6.0 Knowledge Base 0 09-19-2002 03:56 PM
DOS Shortcut Properties ScottWirt Setup Factory 6.0 0 08-01-2002 09:07 AM


All times are GMT -6. The time now is 04:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software