Cameyo

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Create a package using PackageAPI.cs (C# 4, VS.NET 2010)
Anonymous

Date:
Create a package using PackageAPI.cs (C# 4, VS.NET 2010)
Permalink   
 


Hi,

I am trying to use the SDK (via the PackageAPI.cs class) to create a simple cameyo package. I use .Create() followed by a few calls to .AddFile(), then .SetProperty() to set AutoLaunch to my app's .exe startup program, then .SetIcon() also pointing to my app's .exe file, then .Save(). Everything completes, and a .cameyo.exe is produced.

However...when I try to run the cameyo.exe, I get a message saying that "Windows cannot find 'C:\Temp\CameyoMenu.exe'. Make sure you typed the name correctly, and then try again.

If I use cameyo package editor to create the same package using identical settings, it works fine.

Any ideas?



__________________
Anonymous

Date:
Permalink   
 

I left out that I am calling .Close() right after the call to .Save(). I can't post any code, so that is why I am describing what I am doing step-by-step.



__________________
Anonymous

Date:
Permalink   
 

Does anyone have a known working example of using the PackageAPI.cs interface for package creation? I can't find much on "the googles" for this product, yet.



__________________


Senior Member

Status: Offline
Posts: 268
Date:
Permalink   
 

Hi,

Can you show the lines where you call the Addfile and SetProperties?

Thanks

ps: with regards to a sample, I suppose you've already looked at the documentation sample (http://www.cameyo.com/sdk/creating_a_virtual_package_fro.htm) ?



__________________
Anonymous

Date:
Permalink   
 

Hi cameyoco,

Yes, I used that exact sample as my guide. The files are all added, as I can see them afterwards in the package editor UI.



__________________


Senior Member

Status: Offline
Posts: 268
Date:
Permalink   
 

Can you upload your package somewhere for me to have a look?
Thanks

__________________
Anonymous

Date:
Permalink   
 

No, I can't upload it. Is there a way to determine why it is referencing CameyoMenu.exe when I create the package with the .cs api vs. UI? I have also used the C++ version of the API to create packages successfully. The only one that has not worked is the C# wrapper version.

Please advise.



__________________


Senior Member

Status: Offline
Posts: 268
Date:
Permalink   
 

As discussed by email the reason for this was a type in your PackageCreate call.
Let us know if anything else comes up.

Thanks

__________________
Anonymous

Date:
Permalink   
 

Yes, and thank you. I had "Launcher.exe" in my call to PackageCreate(), instead of "Loader.exe". It's all working now.



__________________
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