473,698 Members | 2,632 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deploying to Vista - won't write to registry

Hi,

I have developed a VB application in VS2005 and deployed it sucessfully to
XP using an MSI file built with a standard VS setup project. The MSI creates
some keys under HKEY_LOCAL_MACH INE\Software. However when deploying to Vista,
although the setup completes without error, the registry entries are not
created. This occurs even when run by an administrator or when running the
setup.exe using "Run As Administrator".

I'm very new to Vista so I'm hoping there's a simple and very obvious
solution. Any ideas, anyone?

Pete
Nov 16 '07 #1
2 3179
Add a manifest to the assembly. Here's an article on the subject:

http://blogs.msdn.com/shawnfa/archiv...06/568563.aspx

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Pete" <Pe**@discussio ns.microsoft.co mwrote in message
news:CF******** *************** ***********@mic rosoft.com...
Hi,

I have developed a VB application in VS2005 and deployed it sucessfully to
XP using an MSI file built with a standard VS setup project. The MSI
creates
some keys under HKEY_LOCAL_MACH INE\Software. However when deploying to
Vista,
although the setup completes without error, the registry entries are not
created. This occurs even when run by an administrator or when running the
setup.exe using "Run As Administrator".

I'm very new to Vista so I'm hoping there's a simple and very obvious
solution. Any ideas, anyone?

Pete

Nov 16 '07 #2
Thanks Kevin for your reply. I'm starting to think that installation is just
the start of my problems and that the solution really needs to be re-designed
for Vista. I think UAC, although probably a good thing, is going to force
developers to rethink the way applications access the registry and file
system. That's probably the idea!

Thanks,

Pete

"Kevin Spencer" wrote:
Add a manifest to the assembly. Here's an article on the subject:

http://blogs.msdn.com/shawnfa/archiv...06/568563.aspx

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Pete" <Pe**@discussio ns.microsoft.co mwrote in message
news:CF******** *************** ***********@mic rosoft.com...
Hi,

I have developed a VB application in VS2005 and deployed it sucessfully to
XP using an MSI file built with a standard VS setup project. The MSI
creates
some keys under HKEY_LOCAL_MACH INE\Software. However when deploying to
Vista,
although the setup completes without error, the registry entries are not
created. This occurs even when run by an administrator or when running the
setup.exe using "Run As Administrator".

I'm very new to Vista so I'm hoping there's a simple and very obvious
solution. Any ideas, anyone?

Pete


Nov 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

37
3733
by: Allen Browne | last post by:
If you develop for others, you probably have multiple versions of Access installed so you can edit and create MDEs for clients in different versions. This works fine under Windows XP, even with Access 2007 installed. It does *not* work under Windows Vista Ultimate. After running Access 2007, when you open an earlier version of Access, no code works, because the references are fouled up. And Access 97 does not work at all. Access should...
11
3574
by: vovan | last post by:
I'm using this approach to read from registry. Dim f As New RegistryPermission(RegistryPermissionAccess.AllAccess, _ "HKEY_LOCAL_MACHINE\SOFTWARE\SRS Enterprises\Coordinator\Settings") 'Vlad 02/12/2007 Dim f2 As New RegistryPermission(RegistryPermissionAccess.AllAccess, _ "HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\SRS Enterprises\Coordinator\Settings")
6
1635
by: vovan | last post by:
I'm asking for help one more time. Below are 2 procedures. The first one is used in VB 2005 Windows Form project. It works fine on XP, Vista. Private Sub RegistryReadingTest() Try Dim f As New RegistryPermission(RegistryPermissionAccess.Read, _ "HKEY_LOCAL_MACHINE\SOFTWARE\SRS Enterprises\Coordinator\Settings") f.Demand()
5
3677
by: =?Utf-8?B?Qkw=?= | last post by:
Hello friends In c# 2005 I have written a function to access "font file name" by "Font name" and it is working fine in all the windows version other than vista, in vista it is throughing an error so please help me how can i access font file name by font name in windows vista or what change i have to do in following function to get the solution my function source code is givin below -
14
5730
by: Keith | last post by:
I have an MDE application used by several hundred people in different parts of the world. The majority of users are of lesser experience computer experience. The app consists of a frontend (MDE) and backend (MDB), a help file and a key file. To this point, I have provided users with an installation package which installed both files into their program files folder with no problems. A few users are getting new computers with vista...
1
1817
by: David Jackson | last post by:
Hello, I'm looking for some best practice advice on deploying a 32-bit WinForms app on 32-bit Vista as regards file locations. The app will be written in Visual Studio.NET 2005 and will be compiled into a single executable with some values stored in the app.config file - the user needs to be able to update these values. The app also will use a Jet database.
12
6390
by: ARC | last post by:
I'm currently looking at the access developer extensions for creating an MSI installer package for a 2007 runtime app. Couple of observations and questions. 1) Doesn't look like we have the ability to set a packaged file to always overwrite, or never overwrite, unless I'm missing something. This could be a sticking point, as I would always want the program to overwrite on re-installing, but NEVER the back end database. I have a few more...
4
1233
by: Kevin L | last post by:
I wrote a VB application for a friend's laptop. Originally, it was installed on an XP OS. He has since purchased a new laptop with Vista installed and has installed my VB application. I have a newer version of the application which I would like to install, but the currently installed application does not appear in the Add/Remove utility in Vista. Any idea on how I can remove the old version?
6
6677
by: sd | last post by:
hello I need to keep my app entry under HKEY_LOCAL_MACHINE\Software\MyApp. (to support for all users).I need to update one key under MYApp. When I attempt to set value for this key My.Computer.Registry.LocalMachine.CreateSubKey("software \MyApp").SetValue("Licence", "Success") I get error stating Access to HKEY_LOCAL_MACHINE\Software\MYapp denied for Vista only.For XP no problem.If for Vista I give full control to Myapp reg folder...
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.