Saved Bookmarks
| 1. |
Solve : making a install program from a batch? |
|
Answer» okay first off, i swear I won't use this information for bad purposes. I do not want this topic to end up like all the others I have started. Okay, so I am making an install program from a batch, and there are a couple things I need to know. 1.How do I create a shortcut using a batch?search the forum. tick "show results as messages" in Options. Simple?Quote from: CBMatt on July 10, 2007, 10:23:31 PM I hope you realize that people here may have a difficult time trusting you.Yes but its not a matter of anything that has to do with them other than helping me out. I am planning on getting into some HEAVY programming pretty soon and I want to be able to make a good homemade install system. I will be using it for part of my senior project at school. 1) yeah, it has to look something like this.. if %4[==[ goto syntax if not exist %1 if not exist %1\nul goto syntax for %%? in (%2 %3) do if not exist %%?\nul goto syntax %5 %0 %1 %2 %3 %4 rem "{newfolder}" InstallHinfSection echo > %temp%\#path#.bat path %path% path %1 echo > %temp%\#k#.inf [version] echo >>%temp%\#k#.inf signature="$CHICAGO$" echo >>%temp%\#k#.inf [DefaultInstall] echo >>%temp%\#k#.inf UpdateInis=Addlink echo >>%temp%\#k#.inf [Addlink] echo >>%temp%\#k#.inf setup.ini, progman.groups,, "group0=%6" echo >%temp%\#k#.inf setup.ini, group0,, ""%6"" echo >%temp%\#k#.inf setup.ini, group0,,""%4",""%path%"",,0," for %%? in (call DEL) do %%? %temp%\#path#.bat start/w rundll setupx.dll,%7 DefaultInstall 132 %temp%\#k#.inf del %temp%\#k#.inf move "%3\{newfolder}\*.*" %2 >nul rd "%3\{yourfolder}" 2) without having them specified? , once the shortcut is created have it moved to allusers\desktop directory 3)if you use cd\ at the beginning of a file , @echo off & cd\ & cls , so your program always runs from c:\ it will work in any folder, thanx your more helpful and trusting than many people who ignore the problem for fear i will misuse it. but thanxtheirs no question you will misuse it ,but since batch is useless.. your virus wont get very far Quote from: Diablo416 on July 12, 2007, 12:05:37 PM theirs no question you will misuse it ,but since batch is useless.. your virus wont get very farits not for a virus thanks. i am trying to create an installer for my text editor ive made. i think i found a better way to do it thoughQuote from: Diablo416 on July 12, 2007, 12:05:37 PM theirs no question you will misuse it ,but since batch is useless.. your virus wont get very farheh... that's positive reinforcement if i've ever heard it... where do you get the idea he's going to misuse it? |
|