I have found a lot of answers on how to do the exact opposite of what I'm looking to do, but nothing really on what I'm trying to do.
I have an EXE file that I want to use to open an HTML file in the user's browser as soon as it is executed.
I have two files in the EXE - autorun.inf and index.html. The index.html is what I want to open.
In autorun.inf I have:
<td><center>
<button type="button" name="rush1" class="btn btn-outline btn-danger" onClick="UpdateRush(<?php echo $orow['WorkOrder']; ?>);"/>Rush</button>
</center><br><center>
<button type="button" name="pool1" class="btn btn-outline btn-info" onClick="UpdatePool(<?php echo $orow['WorkOrder']; ?>);"/>RFP</button></a>
</center></td>
All this does is open an error box that says "Installation Failed".
答案 0 :(得分:0)
You don't say what language you are writing the .exe in. The easiest thing to do would be to have that program launch the html file. For example, in VB/C# you would add the following inside your main method:
public Form2(string data)
{
InitializeComponent();
txtData.Text=data;
}
No need to do anything in the autorun.inf file.