Dave Emberton wrote:
mbain wrote:
Dave Emberton wrote:
The reason I would like to use the plugin for standalones is because we have no less than 150-200 tutorials, which our clients often download. Our clients are Police Departments and they don't have a lot of time to sit around waiting for downloads to finish. The plugins are so much smaller than the regular .exe, which would help our clients a lot when it came time to download.
There is another possible solution. If you set the publish option for "Create executable and data files", you'll get an .exe and .ilm file.
The .exe files are all the same, so it is possible to use the same .exe for many different publications and pass the .ilm file as a parameter.
Thanks Dave, that's a good idea.
I thought of another that might work. Maybe I could set it up so that the tutorials menu pub (which would be published so as not to require the plugin) searches the PC's hard drive, and if the plugin has not been installed, the menu will launch the manual setup file (which I will include with the tutorials). That way, the clients wouldn't be stuck in a situation in which they are downloading something that they don't know what it is, with no way to cancel, especially since some of our clients do not provide internet access to their on-duty officers.
I don't know much about scripting, but I looked through the forum and help file and wrote an "If FileExists" script, set on a pre-show trigger for the first page. When the pub is launched, it will check the specified directory for the specified file. If it is found, the pub will go to the first page, called Menu. If it is not found, it will go ahead and go to the default first page of the pub, called Install (which has the link to the Plugin setup file):
I wrote it this way:
if (FileExists( SYSTEM_PROGRAMS_DIR + "\\Common Files\\Digital Workshop\\IO Opus Player\\ILMPlay.dll" )
{
GotoPage( "Menu" )
}
and then, I also wrote it this way:
if (FileExists( "C:\\Program Files\\Common Files\\Digital Workshop\\IO Opus Player\\ILMPlay.dll" )
{
GotoPage( "Menu" )
}
but neither way works. Can you tell me what I did wrong?
Thanks a bunch,
Mike