|
-
Sep 16th, 2000, 12:12 PM
#1
Thread Starter
Member
I cannot find ANYTHING about AutoRun in my help files and yet I'm being asked questions about it on my practice tests.
Please let me know if information about this feature is ANYWHERE to be found.
Same problem with Regsvr32 switches.
Also, concerning Regsvr32. One question I got about installing a .dll is what program would you use to install this on a computer. I said the setup.exe and the answer was Regsvr32. Why would you use this over the deployment offered by the packaging and deployment wiz?
-
Sep 16th, 2000, 12:37 PM
#2
You use the RegSvr32 to register any COM component manually.
It's true that the P&DW does this for you but I don't think that that was the question.
To make your app run on start up you could either add a shortcut in the StartUp folder or edit this registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
Best regards
-
Sep 16th, 2000, 12:49 PM
#3
Member
To know the Regsvr32 switches just run regsvr32.exe without any arguments and you'll get the list of switches.
The packaging and deployment wiz is used to install entire programs.Eith Regsvr32 you can install induvidual ocx and dll files.
About the AutoRun file:
It is a .inf file (called AutoRun.inf) placed in the root directory of drives.It is automatically accessed and the information is carried out. Eg:
Put this in afile called Autorun.inf and put it in the root of your Hard drive(eg. C or in the root dir of a CD.
[autorun]
open=autoexec.bat
icon=myicon.ico
shell\readme = &Read Autoautoexec.bat
shell\readme\command ="notepad autoexec.bat"
Now in my computer, the C: will have myicon.ico as it s icon insted of the default one.And when you open C: autoexec.bat will automatically run.And if you right-click on the C: icon you will find an option saving Read Autoexec.bat which on clicking will open notepad with autoexec.bat loaded.
Note: all the files should be in the root dir otherwise you can specify it as:
open=\windows\exit to dos.pif
Hope this helped!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|