Autorun issue

  • Thread starter Thread starter Marcin Domaslawski
  • Start date Start date
M

Marcin Domaslawski

Hi,

yes, often there is and 3rd party app between autorun and destination setup
app.

Marcin Domaslawski
 
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?

[autorun]
open=Folder\Setup.exe
icon=icon.ico
 
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?

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 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?
-----
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
-------------

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?

fileToRun="Folder\Setup.exe"


and Autorun.inf will be

[autorun]
shellexecute=launcher.vbs
icon=icon.ico

M.
 
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
-------------

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 said:
"""
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.

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.
-------------

I tried this on floppy - not work for me.. My autorun.inf file does not
cause a VBScript message. The message popup and launch application when
click on script, though..

m.
 
Replied to [mistral]s message :
I tried this on floppy - not work for me.. My autorun.inf file does not
cause a VBScript message. The message popup and launch application when
click on script, though..

I dont think autorun.inf files work on floppies !
 
Back
Top