Jump to content

Recommended Posts

Posted

hi guys, i am trying to create a gui window as an alternative to start.cmd using visual basic, but right now i am having difficulty in translating this codes to a visual basic one... what i want to do is make an exe file, instead of just showing the command window, i want to make it look more nicer and i wanted it to ask if the user wish to install the additional programs, screensaver, etc. or not, and waits till the installation is done. i hope someone could help me convert this to a gui executable using visual basic

here is the code on my start.cmd:

CLS

@echo off

TITLE Finalizing Installation...

ECHO.

ECHO Please Wait...

COPY "%systemdrive%\Install\MAT2.scr" "%systemroot%\system32\"

REGEDIT /S %systemdrive%\Install\mat2.reg

DEL "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Administrator.bmp"

COPY "%systemdrive%\Install\Administrator.bmp" "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\"

START /wait %systemdrive%\Install\networkicon.vbs

START /wait %systemdrive%\Install\3m\setup.exe

REGEDIT /S %systemdrive%\Install\3m.reg

ECHO.

ECHO Deleting Temporary Installation Files...

RD /S /Q %systemdrive%\Install

ECHO.

ECHO Windows XP Installation Complete!

ECHO.

PAUSE

EXIT


Posted

hi, not trying 2 ruin your day or anything, but why not try the other utilities around here? xplode & WIHU :)

Posted
hi guys, i am trying to create a gui window as an alternative to start.cmd using visual basic, but right now i am having difficulty in translating this codes to a visual basic one... what i want to do is make an exe file, instead of just showing the command window, i want to make it look more nicer and i wanted it to ask if the user wish to install the additional programs, screensaver, etc. or not, and waits till the installation is done. i hope someone could help me convert this to a gui executable using visual basic

here is the code on my start.cmd:

CLS

@echo off

TITLE Finalizing Installation...

ECHO.

ECHO Please Wait...

COPY "%systemdrive%\Install\MAT2.scr" "%systemroot%\system32\"

REGEDIT /S %systemdrive%\Install\mat2.reg

DEL "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Administrator.bmp"

COPY "%systemdrive%\Install\Administrator.bmp" "%systemdrive%\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\"

START /wait %systemdrive%\Install\networkicon.vbs

START /wait %systemdrive%\Install\3m\setup.exe

REGEDIT /S %systemdrive%\Install\3m.reg

ECHO.

ECHO Deleting Temporary Installation Files...

RD /S /Q %systemdrive%\Install

ECHO.

ECHO Windows XP Installation Complete!

ECHO.

PAUSE

EXIT

@r3p1v

I would strongly recormend that you have a look at this first before doing anymore... Transforming from Command Line Batches to RunOnceEx

This would seem to answer what you are wanting to do... :yes:

And if you find this is the answer you can simplify it even further by using RunOnceEx.cmd Creator tool.

Felix

Posted

My two cents:

if you just want to give a "windows look" to an installer program you already have written as .bat or .cmd, have a look at this little nifty tool:

The Wizard's Apprentice

Introduction

Batch files still are a good way to get things done. As long as the things are simple, a batch file can be exactly the right way to do it: easily written, portable, and no need to install anything to get it to work. There is one big shortcoming of batchfiles though: interactivety. There is hardly a nice way to ask the user questions. In the old days, in MSDOS, there was no way at all to ask questions; then came CHOICE, a very primitive utility to ask Yes/No kind of questions and get an error level back. And that was it.

Now there is the Wizard's Apprentice. It will allow you to ask questions from a batch file, using Windows dialog boxes in the so-called Wizard style: large dialogs asking one question at a time, with a Back button, a Next button and a Cancel button. With a few common batch techniques, the Wizard's Apprentice will allow you to create wizards with style!

http://wizapp.sourceforge.net/

I have found it very easy to convert existing batches in "pseudo" windows apps.

The .exe is only 70 kb.

jaclaz

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...