Replied to [mistral]s message :
> """Ayush wrote:
> """
>> Replied to [mistral]s message :
> I created autorun for CD, burn it on CD with program, but it launch the
> Setup without even any prompt. Just want add prompt for user before
> launching setup. This depends however, how this setup designed. I my
> case it just launch installation without prompt. Should I add some
> third party autoplay.exe file that will show first splash screen with
> prompt?
There is no need.
> -----
>> You dont need a 3rd party utility. A VBS file will do. make a VBS file with following
>> lines :
>
>> question="Are you sure you want to run Setup ?"
>> fileToRun="regedit.exe"
>> If msgbox(question,4132,"Autorun")=6 Then
>> CreateObject("WScript.Shell").Run(fileToRun)
>> End If
>
>> Then in the autorun file :
>> [autorun]
>> shellexecute=vbSFilePath
>
>
> -----
>> → Ayush
> -------------
>
> Have not heard about this method still. So i should burn this
> launcher.vbs on CD with other files? Should i add "Set WshShell =
> Nothing" at the end of script?
Yup. I just tested(on virtual drive) and all works.
Autorun.inf file :
[autorun]
shellexecute=launcher.vbs
icon=icon.ico
VBs file :
question="Are you sure you want to run Setup ?"
fileToRun="Folder\Setup.exe"
If msgbox(question,4132,"Autorun")=6 Then
CreateObject("WScript.Shell").Run(fileToRun)
End If
After this i created a folder named folder and placed an exe file named setup.exe.
--
→ Ayush
-------------
Search -
www.Google.com | Wikipedia -
http://en.wikipedia.org
Snip your long urls -
http://snipurl.com/
-------------