472,805 Members | 860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Policy file question

I have a dll, which is version 1.0.0.23456, with the last part being the
auto numbered part. It has been installed in the GAC and there are a couple
of .net exe's using it. I now want to update the dll, to version
1.0.1.xxxxx, and update the component on the server where it is installed.
When I create the msi package, using VS .net 2003 installer, I can create an
msi that automatically updates the assembly and removes the previous
version. This is the desired result.
Now I do not want to update the applications that use the dll, but
instead create a policy file to deploy with the updated dll. I believe I
understand most of the policy file requirements and settings except for the
version number. The dll, and the setup msi version are manually updated, the
last part is auto generated, the .xxxxx. Can I leave off the last 5 digits
of the version number in the policy file? Since I do not know exactly what
the version number is going to be until I build the install?
For example, can I do the following:
<bindingRedirect oldVersion="1.0.0-1.0.1"
newVersion="1.0.2"/>

Instead of:
<bindingRedirect oldVersion="1.0.0.0-1.0.1.99999"
newVersion="1.0.2.24785"/>

I would like to build and deploy the policy file with the new app
automatically. So my thought was when I build the installer project, which
builds the dll assembly first, I tack on post installation event to build
the policy file after the dll build.

Any problems or suggestions?

J
Jul 21 '05 #1
0 961

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

Similar topics

1
by: Rob Barnes | last post by:
When I try to create a machine-level security policy based on an assembly's strong name, I get the following error: "ERROR: Invalid label or name" The caspol command is: "caspol -machine...
0
by: andrew.noel | last post by:
I have a publisher policy setup that consists of the following two files: policy.0.0.assembly.dll policy.config The policy.config file contains the following: <configuration> <runtime>...
3
by: david.kao | last post by:
Hi All: I tried to uninstall a runtime security package from a user's machine. Based on document I have read, all I need to do is right click on MSI file, and choose uninstall from menu. After I...
1
by: cmrchs | last post by:
Hi, I'm having problems using publisher policy in .NET 2.0. whereas I didn't in .NET 1.1 Scenario : I have a version3.0 component against which a client is compiled. Then creating version3.1...
0
by: Scanner2001 | last post by:
I have a dll, which is version 1.0.0.23456, with the last part being the auto numbered part. It has been installed in the GAC and there are a couple of .net exe's using it. I now want to update the...
2
by: jtyner | last post by:
I am trying to get QFE (Quick Fix Engineering) working with an assembly installed in the GAC. I have two books that claim if two different version of the assembly are installed in the GAC -AND-...
3
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, I'm facing a problem to run an appliation in a shared network drive. The application is developed in VB2005. I understand I have to add a signature with strong name key to all...
1
by: =?Utf-8?B?U2NvdHQ=?= | last post by:
Publisher policies sound just like what I need but I just can't get these things to work. There are several good kb articles that seem to show exactly what needs to be done.... Here is my...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.