Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > The IT Pro > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Programming A discussion forum for programs and programming used in tech-related businesses.

Reply
 
LinkBack Thread Tools
Old 06-19-2009, 09:03 AM   #1 (permalink)
Registered User
 
Join Date: Jun 2009
Posts: 9
OS: OSX 10.5


Creating an autorun CD on Vista

Hi folks,

I've designed a web site and need to burn it to a CD so my friend can take it around with him. I use a mac and he uses a Windows Vista machine. I have tried making a autorun.inf document in TextEdit (same as NotePad) but it didn't work. It only contained the text:

"[autorun]

shellexecute=index.html"

I also want it to open in full screen if possible.

Can anyone help? I have a lend of a friends vista computer for the next day or so so at least I can test this out.

I'm a designer and usually work for print so very unsure of this area, (as you might have guessed) and any help would be much appreciated. Do I need to create an .exe doc and if so how?

Thanks in advance folks.

DC
daraclare is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 06-19-2009, 09:24 AM   #2 (permalink)
HJT Trainee
 
Join Date: Apr 2009
Location: England
Posts: 152
OS: Windows XP Home Edition Service Pack 3


Re: Creating an autorun CD on Vista

Ok.. done some thinking (programming isnt my main forte but I still think I know my way around lol)

This should now work, save it as "Autorun.inf"

Code:
[autorun]
open=command /c start /max index.htm

icon=icon.jpg
label=Name you Icon
It will run full screen but restricts the cd to auto running on windows machines only due to the "command" and "start" functions. If you would like an icon aswell, then place the picture in the root directory of the cd.

You could, however, also use a plain and simple, save it as "Autorun.inf"

Code:
[autorun]
ShellExecute=index.htm

icon=myicon.jpg
label=Name you Icon
and place this javascript inside the body tag

Code:

    <script type="text/javascript">
    <!--
    if (document.all || document.layers)
    **
      window.moveTo(0,0);
      window.resizeTo(screen.availWidth,screen.availHeight)
    } else if (window.screen) **
      window.moveTo(0,0);
      window.outerHeight = screen.availHeight;
      window.outerWidth = screen.availWidth;
    }
    //-->
    </script>
Strictly speaking it doesn't "maximise" the window, it just stretches to fit the screen, you can probably see that anyway. This would allow the cd to run on both windows and non-windows platforms.

I think the reason why your autorun didn't work is because (had a similar problem on my first time) is that capitals do play an important roll. The 'S' and 'E' ought to be capitals :)

Last edited by N Raj; 06-19-2009 at 09:44 AM. Reason: Correcting false information
N Raj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-19-2009, 10:39 AM   #3 (permalink)
Registered User
 
Join Date: Jun 2009
Posts: 9
OS: OSX 10.5


Re: Creating an autorun CD on Vista

"It will run full screen but restricts the cd to auto running on windows machines only due to the "command" and "start" functions."

This is fine but I tried the simple inf containing the text:

[autorun]
open=command /c start /max index.html

icon=icon.jpg
label=Crystal Conservatories

Have I done something wrong? Thanks for the help by the way.

Cheers,

DC
daraclare is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-19-2009, 11:16 AM   #4 (permalink)
HJT Trainee
 
Join Date: Apr 2009
Location: England
Posts: 152
OS: Windows XP Home Edition Service Pack 3


Re: Creating an autorun CD on Vista

hmmm I am not sure what the icon should look like on a mac, but is this what you have?

N Raj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-19-2009, 12:01 PM   #5 (permalink)
Registered User
 
Join Date: Jun 2009
Posts: 9
OS: OSX 10.5


Re: Creating an autorun CD on Vista

Yes, exactly.
daraclare is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-19-2009, 12:07 PM   #6 (permalink)
HJT Trainee
 
Join Date: Apr 2009
Location: England
Posts: 152
OS: Windows XP Home Edition Service Pack 3


Re: Creating an autorun CD on Vista

Apologies for not replying promptly, cricket it on :)

And this is placed in the root directory of the cd with "index.html" also in the root directory.

If this is is the case, then next thing to deduce is you are trying this on a windows pc and that pc has autoplay enabled.
N Raj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-19-2009, 12:27 PM   #7 (permalink)
Registered User
 
Join Date: Jun 2009
Posts: 9
OS: OSX 10.5


Re: Creating an autorun CD on Vista

I'm on a Vista laptop and I have enabled autoplay as far as I can see.

Thanks for the help.

DC
daraclare is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-19-2009, 12:43 PM   #8 (permalink)
HJT Trainee
 
