PDA

View Full Version : Setting Registry key Permissions in InstallScript 2014



jatkin
06-25-2014, 08:51 AM
Hi all,

I have an InstallScript project under InstallShield 2014

During the installation, I wish to create a key : HKEY_LOCAL_MACHINE/Software/MYAPPNAME
I wish to make this key, and subsequent sub-keys accessible read/write to all users.
How can I do this?

Your help is gratefully appreciated.

Many thanks,

James

MarkusLatz
06-25-2014, 05:41 PM
search in the InstallShield Help Library for "SetObjectPermissions"

jatkin
06-26-2014, 02:23 AM
This looks like exactly what I am after :-)

Can this be used to assign 'Full Access' - I can't see this as an option?

Thanks...

James

MarkusLatz
06-26-2014, 08:39 AM
Never tried myself but STANDARD_RIGHTS_ALL or GENERIC_ALL should do this.

jatkin
06-26-2014, 09:19 AM
I have just checked this out and it looks like the following combination seems to work:

STANDARD_RIGHTS_ALL | GENERIC_ALL

Thanks again for the help,

James