473,396 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Handling CD Autorun?

I am writing a new version of a legacy application. The legacy application
comes packaged with end-user data on a CD or DVD.

When the end-user inserts the CD, the application is either installed or
launches if it is already installed. If the end-user has the application
open and inserts a new CD (containing the legacy app), a new instance of the
application is launched. That's fine for the legacy application.

The new application is a single-instance app, so that prevents a new
instance of the application from being launched. However, I still want to
load the data the end-user intended to load by inserting the CD, but in the
existing instance.

I hope this makes sense. Any help, suggestions, or information would be
greatly appreciated.

carl

Nov 21 '05 #1
2 1491
Hi carl,

I have released many CD's that autorun. This is what I do:

Write a C program that uses ShellExecute & that passes a string as an
argument

Then create an autorun inf file like this:

[AUTORUN]
open=shellx index.htm
icon=bla bla bla

(shellx = my C shell execute program)
(index.htm = what I always open), but you can call the Windows installer of
course

In fact, if you use Windows installer, just create the inf file to point to
the Windows installer

One thing you have to think about is if the end user has a CD/DVD Writer
with for example Nero Burning ROM then autorun will be disabled, so, then
your autorun will fail.

I hope this helps

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #2
"Crouchie1998" <cr**********@spamcop.net> wrote in message
news:uw**************@TK2MSFTNGP10.phx.gbl...
Hi carl,

I have released many CD's that autorun. This is what I do:

Write a C program that uses ShellExecute & that passes a string as an
argument

Then create an autorun inf file like this:


<snipped>

That's all good advice, but I need to know a legacy CD is inserted. Say the
end-user is browsing a new content CD with the new application, but wants to
review legacy content for a comparison. So, the end-user inserts an old CD
and it immediately installs the old application on the computer (unless
canceled). That's the behavior I'm trying to avoid.

Is there a way to detect a CD media insert and at least read the name of the
CD? Any more help is very much appreciated.

carl
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: M.E.Farmer | last post by:
Hello all, I needed this and did a quick search around and didn't see any examples. I knew it had to be easy, and it was. So here it is a CD_Autorun program in python. It is very simple and...
11
by: Ray5531 | last post by:
I'm looking for a good Freeware autorun maker for my C# application.Any suggessions? Thanks
2
by: Joe Cool | last post by:
I know this is probably not the proper newsgroup to ask this question, but I do not know which one is. And most of you guys here know a lot about windows programming so I am taking a chance some...
2
by: tmWin | last post by:
Hi all I wanna run my application directly from a Flash Disk. I want it AUTORUN once the device is attached. I have seen some virus script-programs which create their own autoruns on a...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Overview NOTE- This complete article on "Windows Autorun FAQs" applies theoretically to all Windows NT-based OSes till Windows Vista (and probably Vista's successors too)....
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Description NOTE- If you are unfamiliar with the concept of autoruns, then read "Windows Autorun FAQs: Overview". Que-1: How can I safely remove or edit the autorun...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Programs dealing with autoruns Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list programs that help me to view/modify the autoruns...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.