Join Date: Apr 2009
Location: England
Posts: 152
OS: Windows XP Home Edition Service Pack 3


Re: Creating an autorun CD on Vista

ok... I might be becoming redundant soon lol, vista and programming is my main forte as I mentioned above but lets see what we can do while I am still here :)

Lets start by double checking you are running as administrator and that auto play is running, vista can be a real pain!!
============================================

Ensure that Shell Hardware Detection service is running

Type “service.msc” in Start Search to run Services console. Locate Shell Hardware Detection, and ensure that the “Service Status” is Running, and “Startup Type” is Automatic. If not, start the service and change the Startup Type setting accordingly.
============================================

Ensure that CD-ROM AutoRun is not disabled in registry

For users facing AutoRun/AutoPlay doesn’t work when insert a disc into optical drive, run Registry Editor (regedit), and navigate to the following registry subkey:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CDRom

Locate the AutoRun registry value in the right pane, and check that the value data for AutoRun is set as 1 (one), which is enabled. If it is 0 (zero), which mean disabled CD-ROM or DVD-ROM drive AutoRun process, re-enable the AutoRun by changing the value to 1.
============================================

Ensure that correct NoDriveTypeAutoRun and/or NoDriveAutoRun policy value is set

NoDriveTypeAutoRun registry key is used by Group Policy to configure whether to disable the Autoplay feature on all drives of the type specified. To check this setting, run Registry Editor (regedit), and navigate to the following registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

or (note that above registry value, if exists, will always supersede the below user-specific key),

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

Last edited by N Raj; 06-19-2009 at 12:45 PM.
N Raj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-19-2009, 01:02 PM   #9 (permalink)
HJT Trainee
 
Join Date: Apr 2009
Location: England
Posts: 152
OS: Windows XP Home Edition Service Pack 3


Re: Creating an autorun CD on Vista

This is on the microsoft website, I am trying to find that "autofix" they released some time ago. Would rather not trust downloading it from other sources :)

Anyway, in the mean time, I still feel it might be an autoplay issue or the disc isnt being burnt properly. What sort of disc are you using, if it is a RW then slow down the burn speed. The slower the burn the better the quality.

There are several reasons for this problem. AutoPlay might be restricted by Group Policy, it could be canceled by a program that is running, or the service that AutoPlay needs to start might not be running.

Here are some things to try:


Ask your network administrator if AutoPlay is restricted by Group Policy, and if so, what to do instead.


Close other programs that might be interfering.


Follow these steps:


1.

Click the Start button Picture of the Start button, click All Programs, click Accessories, and then right-click Command Prompt.
2.

Click Run as administrator.
3.

At the command prompt, type net start shellhwdetection, and then press ENTER.
4.

Restart your computer.
N Raj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-19-2009, 01:12 PM   #10 (permalink)
HJT Trainee
 
Join Date: Apr 2009
Location: England
Posts: 152
OS: Windows XP Home Edition Service Pack 3


Re: Creating an autorun CD on Vista

I have also sent you a pm as to ignore my previous two posts, I will keep them here just incase we need need them :)

I have been thinking it might be the coding, and we are doing a painfully long process elimination that may not be required.

Check here http://www.duckware.com/winopen/index.html

Quote:
HTML: To create a CD where your index.html HTML file automatically appears in the default web browser when your CD is inserted into a customer's computer, create/burn a CD with the following files in the root of the CD:

autorun.inf
winopen.exe
index.html

Where index.html is an HTML file that you have created, winopen.exe is the WinOpen program, and autorun.inf is a file created by you that looks like:
Code:
    [autorun]
    open=winopen \index.html
    label=Acme Product Manual
    action=View Acme Product Manual
    icon=acme.ico
That is all you need!

For your benefit I scanned the file with virustotal

https://www.virustotal.com/analisis/...499-1245439070

