Open a new text file in notepad and put the following code into it:
CODE
Set WshShell = WScript.CreateObject("WScript.Shell")
'=== FantomCD INSTALL === FILE === FantomCD.VBS ===
WshShell.Run app & "%systemdrive%\install\FantomCD\enu_tr.msi"
'=== wait in milli seconds (5 sec)
WScript.Sleep 2000
'=== PRESS SOME KEYS
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "+A"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "+c"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 20000
WshShell.SendKeys "{ENTER}"
WScript.Quit
'=== FantomCD INSTALL === FILE === FantomCD.VBS ===
WshShell.Run app & "%systemdrive%\install\FantomCD\enu_tr.msi"
'=== wait in milli seconds (5 sec)
WScript.Sleep 2000
'=== PRESS SOME KEYS
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "+A"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "+c"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 20000
WshShell.SendKeys "{ENTER}"
WScript.Quit
note* edit code as necessary ie. the path name
also the last "WScript.Sleep" entry of 20000 should be long enough for the installation to complete so that the last "SendKeys {ENTER}" won't execute until it's finished. If you are using slower hardware please increase the "20000" to account for the time it will take to finish.
Then rename the new txt file to "FantomCD.vbs"
Then in RunOnceEx.cmd the code is this:
CODE
REG ADD %KEY%\029 /VE /D "FantomCD" /f
REG ADD %KEY%\029 /V 1 /D "%PP%\FantomCD\fantomcd.vbs" /f
REG ADD %KEY%\029 /V 2 /D "REGEDIT /S %PP%\FantomCD\fantomcd.reg" /f
REG ADD %KEY%\029 /V 1 /D "%PP%\FantomCD\fantomcd.vbs" /f
REG ADD %KEY%\029 /V 2 /D "REGEDIT /S %PP%\FantomCD\fantomcd.reg" /f
Of course edit it as necessary
License info should be placed in the fantomcd.reg file referenced in RunOnceEx
The following is an example fantomcd.reg file
CODE
[HKEY_CURRENT_USER\Software\Copystar\Fantom CD\Register]
"UserName"="user_name"
"Company"="none"
"SerailNo"="xxxxxxxxxxxxx"
"UserName"="user_name"
"Company"="none"
"SerailNo"="xxxxxxxxxxxxx"