Whew, you are a beginner. How good is this app?
As to issue C., most cots create their own registry keys on installation, and then create a value in the registry for the expiration date. Your uninstall program should leave the registry value intact. This means that the first thing your installation program should do is check for this hidden registry value and if its there, not allow reinstallation if the demo period has passed.
These safeguards check a hidden value against the system date/time. The only way around them is to reset your system date/time to a time during the initial demo period.
As to issues A and B, what you need to do is create your installation file. That CAN be vbscript, not VBA. But what you will need to do is to put an Autorun.inf file on the cd. When you put a data CD into your cd rom drive, and the drive is set to atourun, the system looks for "autorun.inf" This file is a text file that tells the system which file to run first, like a boot.inf file. So it should look like this:
[autorun]
open=YourInstallFile.vbs -switches 'if any
icon=Optional.ico 'file on CD
So if you create this file:
autorun.inf
[autorun]
open=sample.vbs
Then this file:
sample.vbs
MsgBox "Hello World!"
Burn these two files to a cd, and then insert it into your cd drive. You should get a message box saying "Hello World!"
HTH
mmcdonal
|