Quote:
Antivirus Version Last Update Result
a-squared 4.5.0.18 2009.06.19 -
AhnLab-V3 5.0.0.2 2009.06.19 -
AntiVir 7.9.0.193 2009.06.19 -
Antiy-AVL 2.0.3.1 2009.06.19 -
Authentium 5.1.2.4 2009.06.19 -
Avast 4.8.1335.0 2009.06.18 -
AVG 8.5.0.339 2009.06.19 -
BitDefender 7.2 2009.06.19 -
CAT-QuickHeal 10.00 2009.06.19 -
ClamAV 0.94.1 2009.06.19 -
Comodo 1373 2009.06.19 -
DrWeb 5.0.0.12182 2009.06.19 -
eSafe 7.0.17.0 2009.06.18 -
eTrust-Vet 31.6.6569 2009.06.19 -
F-Prot 4.4.4.56 2009.06.19 -
F-Secure 8.0.14470.0 2009.06.19 -
Fortinet 3.117.0.0 2009.06.19 -
GData 19 2009.06.19 -
Ikarus T3.1.1.59.0 2009.06.19 -
Jiangmin 11.0.706 2009.06.19 -
K7AntiVirus 7.10.768 2009.06.19 -
Kaspersky 7.0.0.125 2009.06.19 -
McAfee 5651 2009.06.19 -
McAfee+Artemis 5651 2009.06.19 -
McAfee-GW-Edition 6.7.6 2009.06.19 -
Microsoft 1.4803 2009.06.19 -
NOD32 4172 2009.06.19 -
Norman 6.01.09 2009.06.19 -
nProtect 2009.1.8.0 2009.06.19 -
Panda 10.0.0.16 2009.06.19 -
PCTools 4.4.2.0 2009.06.19 -
Prevx 3.0 2009.06.19 -
Rising 21.34.44.00 2009.06.19 -
Sophos 4.42.0 2009.06.19 -
Sunbelt 3.2.1858.2 2009.06.19 -
Symantec 1.4.4.12 2009.06.19 -
TheHacker 6.3.4.3.348 2009.06.19 -
TrendMicro 8.950.0.1094 2009.06.19 -
VBA32 3.12.10.7 2009.06.19 -
ViRobot 2009.6.19.1796 2009.06.19 -
VirusBuster 4.6.5.0 2009.06.19 -
Additional information
File size: 11992 bytes
MD5...: 4ad3ac5f9a01bc6b35cca8bdc965458d
SHA1..: 026b038b24cc0e7650cedb5cf8721c36ccd7958f
SHA256: aa1623d6a93125a2045eaca0769e19d2a92a3af166284b831d586599a2bf6499
ssdeep: 192:fnbZtBN86UP1oynE0idYfIoNxWOeyowoT57oCL/Vt2s:fltBWt1G0idggYoJ
Lr2s
PEiD..: Armadillo v1.71
TrID..: File type identification
Windows Screen Saver (39.4%)
Win32 Executable Generic (25.6%)
Win32 Dynamic Link Library (generic) (22.8%)
Generic Win/DOS Executable (6.0%)
DOS Executable Generic (6.0%)
PEInfo: PE Structure information

( base data )
entrypointaddress.: 0x17ba
timedatestamp.....: 0x49a59dba (Wed Feb 25 19:36:26 2009)
machinetype.......: 0x14c (I386)

( 3 sections )
name viradd virsiz rawdsiz ntrpy md5
.text 0x1000 0x950 0xa00 5.79 bf00666713ec6b56969925f8e60bd056
.rdata 0x2000 0x3ec 0x400 4.75 8c2b6ebe345cb4638f80b4789b02c441
.data 0x3000 0x8a8 0xa00 4.62 cb420af48ee38cc9ae6641b287cce3c7

( 4 imports )
> KERNEL32.dll: WaitForSingleObject, SetEnvironmentVariableA, GetModuleFileNameA, SetCurrentDirectoryA, GetStartupInfoA, GetModuleHandleA, GetPrivateProfileStringA
> USER32.dll: wsprintfA, MessageBoxA, GetDesktopWindow
> SHELL32.dll: ShellExecuteExA, ShellExecuteA
> MSVCRT.dll: _controlfp, _except_handler3, calloc, strlen, strchr, strstr, memset, _strupr, strrchr, strcmp, _strlwr, _exit, _XcptFilter, exit, _acmdln, __getmainargs, _initterm, __setusermatherr, _adjust_fdiv, __p__commode, __p__fmode, __set_app_type, _strdup

( 0 exports )
PDFiD.: -
RDS...: NSRL Reference Data Set

Last edited by N Raj; 06-19-2009 at 01:17 PM. Reason: added virustotal log
N Raj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-19-2009, 06:42 PM   #11 (permalink)
Registered User
 
Join Date: Jun 2009
Posts: 9
OS: OSX 10.5


Re: Creating an autorun CD on Vista

Okay, I'm just getting confused here, sorry. Are there any programmers on this site/forum that you may know of that may know where I'm going wrong? Apologies, no offence meant.

DC
daraclare is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-20-2009, 08:53 AM   #12 (permalink)
HJT Trainee
 
Join Date: Apr 2009
Location: England
Posts: 152
OS: Windows XP Home Edition Service Pack 3


Re: Creating an autorun CD on Vista

