|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
Why not create a manifest?
|
|
#3
|
|||
|
|||
|
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
|
||||
|
||||
|
I'm not sure you can...
What about using RunAs? |
|
#5
|
||||
|
||||
|
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. |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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.








Linear Mode

