Click to See Complete Forum and Search --> : [RESOLVED] Inno Setup changing reg entry for all users
Cbyte
Jun 2nd, 2007, 08:39 PM
Hi, I'm wanting to get inno to set a registry value in HKCU on vista across all users. With an Admin account of course i read you can change any users registry via 'HKEY_USERS\user-id key', I just need inno to detect or locate all users so we can apply this reg setting across all (all will already have the actual key in place, we just changing the value)
Any Ideas App Deployment Masters?
randem
Jun 3rd, 2007, 02:32 PM
I am not sure I understand what you want. They usual thing to do is to execute with admin privileges via a Manifest file for VB6 programs. I believe if you want to do it the way you want and a new user is added they will not be able to use the app.
Cbyte
Jun 3rd, 2007, 05:52 PM
Hey randem,
I'll try explain better. When installing our security app, there is a default setting/key already set by windows for all users under (HKEY_USERS\user-id key) For our app to function 100% we need to modify this key value across all users and were hoping to do this at install time (guy installing will have admin rights). So after install all users that use our program will have it functioning 100%... hope this makes sense. I was hoping you would reply as well seeing that your the installation specialist around here :)
randem
Jun 3rd, 2007, 07:45 PM
Then if you already know the key to update what is the issue?
This is what a registry entry looks like in Inno Setup
[Registry]
Root: HKCU; Subkey: Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: {app}\**********.exe; ValueData: RUNASADMIN
You can also use ISTool (http://www.jrsoftware.org/is3rdparty.php) to help setup registry entries.
Cbyte
Jun 3rd, 2007, 10:31 PM
Hey, marking this as resolved. Instead of just writing to the current user I was trying to write to all users found on the PC... that was the issue. So we have moved this into our actual application instead of the installer... thanks anyway.
Cbyte
Jun 3rd, 2007, 10:35 PM
thanks for your help, will be checking the site out.
randem
Jun 3rd, 2007, 11:10 PM
Well, If you have the root key for all users you can do it from the installer also.
Just use HKU instead of HKCU
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.