my Apologies, its very simple, it is my babbling which is causing the great confusion.

In the root directory of your CD place your
  • autorun.inf
  • winopen.exe
  • index.html

you can get winopen from here http://www.duckware.com/winopen/index.html

and now the cd should autorun on vista.

The autorun.inf ought to read

Code:
[autorun]
    open=winopen \index.html
    label=Name for your icon
    icon=image.ico
If this now does not work, then it is beyond me what is happening!!

Last edited by N Raj; 06-20-2009 at 08:59 AM.
N Raj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-21-2009, 09:11 AM   #13 (permalink)
Registered User
 
Join Date: Jun 2009
Posts: 9
OS: OSX 10.5


Re: Creating an autorun CD on Vista

Great Thanks I will try that again when I can borrow another computer Cheers for all the help!
daraclare is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-23-2009, 06:48 AM   #14 (permalink)
Registered User
 
Join Date: Jun 2009
Posts: 9
OS: OSX 10.5


Re: Creating an autorun CD on Vista

Fantastic! That worked perfectly. Was starting to pull my hair out a little. Can I also ask how to make the HTML full screen without the internet browser tools etc appearing? is that possible? I really appreciate your help on this.

DC
daraclare is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-23-2009, 10:14 AM   #15 (permalink)
HJT Trainee
 
Join Date: Apr 2009
Location: England
Posts: 152
OS: Windows XP Home Edition Service Pack 3


Re: Creating an autorun CD on Vista

Yer I am a 'G' (the kids are all saying it ). I am so glad that it worked for you. With regards to the browsers tools try..
Code:
<script type='text/javascript'>

var height = 400                      //Set height
var width = 400                        //Set width
var name = "winname"             //Set window name
var top = 20                             //Set distance from top
var left = 20                             //Set distance from bottom

if(document.location.search=='')  **
 newwin=window.open(document.location + "?newwin=true", name, "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top);
 self.close()
}

</script>
If that doesnt work, then there is more than one way to skin the cat lol
N Raj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-23-2009, 10:45 AM   #16 (permalink)
HJT Trainee
 
Join Date: Apr 2009
Location: England
Posts: 152
OS: Windows XP Home Edition Service Pack 3


Re: Creating an autorun CD on Vista

Actually try this one, a bit simpler javascripting

TWO STEPS TO INSTALL FULL SCREEN WINDOW:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document

STEP ONE: Paste this code into the HEAD of your HTML document


Code:
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function fullScreen(theURL) **
window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
}
//  End -->
</script>
STEP TWO: Copy this code into the BODY of your HTML document
Code:
<BODY>

<a href="javascript:void(0);" onClick="fullScreen('full-screen.html');">Open Full Screen Window</a>

Last edited by N Raj; 06-23-2009 at 10:46 AM.
N Raj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-23-2009, 11:39 AM   #17 (permalink)
Registered User
 
Join Date: Jun 2009
Posts: 9
OS: OSX 10.5


Re: Creating an autorun CD on Vista

No joy with that. Thanks anyway.
daraclare is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-24-2009, 10:39 AM   #18 (permalink)
HJT Trainee
 
Join Date: Apr 2009
Location: England
Posts: 152
OS: Windows XP Home Edition Service Pack 3


Re: Creating an autorun CD on Vista

If you read this before the edit scratch it!

PLace this in your head tag

HTML Code:
<script>
<!--
window.open("bigpage.html","fs","fullscreen,scrollbars")
//-->
</script> 
Where it says "bigpage.html" change it to the page you want well.. big

Now add a button to close it (or make them press alt-f4 your choice lol)

HTML Code:
<FORM>
<INPUT TYPE="button" VALUE="Close the Window" onClick="window.close('fs')">
</FORM> 
This really ought to work"

Last edited by N Raj; 06-24-2009 at 10:51 AM.
N Raj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-25-2009, 12:40 AM   #19 (permalink)
Registered User
 
Join Date: Jun 2009
Posts: 9
OS: OSX 10.5


Re: Creating an autorun CD on Vista

Thanks I think that worked perfectly. Will have to check it when I borrow a windows machine but works on the mac so happy days! Thanks again!
daraclare is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-25-2009, 01:36 AM   #20 (permalink)
HJT Trainee
 
Join Date: Apr 2009
Location: England
Posts: 152
OS: Windows XP Home Edition Service Pack 3


Re: Creating an autorun CD on Vista

I am a genius! lol, More than happy to help you, sorry for my slight confusion earlier I was mass posting as soon as something came to me :)
N Raj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 07:44 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85