Setup Project VS2005

I am using VS 2005 and I am going to make a setup project to a visual c++ program . I add a setup and deployment project and then add the required files. But when i Build it it gives the following error. :?

ERROR: Could not find file 'd:\Academic\softwareDeveopment\Client Server\Client_Application\Client_Application\[$OutputDirectory]\[$TargetAssembly].licenses' 'The system cannot find the path specified.'

I Try diffrent things but not working. Can Anybody help me

Thanks

dki..

[828 byte] By [dki] at [2007-12-25]
# 1

This doesn't sound familiar... but there are a couple things you can do to debug this.

Firstly, is this a build error from the setup project? I don't ususally see $[OutputDirectory] tokens in error messages. These are supposed to be resolved before we see them.

Secondly, you can open the "files" property of the Project Output Group that should be including that file, check to see the path it is using, and whether you can find the file.

Do you need to deploy this file? If not, you can "filter" it out using the Filter property in the Project Output Group.

DavidGuyerMS at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 2

I have encountered the same issue.

My application is a C++/CLI application build in VS 2005. I am using Infragistics ultraGrid controls. When I build my setup file, I always got this error:

Starting pre-build validation for project 'Deployment'

Pre-build validation for project 'Deployment' completed

3> Rebuild All started: Project: Deployment, Configuration: Release

Building file MyProjectFolder\Release\Setup.msi'...

WARNING: Windows Installer is not included in any selected prerequisite

WARNING: Two or more objects have the same target location ('[payload_ul]\8.0.50727.762.cat')

WARNING: Two or more objects have the same target location ('[payload_ul]\8.0.50727.762.cat')

WARNING: Two or more objects have the same target location ('[policydir]\8.0.50727.762.cat')

WARNING: Two or more objects have the same target location ('[policydir]\8.0.50727.762.cat')

WARNING: Two or more objects have the same target location ('[policydir]\8.0.50727.762.policy')

WARNING: Two or more objects have the same target location ('[policydir]\8.0.50727.762.policy')

WARNING: Two or more objects have the same target location ('[payload_ul]\8.0.50727.762.policy')

WARNING: Two or more objects have the same target location ('[payload_ul]\8.0.50727.762.policy')

ERROR: Could not find file MyprojectFolder\[$OutputDirectory]\[$TargetAssembly].licenses' 'The system cannot find the file specified.'

Can you help what is going on here?

Cynthia07 at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 3

I am getting the same issue. My project is a C++/CLI project and build in Visual Studio 2005. My application's GUI uses Infragistics's ultraGrid controls. Before I add ultraGrid, the setup project was fine, after I added Infragistics's controls, then the setup build always gives me this error. Can some one help?

Thanks in advance!

Starting pre-build validation for project 'Deployment'

Pre-build validation for project 'Deployment' completed

3> Rebuild All started: Project: Deployment, Configuration: Release

Building file MySetup\Release\Setup.msi'...

WARNING: Windows Installer is not included in any selected prerequisite

WARNING: Two or more objects have the same target location ('[payload_ul]\8.0.50727.762.cat')

WARNING: Two or more objects have the same target location ('[payload_ul]\8.0.50727.762.cat')

WARNING: Two or more objects have the same target location ('[policydir]\8.0.50727.762.cat')

WARNING: Two or more objects have the same target location ('[policydir]\8.0.50727.762.cat')

WARNING: Two or more objects have the same target location ('[policydir]\8.0.50727.762.policy')

WARNING: Two or more objects have the same target location ('[policydir]\8.0.50727.762.policy')

WARNING: Two or more objects have the same target location ('[payload_ul]\8.0.50727.762.policy')

WARNING: Two or more objects have the same target location ('[payload_ul]\8.0.50727.762.policy')

ERROR: Could not find file 'MyProject\[$OutputDirectory]\[$TargetAssembly].licenses' 'The system cannot find the file specified.'

Cynthia07 at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...