Deploying application got error

Y

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.
 
P

Peter Ritchie [C# MVP]

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.
 
P

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.
 
Y

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 said:
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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top