How can I deploy to a Single .EXE file?

I am creating a deployment project, but when I install the application, it puts this application reference in the C:\Documents and Settings\<user>\Start Menu\Program Files\<application Directory>\ folder.

What I want to happen is a single .EXE file to go to:

C:\Program Files\<application directory\

How can I do this? It should be easy enough, but I can't get it to do so.

[452 byte] By [TimGrove] at [2008-1-7]
# 1

Hello Tim,

Well, try this. Choose your setup project in the solution explorer and view the file system editor. (i.e. View > Editor > File System)

Next right-click on User's Desktop and choose Delete. Similarly, right-click on User's Program and choose Delete. Build and try now.

I think this should solve ur problem. Let us know if it helps or if you need help with anything else.

thanks,

Burhan

BurhanAteeqMSFT at 2007-10-2 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 2

No, that didn't work.

No matter what I do, the .EXE file is placed in the folder:

C:\Documents and Settings\tigrove\Local Settings\Apps\2.0\6H82QJML.XN8\HKVCRJ25.YED\care..tion_0ca6149aa8b4119c_0001.0000_b5735488c3bfb60f

and a reference is placed in

C:\Program files\<manufacturer>\<product name>\

I have tried everything, even cpecifying C:\[ProductName] on the properties, but it still puts it into the

Local Settings\Apps folder

There's got to be a simple way to direct where the application output goes.

TimGrove at 2007-10-2 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 3

Hi Grove,

I think you have put the .EXE file in a wrong folder(most likely User's Template Folder). You should the the .EXE file in the Application folder. Let us know if it helps.

Hope this helps.

Regards

Rong-ChunZhang-MSFT at 2007-10-2 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...