Cameyo

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Custom Events: Missing option to stop application execution if start of custom event fails


Newbie

Status: Offline
Posts: 1
Date:
Custom Events: Missing option to stop application execution if start of custom event fails
Permalink   
 


Hello,

i have added a custom event to start a program in order to check a "license".
 If license key is incorrect, the application returns the return code 1234 and cameyo stops the application execution.

But when user deletes my program, cameyo exectutes the application.

I miss a feature "stop execution" (for each custom event) if start of a custom event fails.



__________________
Anonymous

Date:
Permalink   
 

Was pounding my brain looking for an answer for this since I needed to do this to protect the execution of my package.  Since they don't give you a hard stop when the event script or file isn't found I discovered I could add a file to the package to do my unvirtualized checking and then use that file as the custom event and return 1234 if it failed.  That makes sure that the file is always there.  Also, to make it work you have to add the file that you included in the package to the "Exclude from virtualization" parameter.



__________________


Senior Member

Status: Offline
Posts: 268
Date:
Permalink   
 

What you can do is set the AutoLaunch the startup command directly to your script (VBS or other) and have *it* call your startup executable at the end. So: AutoLaunch = yourscript.vbs => your main module.
Btw there is a way to add a script to an existing package, which takes care of adding the script file itself into the package: Packager.exe -AddScript c:\now\myscript.vbs OnProcessStopUnvirtualized wait App.cameyo.exe
(Packager.exe can be substituted with Cameyo.exe)

__________________


Member

Status: Offline
Posts: 5
Date:
Permalink   
 

I know this is an old topic but, actually the way to achieve this is to have your custom program loaded into the project files and then run unvirtualized at startup.

__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard