Deploying apps developed in VS2010

Just tried to deploy my first app using the publish wizard in vs2010, but when it installed it created some ridiculously long path:

C:\Documents and Settings\%user%\Local Settings\Apps\2.0\TRQ7HJHP.ZJG\149TCOXR.KZ3\hl7m..tion_2a42f8d70bcc4e75_0001.0000_0d8212f83cbae7fa\

What happened to just creating a folder under \Program Files\ ?

What went wrong ?

Any help is appreciated.
sidwelleAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vadim RappCommented:
In short, it was installed per-user rather than per-machine. That's how non-privileged user can install it just for himself.
0
sidwelleAuthor Commented:
I was never prompted for a option, it just blew through some stuff and started the app.
0
Vadim RappCommented:
If the user who installs is non-admin, it won't show the options. If you want to know more details, produce detailed log and look inside, or post here. It will tell whether the installer has found the user privileged, and what it decided.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Vadim RappCommented:
...another possibility is that per-user is specified in the properties of the installation project. Property "Install for all users".
0
sidwelleAuthor Commented:
The 2nd is a better possibility, because I do have admin privileges on this PC.

I will check tonight.
0
Vadim RappCommented:
>  because I do have admin privileges on this PC.

since tightening security in Vista/7, the process of decision-making who is permitted to do what has become very complex. More than what could be reasonably predicted.
0
sidwelleAuthor Commented:
Where is the option set in VS, what Tab ?

Thanks
0
Vadim RappCommented:
in VS2008:

screenshot
The default is indeed "False", by the way.
0
sidwelleAuthor Commented:
That all makes sense, Just Can't find a menu/form like that in 2010, any ideas where its set ?
0
Vadim RappCommented:
You need to add Setup and Deployment Project to your solution.

http://msdn.microsoft.com/en-us/library/vstudio/19x10e5c%28v=vs.100%29.aspx
0
sidwelleAuthor Commented:
Thanks, give me a day to get it built and I will post back.
0
sidwelleAuthor Commented:
Followed the directions, created a setup project, compiled it and copied setup file to target machine, ran it, completed, finished.  

Nothing was installed, no evidence of the target folder it just stated that it was going to install in, searched the 'programs files' folder.

Removed and repeated the install 3 times and went to another target pc, still nothing.
What am I doing wrong ?

Thanks
0
Vadim RappCommented:
Did it create program folder and put there the executable?

Log will tell, see above
0
sidwelleAuthor Commented:
No program folder or exe, I will look for the log this morning.
0
sidwelleAuthor Commented:
No program folder or evidence that it tried to install anything.
0
Vadim RappCommented:
and no log?
0
sidwelleAuthor Commented:
0
Vadim RappCommented:
Once again: please produce detailed log file of the installation, as described in http://support.microsoft.com/kb/223300 , and post here. It will tell what happened.
0
sidwelleAuthor Commented:
setup dialogThe value voicewarmupx is set, but  I don't see a log file in the Temp folder.

I went back into the setup project and made sure that both projects were checked under build and I added a folder ("MyApp") under the "Application Folder" and now it created that one folder and installed my ini file in that folder.

C:\Program Files\Default Company Name\Setup1\MyApp\

I expected the setup project to bring a default template and include all my apps files and try to install a icon in the programs folder ?

Do I have to do all this manually ?
0
Vadim RappCommented:
> The value voicewarmupx is set, but  I don't see a log file in the Temp folder.

Can't be. Even if it just shows the initial dialog, the log file already has to be created. You can run Process Monitor (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) and monitor file-writing activity, to see where the log file goes. Or search the whole computer for file msi*.log .

> now it created that one folder and installed my ini file in that folder.

what ini file? did you add primary output of the main project to the setup project?

If you did, then if you click "Outputs" in the setup project, you will see which files from the main project are included, i.e. which files will be installed.screenshot
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vadim RappCommented:
Also check in the main project - these files that you want to be included in the installation, must have properties "build action" and "copy to output directory" accordingly.screenshot
0
sidwelleAuthor Commented:
I think your pics helped the most. It's still pretty cryptic, but I have a working install.  I just added my exe and config file to the the Setup project, not sure if thats the correct method.

"voicewarmupx is set", the install was building a log file in the users temp folder, not the windows temp folder. Should have looked there first.

Thanks
0
Vadim RappCommented:
>  I just added my exe and config file to the the Setup project, not sure if thats the correct method.

Usually the best is to mark the files as I posted in ID: 39529668 above. That's what makes them "primary output". Details in the article "How to: Manage Local Data Files in Your Project"
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.