Network Installing my project

J

jp2msft

I created a setup.exe/setup.msi installer using Visual Studio for my C#
application, then copied it over to the network for others to use.

It installs fine and the application works like it is supposed to. However,
whenever someone then launches the app from the shortcut that I had my setup
application placed on the desktop, it looks like the program is installing
something before the application launches.

What causes this? How can I prevent it?

I just so happened to make some minor tweaks to the app, so I regenerated
the setup and copied it out to the network. I forgot to uninstall/reinstall
it on my machine whenever I went to test it, and I got the message that the
files didn't match what was on our network, and that the application could
not run.

That's bad!

In my C# project, I had to sign the assembly with a strong name key file,
and I enabled ClickOnce. Are one of these the cause of my problem? (Under the
Publish settings, I have already unchecked "App should check for updates")

Thanks for your time, and I look forward to someone's insite.
 
A

Andrei Varanovich [C# MVP]

I created a setup.exe/setup.msi installer using Visual Studio for my
C# application, then copied it over to the network for others to use.

It installs fine and the application works like it is supposed to.
However, whenever someone then launches the app from the shortcut that
I had my setup application placed on the desktop, it looks like the
program is installing something before the application launches.

What causes this? How can I prevent it?

Did you have a look at the process explorer? Or what was the reason for the
conclusion that it is installing smth?
I just so happened to make some minor tweaks to the app, so I
regenerated the setup and copied it out to the network. I forgot to
uninstall/reinstall it on my machine whenever I went to test it, and I
got the message that the files didn't match what was on our network,
and that the application could not run.

Does it works if you are installing it from the local machine?

Regards,
Andrei Varanovich [C# MVP
 
J

jp2msft

Hi Mr. Varanovich,
Did you have a look at the process explorer? Or what was the reason for the
conclusion that it is installing smth? ("Andrei Varanovich [C# MVP]")
What is the Process Explorer? How do I tell if it is installing SMTH? What
is SMTH?
Does it works if you are installing it from the local machine?
("Andrei Varanovich [C# MVP]")
It works as long as the setup.exe file is located on the machine it was
installed on. If I install from a CD and remove the CD from my drive, I get
the error. If I copy the files to the hard drive, the program runs fine until
the setup.exe file is deleted or moved.

Are Microsoft's Visual Studio Installers only meant for websites? I can't
seem to find a way to tell Visual Studio that I do *not* want to have any
ClickOnce abilities on my setup.exe file.
 
A

Andrei Varanovich [C# MVP]

What is the Process Explorer? How do I tell if it is installing SMTH?
What is SMTH?

http://en.wikipedia.org/wiki/Process_Explorer
http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

smth = something

Are Microsoft's Visual Studio Installers only meant for websites? I
can't seem to find a way to tell Visual Studio that I do *not* want to
have any ClickOnce abilities on my setup.exe file.

You are welcomed to create a simple msi, this is a simple setup project,
not ClickOnce. New Project --> Other Project Types --> Setup and Deployment.

Thanks,
Andre
 
J

jp2msft

The project I have now (that does not work without the setup.exe and
setup.msi files) was created using New Project -> Ohter Project Types ->
Setup and Deployment.

I want to know how to make it so that my app can run without having to keep
access to these setup files.

FYI: Using Process Explorer, I found that msiexec.exe is the file that keeps
wanting to run every time I hope my project after it has been installed.
 

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