hello, how i can make package with registry for allusers

Got a problem you cannot solve? Try here.
maksim.ivannikov
Posts: 7
Joined: Thu Nov 25, 2010 2:48 pm

hello, how i can make package with registry for allusers

Postby maksim.ivannikov » Thu Nov 25, 2010 3:05 pm

please help me, how i can the create msi package for all users in registry?
instruction step by step?
may be you have sample?

with best regards...

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: hello, how i can make package with registry for allusers

Postby mills » Fri Nov 26, 2010 6:02 pm

All you need to do is make sure the pre-defined variable ALLUSERS is set to TRUE (it is by default) and InstallAware will take care of it for you.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

maksim.ivannikov
Posts: 7
Joined: Thu Nov 25, 2010 2:48 pm

Re: hello, how i can make package with registry for allusers

Postby maksim.ivannikov » Sat Nov 27, 2010 4:35 am

mills wrote:All you need to do is make sure the pre-defined variable ALLUSERS is set to TRUE (it is by default) and InstallAware will take care of it for you.


i did it, it's not work....


I need to add record in registry HKEY_CURENT_USER \ Software \ MyAPP \ - IA Studio R2. I did it, after installing with option (all users), this record have user which did the installation if run my application from another user this record is not there. I write in the record in registry HKEY_USER_DEFAULT \ Software \ MyAPP\. But in Windows 7 don't find this record. In Win XP I found it in HKEY_LOCAL_MACHINE.
Please explain why need a key HKEY_USER_DEFAULT, how to use it? And how can I make an entry in the registry (HKEY_CURENT_USER) for all users?

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: hello, how i can make package with registry for allusers

Postby mills » Tue Nov 30, 2010 1:27 pm

Can you post the InstallAware clipboard data or a sample project?
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

maksim.ivannikov
Posts: 7
Joined: Thu Nov 25, 2010 2:48 pm

Re: hello, how i can make package with registry for allusers

Postby maksim.ivannikov » Tue Nov 30, 2010 4:01 pm

mills wrote:Can you post the InstallAware clipboard data or a sample project?



Thank you for your answer.
In an attachment, my test project and a screenshot of administrators and users.
Please write what am I doing wrong?
Thank you.
Attachments
IA9r2.zip
(2.11 MiB) Downloaded 367 times

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: hello, how i can make package with registry for allusers

Postby mills » Wed Dec 01, 2010 1:59 pm

So, it looks like the issue is:

Registry writes to Root HKEY_USER_DEFAULT are appearing in HKEY_LOCAL_MACHINE (for All Users) and HKEY_CURRENT_USER (for only me).

Is that right?

Here's the behavior I recorded:

Installing for All Users
------------------------
XP:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D618AAD3001751644800DDAE47FABB77
HKEY_USERS\S-1-5-21-1844237615-1214440339-1801674531-1003\Software\My_Sample_Project_for_Win32_HKCU
HKEY_LOCAL_MACHINE\SOFTWARE\My_Sample_Project_for_Win32_HKUD

Win 7:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D618AAD3001751644800DDAE47FABB77
HKEY_LOCAL_MACHINE\SOFTWARE\My_Sample_Project_for_Win32_HKUD

Installing for Only Me
----------------------
XP:
HKEY_CURRENT_USER\Software\My_Sample_Project_for_Win32_HKUD
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-1844237615-1214440339-1801674531-1003\Components\D618AAD3001751644800DDAE47FABB77
HKEY_USERS\S-1-5-21-1844237615-1214440339-1801674531-1003\Software\My_Sample_Project_for_Win32_HKUD

Win 7:
HKEY_CURRENT_USER\Software\My_Sample_Project_for_Win32_HKUD
HKEY_USERS\S-1-5-21-2245668706-338162693-694846681-1000\Software\My_Sample_Project_for_Win32_HKUD
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

maksim.ivannikov
Posts: 7
Joined: Thu Nov 25, 2010 2:48 pm

Re: hello, how i can make package with registry for allusers

Postby maksim.ivannikov » Wed Dec 01, 2010 3:22 pm

mills wrote:So, it looks like the issue is:

Registry writes to Root HKEY_USER_DEFAULT are appearing in HKEY_LOCAL_MACHINE (for All Users) and HKEY_CURRENT_USER (for only me).

Is that right?

Here's the behavior I recorded:

Installing for All Users
------------------------
XP:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D618AAD3001751644800DDAE47FABB77
HKEY_USERS\S-1-5-21-1844237615-1214440339-1801674531-1003\Software\My_Sample_Project_for_Win32_HKCU
HKEY_LOCAL_MACHINE\SOFTWARE\My_Sample_Project_for_Win32_HKUD

Win 7:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\D618AAD3001751644800DDAE47FABB77
HKEY_LOCAL_MACHINE\SOFTWARE\My_Sample_Project_for_Win32_HKUD

Installing for Only Me
----------------------
XP:
HKEY_CURRENT_USER\Software\My_Sample_Project_for_Win32_HKUD
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-1844237615-1214440339-1801674531-1003\Components\D618AAD3001751644800DDAE47FABB77
HKEY_USERS\S-1-5-21-1844237615-1214440339-1801674531-1003\Software\My_Sample_Project_for_Win32_HKUD

Win 7:
HKEY_CURRENT_USER\Software\My_Sample_Project_for_Win32_HKUD
HKEY_USERS\S-1-5-21-2245668706-338162693-694846681-1000\Software\My_Sample_Project_for_Win32_HKUD


i have another data

