Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > EXE file without install
 

EXE file without install

Hello!
I write a windows form project with CLR supporting, and I want to
package it into an exe file.
I run the exe file in the Debug folder. It works on my computer, but not on other's computer which doesn't install .NET.
But I want the exe file to be portable and without install.
It seems that it needs a .NET environment.
I try to install .net framework 2.0 to the computer which doesn't install Microsoft Visual Studio 2005.
But I still can't open the exe file, too.
I dont want to use the deploy tool which create a setup.exe file that needs to be install.
Is it possible to create a simple exe file without install in Microsoft Visual Studio 2005?
Thx for ur reply.
Jane
Beautidays  Wednesday, January 02, 2008 5:11 AM

Of course, you can run .net program without installation. Please check your program whether you are using unmanaged code, interop code etc. If you worked with unmanaged code, it's not portable and you need to run on same type of platform sometime.

Another possibility is the code access security. Make sure your program has access right to run by manipulating Code Access Security in .NET configuration. or you can test by logging in the OS with an administrator account andcopying the whole folder of your program to C drive and run.

Good Luck!

Han

K.Z.Y.H  Wednesday, January 02, 2008 5:57 AM

Of course, you can run .net program without installation. Please check your program whether you are using unmanaged code, interop code etc. If you worked with unmanaged code, it's not portable and you need to run on same type of platform sometime.

Another possibility is the code access security. Make sure your program has access right to run by manipulating Code Access Security in .NET configuration. or you can test by logging in the OS with an administrator account andcopying the whole folder of your program to C drive and run.

Good Luck!

Han

K.Z.Y.H  Wednesday, January 02, 2008 5:57 AM

You can use google to search for other answers

Custom Search

More Threads

• Folder not removed on uninstall in Vista
• Deployment project program shortcuts do not work if program is installed for all users
• Merge Module
• Help!! Same app and ClickOnce version installs twice!?
• BadImageFormatException
• More bootstrapper questions
• Running application from server
• Using Custom Action to create database, tables, Stored procedures, triggers etc at Installation
• How to set passive mode for ClickOnce Bootstrapper?
• Windows Installer deployment