473,569 Members | 2,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1501
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
"Crouchie19 98" <cr**********@s pamcop.net> wrote in message
news:uw******** ******@TK2MSFTN GP10.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
2352
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 without comments is only about 30 lines. Also included a setup.py at the end of the script so you can 'compile' it easily. ...
11
5043
by: Ray5531 | last post by:
I'm looking for a good Freeware autorun maker for my C# application.Any suggessions? Thanks
2
8515
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 one here may be able to answer this simple question. If I burn a CD/DVD and include a file in the root of the burned disk called Autorun.inf and...
2
3171
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 specific Flash Disk device. It would be very thankful If anyone could tell me about it.
0
6109
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). Much of the contents of this article are tested on Windows XP professional SP2 by the author. Some instances of this article may be altogether...
0
9196
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 settings on my PC? Ans: I recommend that you backup all of your important data before trying anything mentioned in this article. When a person is tweaking...
0
30187
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 a comprehensive list of all autostart locations for Windows OSes: NOTE : These are some abbreviations used in this list. Please note them...
0
9939
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 on my Windows PC? Ans: Other than Sysinternals Autoruns, there are only a few programs which are good enough to be used when dealing with autoruns....
0
7605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7917
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7962
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6277
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.