Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to make installer support all users


4 replies to this topic

HermioneJJ

HermioneJJ
  • Members
  • 27 posts

Posted 29 March 2006 - 14:05

I have created a basic msi project, it has some merge models, it has some registry keys under current user. but not support multi users, can you give me some good ideas? thank you smile.gif

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 30 March 2006 - 09:24

QUOTE
but not support multi users
I don't understand your question. Are you installing this package per-user or per-machine (ALLUSERS=1)?

HermioneJJ

HermioneJJ
  • Members
  • 27 posts

Posted 30 March 2006 - 09:59

I want to install per-machine

I used (ALLUSERS=1), when installing program, it will create a registry key under HKEY_CURRENT_USER\Software\MyProject\MyKey, and it has some registry information. It is ok for current user.

But if others user login it, the registry key does not exist under HKEY_CURRENT_USER, but another application needs to read registry information from there, so it could not support multi user to use it.

PS MyKey must be written to HKEY_CURRENT_USER, not HKEY_LOCAL_MACHINE. Could you give me some solution or direction about it?

Thank you so much smile.gif

Erin

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 30 March 2006 - 10:25

This article might help you:
How do I add HKEY_CURRENT_USER registry entries to all profiles?
http://www.msifaq.com/a/1011.htm

HermioneJJ

HermioneJJ
  • Members
  • 27 posts

Posted 03 April 2006 - 03:58

It's good solution, thank you very much smile.gif