Deploying application got error

Deploying application got error

am 31.01.2008 12:41:01 von ykffc

I try deploying a very simple (very simple indeed) Vb.net application by
following the basic steps according to some tutorials.

My pc runs Visual Studio 2005 and it reports "Build successful" but I build
my application. Then I run setup.exe from the debug folder on the same
machine that develops this application, it went through all early steps but
when coming to the appeared-to-be last step, it gave out the following error
message:

Error reading from file
C:\..\mysetupPath\debug\myAppn.msi Verify that the file exists and that you
can
access it.

My debug directory does contains both the msi file and setup.exe

I can't see anything to do with "having no access" or file not exists. Then
I copied these two files to another PC and run the setup. Setup works and my
application runs normally at the other machine.

So it got to have something to do with my PC (Windows XP). I know I don't
really need setup to run on my own PC but I would like to learn why.

I am not sure what other information are helpful. It has Windows installer
3.1 (KB893803) isntalled and the these dotnet programs are found installed:
- .net Compact Framework 1.0 SP3 Developer
- .net compact Framework 2.0
- .net Framework 1.1
- .net Framework 1.1 Hotfix ( KB886903)
- .net Framework 2.0

I am not sure if I need to remove any installed program. What else do you
suggest me to check for now? Thank you.

RE: Deploying application got error

am 31.01.2008 21:01:04 von PRSoCo

Do you have a setup and deployment project to create this setup? If you
rebuild that project, what output does it give?

I've seen this error sometimes when the MSI file wasn't created properly.

--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#


"ykffc" wrote:

> I try deploying a very simple (very simple indeed) Vb.net application by
> following the basic steps according to some tutorials.
>
> My pc runs Visual Studio 2005 and it reports "Build successful" but I build
> my application. Then I run setup.exe from the debug folder on the same
> machine that develops this application, it went through all early steps but
> when coming to the appeared-to-be last step, it gave out the following error
> message:
>
> Error reading from file
> C:\..\mysetupPath\debug\myAppn.msi Verify that the file exists and that you
> can
> access it.
>
> My debug directory does contains both the msi file and setup.exe
>
> I can't see anything to do with "having no access" or file not exists. Then
> I copied these two files to another PC and run the setup. Setup works and my
> application runs normally at the other machine.
>
> So it got to have something to do with my PC (Windows XP). I know I don't
> really need setup to run on my own PC but I would like to learn why.
>
> I am not sure what other information are helpful. It has Windows installer
> 3.1 (KB893803) isntalled and the these dotnet programs are found installed:
> - .net Compact Framework 1.0 SP3 Developer
> - .net compact Framework 2.0
> - .net Framework 1.1
> - .net Framework 1.1 Hotfix ( KB886903)
> - .net Framework 2.0
>
> I am not sure if I need to remove any installed program. What else do you
> suggest me to check for now? Thank you.
>

Re: Deploying application got error

am 31.01.2008 22:27:17 von Phil Wilson

When you say "it gave out this error", at which point in the process is this
happening? Does "through the early steps" mean that it shows the usual
wizard dialogs, then it fails? I ask because one of the issues that
occasionally arises is when the SYSTEM account does not have access to that
directory/file, and you get the error after the UI wizard sequence (which
runs with your credentials) when the actual installation switches to the
msiexec service to do the actual install (whichj runs with the system
account). So check that the SYSTEM account has access to that directory.
--
Phil Wilson
[MVP Windows Installer]

"ykffc" wrote in message
news:5D44F759-A117-4577-952B-6AA613D45833@microsoft.com...
>I try deploying a very simple (very simple indeed) Vb.net application by
> following the basic steps according to some tutorials.
>
> My pc runs Visual Studio 2005 and it reports "Build successful" but I
> build
> my application. Then I run setup.exe from the debug folder on the same
> machine that develops this application, it went through all early steps
> but
> when coming to the appeared-to-be last step, it gave out the following
> error
> message:
>
> Error reading from file
> C:\..\mysetupPath\debug\myAppn.msi Verify that the file exists and that
> you
> can
> access it.
>
> My debug directory does contains both the msi file and setup.exe
>
> I can't see anything to do with "having no access" or file not exists.
> Then
> I copied these two files to another PC and run the setup. Setup works and
> my
> application runs normally at the other machine.
>
> So it got to have something to do with my PC (Windows XP). I know I don't
> really need setup to run on my own PC but I would like to learn why.
>
> I am not sure what other information are helpful. It has Windows
> installer
> 3.1 (KB893803) isntalled and the these dotnet programs are found
> installed:
> - .net Compact Framework 1.0 SP3 Developer
> - .net compact Framework 2.0
> - .net Framework 1.1
> - .net Framework 1.1 Hotfix ( KB886903)
> - .net Framework 2.0
>
> I am not sure if I need to remove any installed program. What else do you
> suggest me to check for now? Thank you.
>

Re: Deploying application got error

am 01.02.2008 06:46:01 von ykffc

Phil Wilson, brilliant answer.

It worths puting this in my notes: the actual installation switches to the
msiexec service to do the actual install (whichj runs with the system
account).

Problem solved.


"Phil Wilson" wrote:

> When you say "it gave out this error", at which point in the process is this
> happening? Does "through the early steps" mean that it shows the usual
> wizard dialogs, then it fails? I ask because one of the issues that
> occasionally arises is when the SYSTEM account does not have access to that
> directory/file, and you get the error after the UI wizard sequence (which
> runs with your credentials) when the actual installation switches to the
> msiexec service to do the actual install (whichj runs with the system
> account). So check that the SYSTEM account has access to that directory.
> --
> Phil Wilson
> [MVP Windows Installer]
>
> "ykffc" wrote in message
> news:5D44F759-A117-4577-952B-6AA613D45833@microsoft.com...
> >I try deploying a very simple (very simple indeed) Vb.net application by
> > following the basic steps according to some tutorials.
> >
> > My pc runs Visual Studio 2005 and it reports "Build successful" but I
> > build
> > my application. Then I run setup.exe from the debug folder on the same
> > machine that develops this application, it went through all early steps
> > but
> > when coming to the appeared-to-be last step, it gave out the following
> > error
> > message:
> >
> > Error reading from file
> > C:\..\mysetupPath\debug\myAppn.msi Verify that the file exists and that
> > you
> > can
> > access it.
> >
> > My debug directory does contains both the msi file and setup.exe
> >
> > I can't see anything to do with "having no access" or file not exists.
> > Then
> > I copied these two files to another PC and run the setup. Setup works and
> > my
> > application runs normally at the other machine.
> >
> > So it got to have something to do with my PC (Windows XP). I know I don't
> > really need setup to run on my own PC but I would like to learn why.
> >
> > I am not sure what other information are helpful. It has Windows
> > installer
> > 3.1 (KB893803) isntalled and the these dotnet programs are found
> > installed:
> > - .net Compact Framework 1.0 SP3 Developer
> > - .net compact Framework 2.0
> > - .net Framework 1.1
> > - .net Framework 1.1 Hotfix ( KB886903)
> > - .net Framework 2.0
> >
> > I am not sure if I need to remove any installed program. What else do you
> > suggest me to check for now? Thank you.
> >
>
>
>