Page 1 of 2
access control to registry
Posted: Mon Aug 15, 2011 10:01 am
by nofarr
hi,
i'm using IA 11
i'm trying to give read \write permmisions to <user name> on HKLM\SOFTWARE\RP
i add the line
set read write Permissions on registry key "HKLM\SOFTWARE\RP" for <user name>
but after running the msi i don't see that this permissions apear in the server registry
did i miss something?
thanks

Nofar
Re: access control to registry
Posted: Mon Aug 15, 2011 11:51 am
by giaviv
Dear Nofar,
Access to the registry is done differently on 64 and 32 bit machines and.
Which OS are you running, and have you used the Set 64 Bit Mode command?
Re: access control to registry
Posted: Tue Aug 16, 2011 6:53 am
by nofarr
hi,
i'm using OS 64bit.
i configured it to: set 64bit.
and still i don't see the permissions after running the installer.
thanks

Re: access control to registry
Posted: Tue Aug 16, 2011 12:59 pm
by giaviv
Could you please paste here the registry path you are trying to change the permissions for? (you can also just paste the actual command)
Re: access control to registry
Posted: Thu Aug 18, 2011 1:48 am
by nofarr
hi,
this is the line :
Set Read Write Permissions on registry key "HKLM\SOFTWARE\RP" for BS_EngineUser
Re: access control to registry
Posted: Thu Aug 18, 2011 9:16 am
by giaviv
Hi,
Here is an example of a working script that writes to the registry and sets its permissions on a 64 bit machine:
Code: Select all
~InstallAware Clipboard Data~
~Set Access Control~
~{C60FAEA1-17B1-4F6A-BD42-4468C8F78CE8}~
~HKLM\SOFTWARE\RegTest~
~FALSE~
~FALSE~
~TRUE~
~FALSE~
~CREATOR OWNER~
~TRUE~
~TRUE~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~TRUE~
~FALSE~
~FALSE~
~Write Registry~
~{4A703C94-218E-4315-8379-576721958330}~
~0~
~2~
~SOFTWARE\RegTest~
~TestValue~
~TestData~
~TRUE~
~FALSE~
~Set 64 Bit Mode~
~{8BBAEE51-19DB-4224-81D2-446E780E1127}~
~TRUE~
~FALSE~
~FALSE~
~Set Variable~
~{333F9581-ADDE-47BA-AE45-6B2DC3CBD927}~
~NATIVE_ENGINE$MYAH$MYAH$FALSE~
~TRUE~
Remember:
1) make sure you are on the correct 64 bit mode
2) InstallAware sets special permissions - so make sure you do not confuse that for no permissions at all
Re: access control to registry
Posted: Thu Aug 18, 2011 10:30 am
by nofarr
hi ,
sorry but i didn't understand the script
i already added the key
why i can't use the MSIcode option "Set Access Control"?
thanks
Re: access control to registry
Posted: Thu Aug 18, 2011 12:29 pm
by giaviv
You can, this just illustrates a case in which the key hasn't been created. Simply remove the Write Registry command form my script then!
Re: access control to registry
Posted: Sun Aug 21, 2011 12:09 am
by nofarr
yes, i understood that i can remove the part to write to registry.
i didn't understand all the TRUE\FALSE parameters
what do they mean?
Re: access control to registry
Posted: Sun Aug 21, 2011 2:26 pm
by giaviv
This is just how MSIcode looks when its copied - copy the script I attach, and paste it directly in your MSIcode script and it will turn into normal MSIcode commands.
Re: access control to registry
Posted: Mon Aug 22, 2011 1:14 am
by nofarr
ah ok i didn't know that i can add the script.
i added it to my MSIcode but it's still doesn't work.
why did you used the authenticatd users?
i want to give permissions to specific user .
does it matter where i'm adding the script in the MSICode?
thanks
Re: access control to registry
Posted: Mon Aug 22, 2011 5:18 am
by giaviv
Hi,
This is just an example, so no specific reason why I chose that.
Where in the MSIcode did you place the code? Yes, it does matter where it is.
Re: access control to registry
Posted: Mon Aug 22, 2011 5:48 am
by nofarr
ah ok
i tried in some places because it didn't work
i tried to put it after the install files
i tried to put it in the end of the MSICode
i tried to put it the same place the design put for me
maybe i'm doing some thing wrong but i don't understand what
sorry :\
Re: access control to registry
Posted: Mon Aug 22, 2011 2:20 pm
by giaviv
Are you sure that the registry keys you are trying to set the access control for exist?
Could you attach a screenshot of the permissions dialog of the key you are trying to change?
Re: access control to registry
Posted: Tue Aug 23, 2011 12:28 am
by nofarr
hi
i attached snap shot of the registry and the MSICode
thanks a lot for your help