Installing for All Users
-------------------------------------------
Win XP
HKEY_CURRENT_USER\Software\My_Sample_Project_for_Win32_HKCU
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\56BA75FE837200B4993B1561C03CDD71
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\80C6EA98ED9030E4AAEEEECEE5328F17
HKEY_LOCAL_MACHINE\SOFTWARE\My_Sample_Project_for_Win32_HKUD
HKEY_USERS\S-1-5-21-2316345038-3226950306-2666773314-1008\Software\My_Sample_Project_for_Win32_HKCU

Win7 (x64)
HKEY_CURRENT_USER\Software\My_Sample_Project_for_Win32_HKCU
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\56BA75FE837200B4993B1561C03CDD71
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\80C6EA98ED9030E4AAEEEECEE5328F17
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\My_Sample_Project_for_Win32_HKUD
HKEY_USERS\S-1-5-21-2963652725-2092158414-127373890-1173\Software\My_Sample_Project_for_Win32_HKCU


Installing for Only Me -
-------------------------------------------
Win XP
HKEY_CURRENT_USER\Software\My_Sample_Project_for_Win32_HKUD
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-2316345038-3226950306-2666773314-1008\Components\56BA75FE837200B4993B1561C03CDD71
HKEY_USERS\S-1-5-21-2316345038-3226950306-2666773314-1008\Software\My_Sample_Project_for_Win32_HKCU
HKEY_USERS\S-1-5-21-2316345038-3226950306-2666773314-1008\Software\My_Sample_Project_for_Win32_HKUD

Win7 (x64)
HKEY_CURRENT_USER\Software\My_Sample_Project_for_Win32_HKCU
HKEY_CURRENT_USER\Software\My_Sample_Project_for_Win32_HKUD
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-2963652725-2092158414-127373890-1173\Components\56BA75FE837200B4993B1561C03CDD71
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-21-2963652725-2092158414-127373890-1173\Components\80C6EA98ED9030E4AAEEEECEE5328F17
HKEY_USERS\S-1-5-21-2963652725-2092158414-127373890-1173\Software\My_Sample_Project_for_Win32_HKCU
HKEY_USERS\S-1-5-21-2963652725-2092158414-127373890-1173\Software\My_Sample_Project_for_Win32_HKUD

and values for windows 7
Registry writes to Root HKEY_USER_DEFAULT are appearing in :

for All Users
-----------------------
Win 7 (64)
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\My_Sample_Project_for_Win32_HKUD

Win 7 (32)
HKEY_LOCAL_MACHINE\SOFTWARE\My_Sample_Project_for_Win32_HKUD


for only me
------------------------
Win 7 (64)
HKEY_CURRENT_USER\Software\My_Sample_Project_for_Win32_HKUD
HKEY_USERS\S-1-5-21-2963652725-2092158414-127373890-1173\Software\My_Sample_Project_for_Win32_HKUD

Win 7 (32)
HKEY_CURRENT_USER\Software\My_Sample_Project_for_Win32_HKUD
HKEY_USERS\S-1-5-21-2963652725-2092158414-127373890-1173\Software\My_Sample_Project_for_Win32_HKUD

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: hello, how i can make package with registry for allusers

Postby mills » Thu Dec 02, 2010 3:20 pm

I apologize it's not clear exactly what the problem is.
Can we get a clear definition of what you expect to happen?
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

maksim.ivannikov
Posts: 7
Joined: Thu Nov 25, 2010 2:48 pm

Re: hello, how i can make package with registry for allusers

Postby maksim.ivannikov » Thu Dec 02, 2010 3:49 pm

mills wrote:I apologize it's not clear exactly what the problem is.
Can we get a clear definition of what you expect to happen?


i need install my application for user - Administrator (for all users) and write key in registry HKEY_USER_DEFAULT values, i need this key for another users in registry HKEY_CURRENT_USER.

run my test project for another user, not administrator, and you see.

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: hello, how i can make package with registry for allusers

Postby mills » Thu Dec 02, 2010 4:55 pm

So, does it seem like the HKCU entries are appearing correctly, but not the HKUD?

I forgot to mention above, I was only searching for "Data_My_Sample_Project_for_Win32_HKUD" to see where it was being recorded.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

maksim.ivannikov
Posts: 7
Joined: Thu Nov 25, 2010 2:48 pm

Re: hello, how i can make package with registry for allusers

Postby maksim.ivannikov » Fri Dec 03, 2010 3:07 pm

mills wrote:So, does it seem like the HKCU entries are appearing correctly, but not the HKUD?

I forgot to mention above, I was only searching for "Data_My_Sample_Project_for_Win32_HKUD" to see where it was being recorded.


Hello,
User which do install application have key in registry HKCU
If user istall "for only me" then HKUD write is true in HKEY_CURRENT_USER
If user install "for All Users" then HKUD write is not true, write in HKEY_LOCAL_MACHINE.

Please help me, make key in registry HKEY_CURRENT_USER for all users
Is it possible?
Need an example please.
P.S.
Thanks for your support Andy Mills! :)

maksim.ivannikov
Posts: 7
Joined: Thu Nov 25, 2010 2:48 pm

it's possible? make install for all users?

Postby maksim.ivannikov » Sun Dec 12, 2010 1:33 pm

Are you can give me sample, a litеle project which make install "for all users"?

We bought your product but don't use, because use this simple function it's not possibly....

Where i wrong?

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: hello, how i can make package with registry for allusers

Postby mills » Tue Dec 14, 2010 4:19 pm

Please consider this:

http://support.microsoft.com/kb/256986

HKEY_CURRENT_USER - Contains the root of the configuration information for the user who is currently logged on.

HKEY_LOCAL_MACHINE - Contains configuration information particular to the computer (for any user).

To record in registry for All Users, you should use HKEY_LOCAL_MACHINE and use HKEY_CURRENT_USER for "only me".
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 80 guests