473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Vista - UAC and Click Once

Hello,

This is a continuation of a question I was working with Willy and Kevin last
week (both provided excellent information). I am still having troubles in
final stages.

I am trying to get an OCX to register on Vista with my ClickOnce app. Willy
instructed how to embed a manifest into the exe to request admin privilages
(requireAdministrator) upon launch (so the UAC window would confirm to the
user they want to run the program).

It all works fine now... while running locally on my development and testing
machines. However, when we try to run the deployed app with this modified
executable, we are getting error messages that state:

Reference in the manifest does not match the identity of the downloaded
assembly [ourApp.exe].

We have signed both the application and deployment manifests anew and built
them up fresh with the modified exe and still this error is thrown upon
putting the application URL into the browser (and after the app download and
installs so I guess you could just say the error is thrown at launch).

Is what we are trying to do possible? Is there an easier way to register an
OCX control in our app without having to require admin privileges (aside from
making a seperate program, having the user install that, then have them Run
As Admin)?

Maybe there is code we can execute that will just bring up the UAC window so
we can just execute the small OCX registry process...?

Thanks,

Rob
Feb 5 '07 #1
3 2840
"RobKinney1" <Ro********@discussions.microsoft.comwrote in message
news:28**********************************@microsof t.com...
Hello,

This is a continuation of a question I was working with Willy and Kevin last
week (both provided excellent information). I am still having troubles in
final stages.

I am trying to get an OCX to register on Vista with my ClickOnce app. Willy
instructed how to embed a manifest into the exe to request admin privilages
(requireAdministrator) upon launch (so the UAC window would confirm to the
user they want to run the program).

It all works fine now... while running locally on my development and testing
machines. However, when we try to run the deployed app with this modified
executable, we are getting error messages that state:

Reference in the manifest does not match the identity of the downloaded
assembly [ourApp.exe].

We have signed both the application and deployment manifests anew and built
them up fresh with the modified exe and still this error is thrown upon
putting the application URL into the browser (and after the app download and
installs so I guess you could just say the error is thrown at launch).

Is what we are trying to do possible? Is there an easier way to register an
OCX control in our app without having to require admin privileges (aside from
making a seperate program, having the user install that, then have them Run
As Admin)?

Maybe there is code we can execute that will just bring up the UAC window so
we can just execute the small OCX registry process...?

Thanks,

Rob

Rob,

I would try to get rid of the administrator" dependency by using "Reg-Free COM".
This article http://msdn.microsoft.com/msdnmag/is...04/RegFreeCOM/ might help you to
get started.
Another option is to use Group Policy Management and the ActiceX Registration service in
Vista to install the ActiveX component from a trusted location in the corporation.

Willy.

Feb 5 '07 #2
Willy! It works! Thank you so much for your help on this thread and the
last. We just changed the Isolated to True and now everything seems to be
working just as it should... and the program doesn't even have to bring up
the UAC control. My coworker and I have learned a lot through this.

Seems Reg-Free COM did the trick.

Thanks again for your excellent help!

Rob

"Willy Denoyette [MVP]" wrote:
"RobKinney1" <Ro********@discussions.microsoft.comwrote in message
news:28**********************************@microsof t.com...
Hello,

This is a continuation of a question I was working with Willy and Kevin last
week (both provided excellent information). I am still having troubles in
final stages.

I am trying to get an OCX to register on Vista with my ClickOnce app. Willy
instructed how to embed a manifest into the exe to request admin privilages
(requireAdministrator) upon launch (so the UAC window would confirm to the
user they want to run the program).

It all works fine now... while running locally on my development and testing
machines. However, when we try to run the deployed app with this modified
executable, we are getting error messages that state:

Reference in the manifest does not match the identity of the downloaded
assembly [ourApp.exe].

We have signed both the application and deployment manifests anew and built
them up fresh with the modified exe and still this error is thrown upon
putting the application URL into the browser (and after the app download and
installs so I guess you could just say the error is thrown at launch).

Is what we are trying to do possible? Is there an easier way to register an
OCX control in our app without having to require admin privileges (aside from
making a seperate program, having the user install that, then have them Run
As Admin)?

Maybe there is code we can execute that will just bring up the UAC window so
we can just execute the small OCX registry process...?

Thanks,

Rob


Rob,

I would try to get rid of the administrator" dependency by using "Reg-Free COM".
This article http://msdn.microsoft.com/msdnmag/is...04/RegFreeCOM/ might help you to
get started.
Another option is to use Group Policy Management and the ActiceX Registration service in
Vista to install the ActiveX component from a trusted location in the corporation.

Willy.

Feb 6 '07 #3
"RobKinney1" <Ro********@discussions.microsoft.comwrote in message
news:A0**********************************@microsof t.com...
Willy! It works! Thank you so much for your help on this thread and the
last. We just changed the Isolated to True and now everything seems to be
working just as it should... and the program doesn't even have to bring up
the UAC control. My coworker and I have learned a lot through this.

Seems Reg-Free COM did the trick.
Actually I should have told you about Reg-Free COM in your previous thread, I'm glad you
finally got it working with a great user experience as a bonus.

Willy.


Feb 6 '07 #4

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

Similar topics

6
by: theintrepidfox | last post by:
Dear Group I've installed MSSQL 2005 STD on Vista and now can't attach my databases. I've installed SQL SP2 and the SQL Vista Beta Update. The error I'm getting is: Unable to open the...
11
by: Don | last post by:
QUESTIONS: 1. Has anyone figured out how to successfully install the Office 97 Pro Service Release 2 patch in Vista? 2. Has anyone successfully installed an Office 97 Pro CD (SR2 version) in...
1
by: nancyisbell | last post by:
I used the following test01.xml file below to exercise the cnlUnit01.xslt. <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="cnlUnit01.xslt"?> <cnlUnitXsl unitDataFile="111111"/> ...
4
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a...
9
by: Bruce | last post by:
Under Vista, the Dev Studio program installer adds a desktop shortcut to the Desktop. (.Net application.) The shortcut does not have a context menu item to run as administrator. However, if you...
0
by: =?Utf-8?B?VHJhY2tz?= | last post by:
I created a setup program in VS2005 ide. It installs my app on 98-Vista. I have tried this with the Click once check box checked(full trust) and not checked does not seem to matter. Anyway, the...
6
by: globalrev | last post by:
type "python setup.py install" that is used in most "addons" for python. well using windows vista, where the h*** am i supposed to type this? if it is not doable in windows, what do i have...
4
by: jehugaleahsa | last post by:
Hello: We are working in VS 2005, C# with Team System. We have a text box that is bound to a business object property. We have some code behind that will populate the text box when they choose a...
0
Niheel
by: Niheel | last post by:
The importance of backups can never be emphasized enough. In Vista Ultimate and Windows Server 2008, there is a built in feature to take care of backups called Windows Complete PC Backup and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.