views:

223

answers:

2

I've application that I deploy to share with ClickOnce so other users can install it and use it on their own machines. It worked fine till i noticed that when i install this app on my own machine (Windows 7 x 64) it doesn't add StartMenu (even thou it installs correctly and I have it in Control Panel / Programs). I didn't had that problem when my development machine was Windows XP. Application also deploys fine on other Windows XP computers.

Also during installation (when i rerun setup) even thou I already have Net Framework 3.5 it always wants to install one (it starts that and terminates few seconds later - probably installer sees that it's already there). I can run application straigit from share just a bit of pain to do it.

Are there some special settings I should do? Or some patches?

I have Visual Studio 2008 and system with all optional updates installed. Application is written in C# and uses NET 3.5.

+2  A: 

Do you have SP-1 installed for VS2008/.NET 3.5?

What is the target CPU of your deployment -- is it "any cpu" or 32-bit or 64-bit?

RobinDotNet

RobinDotNet
It's any cpu and I have all updates for everything.
MadBoy
Are the files actually installed under the ClickOnce cache? c:\Users\username\AppData\Local\Apps\2.0\obfuscatedfolder\obfuscatedfolder\ ? Can you find the folder with the actual exe in it? If you double-click on it does it run? Have you tried installing it by calling the .application file directly instead of setup.exe (by now you surely have the prerequisites installed, which is what setup.exe does), like \\myshare\myfolder\myapp.application ?
RobinDotNet
I can run application from share. It's no problem. Just that it never creates anything in my system (full admin rights with UAC off). I found the folder inside the path you suggested but .exe in it acted like it was the non-deployed version.
MadBoy
You can run it from the file share that it's deployed to? How are you doing that? With a URL, like \\share\folder\setup.exe or \\share\folder\myappname.application? What do you mean by "it never creates anything in my system" -- if you find the folder inside the path I suggested, that IS the ClickOnce deployment. Where else are you expecting to see the files?
RobinDotNet
Another question -- do you have the Publisher Name and Product Name filled in in the Options dialog that comes up when you click Options in the publish tab for the project properties? The Publisher Name is what shows up as the folder on the Start Menu, and the Product Name is the name of the shortcut that it puts in that folder.
RobinDotNet
I didn't had that. For some reason it disappeared. Don't know how thou. It works now! Gracias, i lost hope!
MadBoy
I wish i could vote this 5 times ;) Please update your answer for future reference that PublisherName and ProductName are required and maybe sum our comments up. Thanks Again!
MadBoy
A: 

This answer is just for future reference, it was in one of @RobinDotNet comments to his original answer...

Publisher name and Product name in the Publish tab of the project properties must be populated in order for the shortcut to appear on the Start Menu.

kzen