r3p1v Posted August 25, 2004 Posted August 25, 2004 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 basichere is the code on my start.cmd:CLS@echo offTITLE Finalizing Installation...ECHO.ECHO Please Wait...COPY "%systemdrive%\Install\MAT2.scr" "%systemroot%\system32\"REGEDIT /S %systemdrive%\Install\mat2.regDEL "%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.vbsSTART /wait %systemdrive%\Install\3m\setup.exeREGEDIT /S %systemdrive%\Install\3m.regECHO.ECHO Deleting Temporary Installation Files...RD /S /Q %systemdrive%\InstallECHO.ECHO Windows XP Installation Complete!ECHO.PAUSEEXIT
MCT Posted August 25, 2004 Posted August 25, 2004 hi, not trying 2 ruin your day or anything, but why not try the other utilities around here? xplode & WIHU
`Felix` Posted August 25, 2004 Posted August 25, 2004 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 basichere is the code on my start.cmd:CLS@echo offTITLE Finalizing Installation...ECHO.ECHO Please Wait...COPY "%systemdrive%\Install\MAT2.scr" "%systemroot%\system32\"REGEDIT /S %systemdrive%\Install\mat2.regDEL "%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.vbsSTART /wait %systemdrive%\Install\3m\setup.exeREGEDIT /S %systemdrive%\Install\3m.regECHO.ECHO Deleting Temporary Installation Files...RD /S /Q %systemdrive%\InstallECHO.ECHO Windows XP Installation Complete!ECHO.PAUSEEXIT@r3p1vI would strongly recormend that you have a look at this first before doing anymore... Transforming from Command Line Batches to RunOnceExThis would seem to answer what you are wanting to do... And if you find this is the answer you can simplify it even further by using RunOnceEx.cmd Creator tool.Felix
jaclaz Posted August 25, 2004 Posted August 25, 2004 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 ApprenticeIntroductionBatch 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
mazin Posted August 25, 2004 Posted August 25, 2004 i am trying to create a gui window as an alternative to start.cmdI think r3p1v is clear enough.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now