vb.net publishing as .exe file only - vb.net

I want to simply publish my programm as .exe. I don't want to have that Application Folder, inf File and manifest, which are created by Visual Studio 2010. Later on it can be downloaded over an FTP.
How to do so?
I've also looked at these publish on webhost functionality of VS, but that would create a publish.htm. And that's not what I want.

you have a folder named release in your project the .exe file is what you want
if it's empty then in your VS toolbar next to the ( play , pause , stop ) buttons there is a combo box choose release and click on the play button then the .exe file should be generated
if you referenced any .dll files then they should be copied as so with the .exe file to make it work
you may add dll's as resource files in your .exe as binary text then when the program run's add code to put them in files in .exe same path and when the program end's add delete code

Related

How to create a pkpass file in Visual Studio, in widows

I wonder if there is a way to create a pkpass file in windows from visual studio, or is there a way to generate its structure and change the information for testing?
I've been looking at how to make this structure manually, but I have no idea.
Create a new project in Visual Studio and choose the type of project
you want to create. Download the pasKit framework from Apple's
developer website.
Add the PassKit framework to your project by right-clicking on the
project in the Solution Explorer and selecting "Add Reference". In
the Reference Manager dialog box, browse to the location where you
downloaded the Pass-Kit framework and add it to your project.
Create the pkpass file structure by creating a new directory with
the ext (.pkpass) This dir will contain the files and folders that
make up the pkpass file.
Write the necessary code to generate the contents of the pkpass
file, such as the pass.json file, imgs, and other rsrcs. You can use
the PassKit classes to create the pass.json file and add the
required fields, such as the pass type identifier, serial number,
and authentication token.
Once you have created the files and folders, compress them into a
zip file. Rename the this zip file with extension".pkpass" to create
the final file.
To test the pkpass file, add it to the Passbook app on whatever
iphone you have

Adding a folder with files to application - Visual Basic 2010

In my current project I have a folder with several files that the application needs to function properly. The folder is in the bin/debug folder and with the line Application.StartupPath I can easily access the files. It couldn't be easier.
However, when I publish the application the files don't seem to be included in the project, at least not at the StartupPath.
So my question is: how am I supposed to add this folder to my published application?
First, you'll need to include those files in your project. Then click each file in the Solution Explorer and in the Properties Windows change the value for "Copy to Output Directory" to "Copy Always".

vb.net publishing file location

I'm using vs2010 pro and I've created a project and everything works fine. I have added a help file (.chm) to the project and set its properties to "content" and "output if newer".
My project resides on my C: drive in a folder; for example c:\myproject\whatever
When I publish my project, I publish it to a different location (on the network) z:\whatever
The project gets published to that location and the application works fine except for the fact that the .chm file ends up in my c:\myproject\debug directory and not on the network path that I published to. So my app can't find my .chm file after I publish it. It can only find it when I hit the green arrow and build it locally.
How do I force it to put everything in the publish folder that I choose when publishing?
Thanks.
I think the .chm is ending up in the debug directory for an unrelated reason. Anyway, to get it into the publish location, look on the Publish tab of the Application Explorer window, and click the Application Files button. Locate your .chm file in the list and change its status to 'Include'

Include and Call PDF File in vb.net (after Deployement)

Glad to see this site, Thanks guys for being active. :)
I have a problem in Visual Studio 2010/VB.Net
I have windows form in Visual Basic, I deployed the software(form) to one installer
Now I want to open My PDF file( i-e: Specific) with Button_Click_Event
I know that:
Process.Start("MyPDF.pdf")
But I dont know if user install my software in his PC so may be he install the software in C D or other directory, and also I dont know How to include PDF file in my project :)
Please suggest for me, I am searching this every where but failed so pl help me
Use Add->Existing Item on your Project. Then add the PDF File to your Project.
Afterwards you have to set the Properties of the newly added file to the following:
Now the file will be added to your "Output" Directory after you build your Project.
Now use your Process.Start("MyPDF.pdf") call. It will open up, as it resides in the same directory.
This is rather easy:
Simply include the file by dragging it to your project folder and in its options, tell it to copy to the build directory.
Thereafter, find the path through the my.application methods.
Build a correct path from that and launch it via process.start

Move files to a specific folder when run the setup file for VB.Net Application

I have created deployment package for VB.Net appolication and it runs fine. When setup is rnning, I want deployment package to move a file from bin folder to other specific folder.
Please suggest, how can I move this file to specific folder.
Any help would be appreciated.
Thanks, Yogi
In Visual Studio 2008 setup project,
Select File System on Target Machine and then from Action menu select Add Special folder and then Custom folder. A new folder will apear on left hand side under the "File System on Traget Machine". Add files, into this custom folder, which you want to copy into into specified location,
Now go into the property of this custom folder and set the DefaultLocation where you want to copy files under this custom folder.
Now when you run the setup this file under the custom folder will copy into the specified location which you set in DefaultLocation.
Yogi..