access control to registry

Got a problem you cannot solve? Try here.
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

access control to registry

Post 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
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: access control to registry

Post 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?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: access control to registry

Post 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 :)
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: access control to registry

Post 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)
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: access control to registry

Post by nofarr »

hi,

this is the line :

Set Read Write Permissions on registry key "HKLM\SOFTWARE\RP" for BS_EngineUser
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: access control to registry

Post 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
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: access control to registry

Post 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
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: access control to registry

Post 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!
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: access control to registry

Post 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?
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: access control to registry

Post 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.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: access control to registry

Post 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
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: access control to registry

Post 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.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: access control to registry

Post 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 :\
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: access control to registry

Post 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?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: access control to registry

Post by nofarr »

hi :)

i attached snap shot of the registry and the MSICode

thanks a lot for your help
Attachments
Permssions.docx
(83.46 KiB) Downloaded 543 times
Post Reply