I'm not really sure how to dig out this question.
What I want, is to create an image file that has my C# program, user manual and video tutorials in it. When the CD already started there will be a pop up form of choices which contains Install Program, View User Manual or View Video Tutorials. How can I do that?
It's similar when you're installing the Visual Studio 2008 or 2010.
Sorry for the title.
I don't know what tags should I put here.
If you put a file called autorun.inf onto a CD, you can have that CD launch a program when it's inserted. From here, you can create a program that contains the menu you'd like, so that when the user inserts the CD your menu pops up. It's not nearly as hard as it may seem.
I believe that you need two files: setup.exe (your program) and autorun.inf (a text file that tells windows which program to run when you put the disk in)
http://en.wikipedia.org/wiki/Autorun.inf
The autorun.inf file should have this text:
[autorun]
open=setup.exe
icon=setup.exe,0
label=My install CD
Related
so the title might be a bit confusing but i will explain it.
what i am trying to make is a application that when runned it will start up a different .exe file. for example it can be Minecraft or Visual Studio.
that is done with command lines.
After starting it i want it to complete the setup or installation automatically. (the part where you click yes or continue to finish the installation).
if there anyone who knows how or still does not understand ask me because i cant find something like this on google.
So i found a answer for my question using command line.
What i did i opened a command prompt and typed "setup.exe /?".
It opened a window with a list of different parameters.
So when i insert "setup.exe /S /v/qn" it will install the setup silently that means it will not show you the installation page and just install it without asking you anything.
P.S. if /? does not work try -y that works for some applications.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I'm so newbie about programming, just started to learn 1-2 weeks ago, I didn't learn before programing. I started the process with making a very basic console application in C# language and I used for this the Visual Studio program.
The application is having the really basic functions like: asking a number in the console, writing the answer in line, and added extra stuff, to change the console background white.
The code is working well, the debug didn't find any problem, and when I'm clicking on the exe file from the folder of the Debug, it runs as well, stops before the questions, etc. At the end of the code there is the Console.ReadKey(); too. (I'm not using database for asking the data or anything, just the simple Console.WriteLine(), or Console.ReadLine() commands I used, really, the basic stuff).
So it's working well even if I clicked on the exe file, and even when I use Visual Studio to debug it.
The problem is, I wanted to send to my friends, just to show them, what is my very first project.
The goal was if they click on the exe, they should see the same white backgrounded console app what I coded, and could answer the simple questions in it. But however I sent the program, the console is just showing up for a second with black background, writing out something and disappearing (it is so fast I can't even read what is it writing in the window).
My friends does not have Visual Studio, but they have the newest .NET, and the antivirus is loving the code too (I mean antivirus was checking the code but accepted it to run). I was trying to zip in the whole application folder too, and whatever I find in the Visual Studio's app folder, but the result is the same, exe is just a showing-disappearing console black console.
Which folders or what files should I send to my friends whose does not have Visual Studio just to be able to use my console app? Should I export somehow in Visual Studio the project (I didn't find any option for it)? the full code: a link
I guess your problem is the Windows Explorer trying to protect your friends from malicious code. Whenever you download something from the web, the Explorer adds a mark in the metadata of the file that execution of this file is blocked. This even continues through zip archives, i.e. if you download a zip and use the Windows Explorer to unzip, all files in there will have this mark set as well. You can check by going into the file properties where you should see an Unblock button, especially for the executable.
There are two solutions here:
You could unblock every single executable file or dll (works if there are not too many)
You can rename your zip archive and change the extension to txt and tell your friends to undo this after downloading.
So i'm a programmer who's making a game on visual studio. I save my game on a USB so i can take it everywhere. Unfortunately, i left my USB in my home and when i booted up my PC, it did a scan and repair on my USB (drive (i)). so ,when I tried to open my game it failed and when i looked in the folder, it showed a file called FOUND.000, and my actual folder that had my project in was converted into a file.
I really unsure about what to do. i just want to know if there anything or anyway to restore the .CHK files into normal files
I think John is right I had the similar problem a few months ago and this solution has worked for me, all of my files were hidden after an antivirus scan and this made them visible.
http://visihow.com/Show_Hidden_Files_Using_Command_Prompt
Edit: following the instructions here "might" help you restore your data:
https://www.howtogeek.com/282798/what-are-the-found000-folder-and-file0000chk-file-in-windows/
Thank you for taking the time to read my post.
1.) How would I make Visual Studio (WPF Project) generate a folder on the C: drive? ( I want to make a button so my users can generate a folder to put their shortcuts in so the program can launch them.)
2.) I am confused about the One click updates in visual studio. I've looked it up for hours and played with it, but I can not seem to get it to work. My FTP will be Dropbox, since my application is going to be basic and doesn't need to be too professional.
Thank you for all future replies. I will respond when I can.
Use this code
string path = #"C:\New Folder";
if (!System.IO.Directory.Exists(path))
System.IO.Directory.CreateDirectory(path);
I am having great difficulty getting a Windows program, written in VS 2008 C#, to launch another type program. I've put a main program to offer you the ability to launch some other VS 2008 C# programs. When one of them is selected the following code is intended to do the launch:
System.Diagnostics.Process.Start(#"C:\Documents and Settings\rat\My Documents\Visual Studio 2008\Projects\PV_002_082708\PV_001\PV_001\bin\Debug\PV.exe");
It works, but each user will have a different path. The path shown is for my computer. The code would have to know where each persons program was installed! In the past, I could easily call a program that was in the C:\Program Files location because that's where the MS Package & Deployment program put the programs. VS 2008/2010 doesn't put them there!
I'm sure I am not knowledgeable about Visual Studio 2008/2010 to know if there is a way around this, so any help would be greatly appreciated.
System.Diagnostics.Process.Start(System.Io.Path.Combine(System.Windows.Forms.Application.StartupPath, "PV.exe"));
assuming that the program is in the launched application's path.
or...
System.Diagnostics.Process.Start(System.Io.Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments), #"Visual Studio 2008\Projects\PV_002_082708\PV_001\PV_001\bin\Debug\PV.exe"));
assuming you want to open the project from it's place.
Once you create the installation package you can set the install path to some fixed path that users will not be able to change and than use that from your code (not very user friendly but it would work) or insert the user chosen path value into the registry and get it from there instead.
May want to have a look at this thread. How-to as well as lots of pro's and cons.
Embedded a *.exe into a dll
If you see the first answer to his question, I think this would work for you.
Simply he is saying, you add a resource file to your project, then when the user runes your program, it extracts your exe file that you added as a resource file to somewhere you know on the end users maching.