Post by Rosario Foxx on Jul 21, 2010 19:18:30 GMT -8
Alright. Here it is, I want to set a program to run on click from a link, but (remember, this is an application, not a web page) without bringing up the "Do you want to run or save?" menu, while also being able to use (Current Directory) as part of the link to the file, so it's compatible with all drives without the need to copy to a computer. Help, please? This will run from a CD Rom Drive. This is what I currently have so far.
My errors come about when trying to include the current directory variable in the application. %CD% isn't working, and neither is . , help?
<html>
<head>
<title>FreePlay Installer</title>
<HTA:APPLICATION
ID="FreePlay"
APPLICATIONNAME="FreePlay Installer"
SCROLL="no"
SINGLEINSTANCE="yes"
WINDOWSTATE="maximize"
>
</head>
<!--#set var="CD" value="./" -->
<OBJECT ID="oShell"
CLASSID="clsid:13709620-C279-11CE-A49E-444553540000">
</OBJECT>
<script language=vbscript>
Set objShell = CreateObject("WScript.Shell")
myCur = objShell.CurrentDirectory
objShell.Run("""E:\setup.exe""")
</script>
./PRISM Guard Shield/setup.exe
<Center>
<body>
<body bgcolor="000000" TEXT="FFFFFF" LINK="FFFFFF" VLINK="FFFFFF" ALINK="FFFFFF">
<table align="center" class="bordercolor" cellpadding="4" cellspacing="1" width="70%">
<tr>
<td class="windowbg">
<center>
<Center><FONT style="BACKGROUND-COLOR: Black"></p></p></Font>
<Font Size="4" Style="BACKGROUND-COLOR: Black">
<U>Welcome to the FreePlay Installer. Please select your game below.</U></Font>
</Center>
</center>
</td>
</tr>
</table>
<br >
<a href="#" onClick="PRISM();"><IMG SRC="./prism.png"></A><br ><br >
PRISM: Guard Shield
<br ><br ><br >
<IMG SRC="./fear.gif"><br ><br >
FEAR Combat<br ><br >
After Installing FEAR Combat, <B><U>click here</U></B> to update to latest files.<br >
________________________________________________________<br ><br >
For users of Windows Vista and Windows 7, we recommend you also install the following file.<br ><br >
<IMG SRC="./directx.png"><br ><br >
Direct X 9.0 Runtime November 2008
<br ><br >
If any errors about files missing are generated by the game instructing you to reinstall the application, ignore the instructions. The error is caused by the system not having the Direct X 9.0 End User Runtime installed.
</Table>
</Center>
My errors come about when trying to include the current directory variable in the application. %CD% isn't working, and neither is . , help?