Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Installer in Setup
 

Installer in Setup

Hello,

In my setup project contains a installer class and int the Install method create a key in Microsoft.Win32.Registry.LocalMachine.CreateSubKey, but this code is not working in vista, it works fine in Xp

How can implement this
Thanks

Vineeth
Vineeth Paliath  Wednesday, August 26, 2009 8:06 PM

Hi Vineeth,

From my experience, the issue is mostly related to the permission of the user. In vista, we need to run the install package with elevated administrator permissions. In other words, the user has to have administrator permissions.

This link shows how to Marking the Privileges for an MSI:
http://msdn.microsoft.com/en-us/magazine/cc163486.aspx#S6.

I suggest not modify the registry keys in a custom action, we can directly add registry keys in Registry View of the Setup Project. If a registry key is added depending on a condition, we can set the condition property of the registry key.

Best regards,

Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Friday, August 28, 2009 11:23 AM

Hi,

We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Thursday, September 03, 2009 8:35 AM
Hello,

May i know how can set the permission in installer package?

Thanks
Vineeth
Vineeth Paliath  Friday, September 04, 2009 4:06 AM
Why don't you use the Registry IDE to create your registry entries?

There's nothing built-in to set the permision in installprojects, even though I'm not sure what permission you're referring to. If you mean permission to right to a registry key, then the answer is that you need to be running as administrator if the key is restricted.
Phil Wilson
PhilWilson  Tuesday, September 08, 2009 11:28 PM

You can use google to search for other answers

Custom Search

More Threads

• Heyâ€?where is the DownloadFileGroup path?
• can clients access remote database (SQL)....?
• Install to startup!
• Install Software remotely
• Could Not Register Type Library error
• Where exactly are the apps installed
• Error installing on some clients
• Windows installer creation
• ClickOnce application deployment with username/password
• how to know a version from a server, not from the client