Novice Help: creating .exe file

G

Guest

Hello, I am trying to create an .exe file that will perform a very simple task:

Once executed, I want the program to extract seven documents into C:\ISO14001\
If the ISO14001 folder does not exist I want a prompt asking if the user
wants to create folder. On subsequent executions, I'm hoping to be able to
simply refresh those seven documents, without affecting either the ISO14001
folder or any other files that may reside there.

I know about the Wizard that can assist in creating the actual .exe for
deployment, but what kind of code is necessary for storing and unpacking the
..doc files (storing the .doc files in the program itself?)

I am running VB 2003 on Windows Vista. I want the program to run on Windows
NT, 2000, XP, and Vista.

Thanks for any and all help. Sincerely, Ruben.
 
M

Mr. Arnold

I am running VB 2003 on Windows Vista. I want the program to run on
Windows
NT, 2000, XP, and Vista.

Someone else can help you with the other stuff. Just a rule of thumb, I like
to follow to stay out of trouble.

Build the solution on the platform it is intended to run on. Build the
solution on NT to be deployed and ran on NT platform. Build the solution on
the Win 2k platform to be deployed and ran on the Win 2k platform, etc, etc.

Although each of the O/S(s) are NT based O/S(s), they are different in some
ways, and something built on one platform and deployed to other platforms
may not work or work as expected.
 
R

Rad [Visual C# MVP]

Hello, I am trying to create an .exe file that will perform a very simple task:

Once executed, I want the program to extract seven documents into C:\ISO14001\
If the ISO14001 folder does not exist I want a prompt asking if the user
wants to create folder. On subsequent executions, I'm hoping to be able to
simply refresh those seven documents, without affecting either the ISO14001
folder or any other files that may reside there.

I know about the Wizard that can assist in creating the actual .exe for
deployment, but what kind of code is necessary for storing and unpacking the
.doc files (storing the .doc files in the program itself?)

I am running VB 2003 on Windows Vista. I want the program to run on Windows
NT, 2000, XP, and Vista.

Thanks for any and all help. Sincerely, Ruben.

1) To detect the existence of the folder, you can use the
Directory.Exists() method, passing it the directory to check. In your
case ISO....
2) If the method returns false, then you can use the Directory.Create
method
3) Personally I would not store the documents in the exe itself,
especially if the documents are periodically updated and a new exe is
deployed. This is because many anti-viruses and firewall solutions may
flag your exe as a potential virus. You can use SharpZip lib and store
the documents in a zip/tar/gz file in the same location as the
application
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top