Home All Groups Group Topic Archive Search About

How do I change installation folder in Clickonce deployment - Please Help!!

Author
2 Mar 2006 5:16 AM
amit.arora
My Click once is installing the application in the user local profile
folder

C:\Document and Settings\username\Start Menu\Programs\

I dont really want startmenu shortcut.

How do I able to hardcode the installation folder or allow user to
change at runtime?

Thanks in advance.

Author
6 Mar 2006 4:06 PM
hashimisayed
Hi,

ClickOnce supports the idea of a non-impactful install. What this
essentially results in is that when you install an application, the
application gets installed to the user's profile (under documents and
settings). You cannot change this, however, the documentation says that
you can change the root folder to something other than documents and
settings if you wanted to (I have not see an example of this, however).

You also asked about preventing start menu shortcuts. Offline
applications get entries into the start menu and the add/remove
programs list. I don't think that this is configurable, however,
getting rid of the shortcut is easy enough. After ClickOnce installs an
application, it immediately launches the application. ClickOnce
provides an API that you can use to customize installation and updates.
The API exposes a property called IsFirstRun. You can query this
property in your onload() of the form and then delete the shortcut.

http://www.sayedhashimi.com
Shameless Book Plug: Deploying .NET Applications: Learning MSBuild and
ClickOnce
http://www.amazon.com/gp/product/1590596528/104-3580900-1662334?v=gla...
Author
28 Apr 2006 1:43 PM
Satish Babu Dasari
Un check the option for working offline application

Regards
Satish

Show quote
"hashimisa***@gmail.com" wrote:

> Hi,
>
> ClickOnce supports the idea of a non-impactful install. What this
> essentially results in is that when you install an application, the
> application gets installed to the user's profile (under documents and
> settings). You cannot change this, however, the documentation says that
> you can change the root folder to something other than documents and
> settings if you wanted to (I have not see an example of this, however).
>
> You also asked about preventing start menu shortcuts. Offline
> applications get entries into the start menu and the add/remove
> programs list. I don't think that this is configurable, however,
> getting rid of the shortcut is easy enough. After ClickOnce installs an
> application, it immediately launches the application. ClickOnce
> provides an API that you can use to customize installation and updates.
> The API exposes a property called IsFirstRun. You can query this
> property in your onload() of the form and then delete the shortcut.
>
> http://www.sayedhashimi.com
> Shameless Book Plug: Deploying .NET Applications: Learning MSBuild and
> ClickOnce
> http://www.amazon.com/gp/product/1590596528/104-3580900-1662334?v=gla...
>
>

AddThis Social Bookmark Button