Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Releasing VS 2005 C# .NET (framework 2.0) Application in a single setup.exe file
 

Releasing VS 2005 C# .NET (framework 2.0) Application in a single setup.exe file

Hi,

I need to release my C# .NET windows forms based application developed in VS 2005 with .NET framework 2.0. The detected dependencies are 1) Microsoft .NET framework 2) EXCEL.EXE 3) Interop.Excel.dll 4) Microsoft.vbe.interop.dll 5) office.dll

For installing .NET Framework, I am using the "Download prerequsites from the same location as my application" option. The release folder has many files which are needed while installing.

I need to ship a single Setup.exe file which includes all dependencies. What is the best way to do it?

Thanks in advance!!

regards,
Sanjeevi
  • Moved byYiChun ChenMSFTThursday, July 23, 2009 3:11 AMDeployment issue (From:.NET Framework Setup)
  •  
San1984  Tuesday, July 21, 2009 12:12 PM
Hi Sanjeevi,

I am moving this thread from Base ".NETFrameworkSetup" forum to the "ClickOnce and Setup & Deployment Projects" forum, since the issue is related to deployment. There are more deployment experts in the "ClickOnce and Setup & Deployment Projects" forum.

Thanks
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
YiChun Chen  Thursday, July 23, 2009 3:10 AM
Hi San1984,

VS doesn't support to package all these files into one setup.exe. But you can use other tool to accomplish that. For example, WinRAR.

1. Select all files and add them to an RAR package.
2. Double click the RAR package, Click "SFX" button, click "Advanced SFX option..." button. Type "Setup.exe" into "Run after extraction" field.

After doing that, you will get an EXE file. Double click that file, it will unpackage first and launch Setup.exe inside the package.

If you have any problem in doing this, please feel free to tell me.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Thursday, July 23, 2009 5:40 AM
I'll point out that:
1) You message implies you'll be including Excel.exe. You cannot redistribute Excel.exe - that is part of Microsoft Office.
2) If you generated that interop Dll yourself then that's not the recommended way and so you may have issues. You should be using the Microsoft PIAS for the version of Office you're targeting.
http://www.microsoft.com/downloads/details.aspx?familyid=59daebaa-bed4-4282-a28c-b864d8bfa513&displaylang=en
Phil Wilson
PhilWilson  Thursday, July 23, 2009 7:01 PM
Hi All,

Thanks for the reply.

Hi Kira Qian,
Thanks. I am involved in another high priority task so I couldn't respond immediately. I will try it out and get back to you.

Hi Phil Wilson,

Thanks. I will remove Excel.exe.

"2) If you generated that interop Dll yourself then " :- Do you mean interop.excel.dll or office.dll ?
Can you please let me know which dll I should remove and replace it by PIA?

Thanks in advance.

Regards,
Sanjeevi

San1984  Tuesday, July 28, 2009 6:29 AM

You can use google to search for other answers

Custom Search

More Threads

• RadioButon dialog and updating the xml file
• Deploy application with Web References
• Building an MSI file in Visual Studio.NET
• Creating Windows App. Installer
• convert c# project to an application project
• need to copy files to the system32 folder.
• Upgrading from VS 2005 to VS 2008 Reference in the manifest does not match the identity of the downloaded assembly
• Multiple download of the same assembly
• Web Service
• Build Error: "LC.exe" exited with code -1073741819.