Link to home
Start Free TrialLog in
Avatar of sidwelle
sidwelleFlag for United States of America

asked on

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.
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

In short, it was installed per-user rather than per-machine. That's how non-privileged user can install it just for himself.
Avatar of sidwelle

ASKER

I was never prompted for a option, it just blew through some stuff and started the app.
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.
...another possibility is that per-user is specified in the properties of the installation project. Property "Install for all users".
The 2nd is a better possibility, because I do have admin privileges on this PC.

I will check tonight.
>  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.
Where is the option set in VS, what Tab ?

Thanks
in VS2008:

User generated image
The default is indeed "False", by the way.
That all makes sense, Just Can't find a menu/form like that in 2010, any ideas where its set ?
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
Thanks, give me a day to get it built and I will post back.
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
Did it create program folder and put there the executable?

Log will tell, see above
No program folder or exe, I will look for the log this morning.
No program folder or evidence that it tried to install anything.
and no log?
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.
User generated imageThe 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 ?
ASKER CERTIFIED SOLUTION
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.User generated image
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
>  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"